Re:New for AWS Lambda – Environment Variables and Serverless...
by nchuhoai on Sunday November 20, 2016 @01:03PM
(#13000127)
How do you guys deal with potential cold-start issues?
Re:New for AWS Lambda – Environment Variables and Serverless...
by southpolesteve on Sunday November 20, 2016 @01:13PM
(#13000183)
Mostly it is not a big problem for us. Our functions that need to be fast have very high traffic. Our other functions don't need to be that fast. We also have a CDN in front of most things.
That said, we use node. I have heard cold starts are worse for Python (I have no data). I have heard they are near unbearable for Java (JVM startup and all that). We try and minimize external calls outside the main handler. Previous to this update we were packing configs with webpack at deploy time. Some people read them from S3 or dynamo. I don't consider that a good solution. I'll be working this week on Shep 3.0 which will use the new ENV var features.
I have talked to other people who do various hacks to force their functions to be warm. I've looked at doing this and haven't found it necessary yet for our use case.
Re:New for AWS Lambda – Environment Variables and Serverless...
by cagataygurturk on Sunday November 20, 2016 @02:47PM
(#13000745)
We use route53 health checks to invoke API gateway and thus the backend Lambda.
[1] www.bustle.com and www.romper.com do a combined XX million unique visitors per month.
[2] https://github.com/bustlelabs/shep