Lambda cold starts hurt latency for a user-facing API. Options?
IntermediateScenarioECS, EKS, Lambda and ECR
Answer
Situation read → Reduce init time, or pre-warm capacity.
What I'd do →
- Enable Provisioned Concurrency on an alias
- Or use SnapStart for Java, Python and .NET
- Shrink package, lazy load libraries, use ARM64
- Avoid VPC-ENI penalties (now small)
- Right-size memory since CPU scales with it
Why → Provisioned concurrency keeps environments initialized at a cost.
Interview tip → Memory tuning often cuts duration and cost together.
More on ECS, EKS, Lambda and ECR
ECS on Fargate or on EC2: how do you choose?BeginnerDeploy a containerized API on ECS behind an ALB. What are the building blocks?BeginnerAn ECS service deployment is stuck, tasks start and stop repeatedly. How do you debug?IntermediateRoll out a new ECS service version with canary and automatic rollback.IntermediateEKS pods need access to S3 without node-level permissions. How?IntermediateUpgrade an EKS cluster from 1.31 to 1.33 safely.Intermediate