Re:AWS Lambda – Best practices
by alexvy86 on Thursday March 02, 2017 @10:28AM
(#13774686)
I'm not familiar at all with Amazon's cloud, so I might be misinterpreting... but when you say "sometimes reuse..." and "they're often still there..." it sounds to me like they might as well not be? How would that be a good foundation for an app deployed in Lambda?
[ Parent
| on HN ]
Think of Lambdas like autoscaling containers. If you're operating with decent load, there's a good chance your container will stay up and be reused for multiple requests. But if load drops, your containers might be shut down so they aren't taking up resources while they're not being used. When load increases again, more instances will be spun up.
It's the same approach as autoscaling VMs, but at a function level.
Re:AWS Lambda – Best practices
by asdfasdfa11112 on Thursday March 02, 2017 @11:34PM
(#13780753)
If the pool is still there, it gets reused. If not, a new one is created.
It should help with overhead, but not always. There's benefits to partial solutions sometimes, if you can avoid the side effects.