Choose between Lambda, Fargate and EKS for a new service.
IntermediateScenarioECS, EKS, Lambda and ECR
Answer
Situation read → Based on runtime shape and team capability.
What I'd do →
- Lambda: event-driven, spiky, short (under 15 minutes)
- Fargate: long-running containers without cluster operations
- EKS: need Kubernetes ecosystem, portability, complex scheduling
- Compare cost at expected steady load
Why → Operational overhead grows from Lambda to Fargate to EKS.
Interview tip → Do not choose EKS for resume value.
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