Re:Ask HN: How was your experience with AWS Lambda in produc...
by lunch on Wednesday June 21, 2017 @11:56AM
(#14604870)
Can anyone speak to continuous deployments with Lambda, where downtime is not an option? Is it possible to run blue green deployments?
[ Parent
| on HN ]
Re:Ask HN: How was your experience with AWS Lambda in produc...
by chickenbane on Wednesday June 21, 2017 @12:05PM
(#14604968)
If downtime is an not an option, Lambda is not the solution. Amazon will automatically shut down instances of your Lambda if they haven't been used (~5-15 minutes), and starting a fresh Lambda has noticeable latency. So, some people have resorted to periodically querying their Lambda to prevent this. However, occasionally Amazon will reset all Lambdas, which will force the hard restart.
Re:Ask HN: How was your experience with AWS Lambda in produc...
by lunch on Wednesday June 21, 2017 @12:14PM
(#14605071)
I'm aware of the increased startup latency for functions haven't been recently used, but that's not the same as downtime or dropped connections.
Re:Ask HN: How was your experience with AWS Lambda in produc...
by Prefinem on Wednesday June 21, 2017 @01:02PM
(#14605635)
Deploying code doesn't take a lambda function down. It just spins up the next instance with it.
You do have a cold start issue as mentioned above but if that isn't an issue, then you shouldn't see any down time.
We run a beta / prod system to do testing and then for blue / green, we deploy a second function and switch the API Gateway over when we are good to go. Pretty straight forward