Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does the size of the AWS Lambda Layer affect my Lambda machine's uptime or Cold Start?

AWS Lambda Runtime: Python 3.7

The Lambda Layer attached to my Lambda has a capacity of nearly 200MB when decompressed.

I would like to know if this large capacity Lambda Layer will affect the uptime or cold start of Lambda machine.

like image 219
Day Break Avatar asked Oct 27 '25 05:10

Day Break


1 Answers

Yes! The package size (including the layer) does affect the Init Duration "cold-start" time

This is some benchmarking test on nodejs function with our without webpack (its a tool that helps to reduce the package size for nodejs). And we can see clearly how its effect the cold start init time: enter image description here

The picture was taken from our blog in lumigo: https://lumigo.io/blog/this-is-all-you-need-to-know-about-lambda-cold-starts/ we have a detailed blog post about that issue, with solutions suggestion

like image 86
Dori Aviram Avatar answered Oct 29 '25 23:10

Dori Aviram



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!