JAR size affect the response time of lambda?
0
Hi,
I'm making some experiments regarding the impact of JAR size on Lambda Cold Starts and response times. I have created 3 JARs of different sizes.
JAR Size | Response time |
---|---|
10mb | 1s |
64mb | 6s |
100mb | 12s |
In Cludwatch logs I can see that init durations for all these Lambas is on average ~620ms, but for every lambda the response time is different and I don't know why. The code is the same(there is no logic -> all of them are returning a String), differences in size are due to different maven dependencies that I added. All of them are from AWS SDK. Is this normal?
1 Answers
1
Yes. the size of function package can affect the cold start time. You can refer this blog (https://aws.amazon.com/ko/blogs/compute/operating-lambda-performance-optimization-part-2/)
answered a month ago
Relevant questions
Lambda Authorizer Context Response Size Limit
Accepted Answerasked 3 months agolambda cold start & synchronous execution
Accepted Answerasked 4 years agoHow long does a lambda instance can keep 'warm'?
asked 5 months agoRecommended Lambda function size
Accepted Answerasked 3 years agoHow to increase index.max_result_window on Elasticsearch?
asked a month agoAWS Lambda - Body Size is Too Large Error, but Body Size is Under Limit
asked a year agolambda take few seconds to return response
asked a month agoLambda using docker - Billed time very high for small duration
Accepted Answerasked 8 days agoJAR size affect the response time of lambda?
asked a month agoWhat is the maximum size for a lambda docker image ?
Accepted Answerasked a year ago