AWS Lambda Cold Start Times
filia-aleks.medium.com
AWS Lambda Cold Start Times
1–10 of 233 posts
Re: AWS Lambda Cold Start Times
#2Re: AWS Lambda Cold Start Times
#3Re: AWS Lambda Cold Start Times
#4Sure kind of defeats the purpose of serverless but hey, enterprise software.
Re: AWS Lambda Cold Start Times
#5Re: AWS Lambda Cold Start Times
#6mirror: https://scribe.rip/@filia-aleks/aws-lambda-battle-2021-perfo...
Re: AWS Lambda Cold Start Times
#7Re: AWS Lambda Cold Start Times
#8At my last job we built an entire API on top of serverless. One of the things we had to figure out was this cold start time. If a user were to hit an endpoint for the first time, it would take 2x as long as it normally would at first. To combat this we wrote a "runWarm" function that kept the API alive at all times. Sure kind of defeats the purpose of serverless but hey, enterprise software.
This doesn't really work like you'd expect and isn't recommended, as it only helps a particular use-case. The reason is that AWS Lambda will only keep a single instance of your function alive. That means if two requests come in at the same time, you'd see a cold start on one of those invocations.
Instead, you want to look at something like provisioned concurrency.
Re: AWS Lambda Cold Start Times
#9Re: AWS Lambda Cold Start Times
#10At my last job we built an entire API on top of serverless. One of the things we had to figure out was this cold start time. If a user were to hit an endpoint for the first time, it would take 2x as long as it normally would at first. To combat this we wrote a "runWarm" function that kept the API alive at all times. Sure kind of defeats the purpose of serverless but hey, enterprise software.