Re:New for AWS Lambda: Use Any Programming Language and Shar...
by count on Thursday November 29, 2018 @01:49PM
(#18562687)
No, that's not what it means. If you have high concurrent execution, you get 'cold start' every time the underlying service 'scales out' to support more.
The MORE you use lambda concurrently, the more you hit the cold start issue.
Granted, it's just for that one cold start execution per-scale node (and they could probably just optionally pre-fire to warm things in that instance, like with a cache), but it's definitely there horizontally.
[ Parent
| on HN ]
Re:New for AWS Lambda: Use Any Programming Language and Shar...
by spullara on Thursday November 29, 2018 @04:31PM
(#18564223)
I really with they would add an init() callback that is called on cold start but before any traffic is sent to your lambda. It wouldn't help when there are no lambdas running but it could be useful when things are scaling up, especially if you can ask for additional concurrency above the actual concurrency necessary for spikes.
Re:New for AWS Lambda: Use Any Programming Language and Shar...
by redisman on Friday November 30, 2018 @12:08AM
(#18566862)
More lifecycle events please! I'd love a onThawed and onFrozen or something so I can kill the DB connections neatly
Re:New for AWS Lambda: Use Any Programming Language and Shar...
by jacobr1 on Friday November 30, 2018 @12:34AM
(#18566967)
You can already do this, I think. Just put this logic in your application's static initialization.
Re:New for AWS Lambda: Use Any Programming Language and Shar...
by spullara on Friday November 30, 2018 @01:46AM
(#18567250)
I don't think so. When it spins it up, the request is already in flight. Otherwise this would have been solved by everyone but instead everyone sees terrible cold start times.