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 SizeResponse time
10mb1s
64mb6s
100mb12s
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개 답변
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/)

답변함 2년 전
profile pictureAWS
전문가
검토됨 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인