By using AWS re:Post, you agree to the Terms of Use
/JAR size affect the response time of lambda?/

JAR size affect the response time of lambda?


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 SizeResponse time

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

Yes. the size of function package can affect the cold start time. You can refer this blog (

answered a month ago
reviewed a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions