I've got a Lambda that uses the AWS Java SDK.
In this lambda's handler, I've got code that looks like this:
AmazonSQS sqs = AmazonSQSClientBuilder.defaultClient();
sqs.sendMessage( ... )
I'd expect the above lines to be pretty fast, and for most cases, this is what I'm observing.
However on cold starts, this code is taking about 20 seconds to execute. In fact, just the first line, the client builder, is taking about 10 seconds to complete.
Is this the expected performance of the AWS SQS java api's on cold starts?