Why it matters
ECS is AWS container option. Understanding shapes container deployment choices.
Advertisement
The architecture
Task definition: container spec.
Service: manages desired count of tasks.
Cluster: pool of compute (EC2 or Fargate).
Advertisement
How it works end to end
Fargate: no infrastructure to manage; per-second billing.
EC2 launch: manage EC2 instances; cheaper at scale; more flexibility.
Service auto-scaling: scale tasks based on CPU/mem.
Integration: ALB, CloudWatch, IAM roles for tasks.