Interview Prep/AWS/Containers and Serverless

Reserved vs provisioned concurrency in Lambda?

IntermediateConceptContainers and Serverless
Answer

Reserved concurrency carves a guaranteed slice out of the account pool for a function and also caps it (useful to protect a downstream database); it is free. Provisioned concurrency keeps N execution environments initialized and ready, removing cold starts for that capacity, and is billed hourly.

aws lambda put-function-concurrency --function-name api --reserved-concurrent-executions 50
aws lambda put-provisioned-concurrency-config --function-name api --qualifier prod \
  --provisioned-concurrent-executions 20
aws All AWS questions Roadmap: EKS, ECS & serverless on AWS

More on Containers and Serverless