-The way that Amazon Web Services [implements concurrency](https://aws.amazon.com/blogs/compute/understanding-aws-lambda-scaling-and-throughput/) for Lambda functions is, to over-simplify, that you can have up to N concurrently-available containers ("environments" if you don't want to use a word that evokes Docker), but that each container will have its own segregated memory, and each container will only ever handle 1 request at a time. Once a request completes, its container can be reused if there are pending requests, and any global state left at the end of the first request will be set and available at the start of the next.
0 commit comments