Interview Prep/AWS/ECS, EKS, Lambda and ECR

Your Lambda scaled so much it overwhelmed a downstream database. How do you cap it?

IntermediateScenarioECS, EKS, Lambda and ECR
Answer

Situation read → Reserved concurrency limits the function.

What I'd do →

  1. aws lambda put-function-concurrency --function-name f --reserved-concurrent-executions 50
  2. Buffer with SQS and set event source MaximumConcurrency
  3. Add RDS Proxy
  4. Alarm on Throttles and ConcurrentExecutions

Why → Reserved concurrency is both a guarantee and a ceiling.

Interview tip → Account concurrency default is 1,000 per region.

aws All AWS questions Roadmap: EKS, ECS & serverless on AWS

More on ECS, EKS, Lambda and ECR