Reputation: 5132
Let's say my service is live in production using AWS Lambda in place? Now, I find that there is a bug in AWS Lambda, say I fix it and update lambda function, will some messages during the update would fail? How does it handle it internally?
Upvotes: 0
Views: 73
Reputation: 61
Since Lambda is distributed and stateless, no messages will be lost. Depending on the size of your Lambda function, it may take a few seconds for AWS to deploy, but it won't be accepting requests until it is ready to do so (has uploaded and validated successfully).
Worst case scenario, the moment you push the update, there may be several seconds where your Lambda is accepting requests on your old version.
Upvotes: 1
Reputation: 200436
Messages would continue going to the old version until the new version is fully deployed.
Upvotes: 1