Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Warm Lambdas (using Zappa's auto keep-warm) are actually 20-40ms, which makes them suitable for web servers.


In case anyone else was wondering how the auto keep-warm feature is implemented: it's a CloudWatch Event that runs the Lambda every four minutes by default.

While this probably keeps the majority of the requests warm, I would expect that there would still be some cold ones every now and then. Amazon doesn't provide a guarantee in how the containers get recycled.

This is just me speculating, though.


We did some analysis[1] on cold starts in AWS Lambda, and found that there is a cold start if there's no activity for 5 minutes, or regardless of activity, there will be a cold start every 4 hours from creation of the underlying VM.

[1] - https://www.iopipe.com/2016/09/understanding-aws-lambda-cold...


Thanks, I was hoping someone would come along with some real data!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: