4 ms·
I am a huge fan of serverless, and AWS as well. I also find it deeply ironic that their solution to cold starts is to keep the function running 24/7... Could
by nexuist 7y ago
I am a huge fan of serverless, and AWS as well.
I also find it deeply ironic that their solution to cold starts is to keep the function running 24/7...
Could I include openssh and Apache in my Lambda instance? Maybe run a Minecraft server? :P
- karavelov 7y agoYour function is frozen if there is no active invoke in progress. So no, ssh or minecraft server will not work, unless you make them communicate over Lambda invocations.
- WatchDog 7y agoEven if it were not frozen, the idle "Provisioned Concurrency" price is still more than paying for an active on-demand ec2 instance.
- moduspol 7y agoAFAIK it's not a solution, it's just a workaround. As others have said, the previous workaround was a cron event that would invoke a function every few minutes to keep it warm. This is a lot better than that. They're still working to get cold starts as fast as possible, but this helps a lot in the meantime.
- efi-lumigo 7y agoCold start is inherent to the Lambda model, trying fixing cold start will probably bend the model, there is no way around it