What are ECS and Fargate?
Run your app in containers without managing the servers underneath.
A container packages your app with everything it needs: code, runtime, libraries, and settings. If it runs on your laptop, it runs the same way in the cloud. Docker is the most common tool for building container images.
Before shipping containers, cargo was loaded piece by piece, and every ship and port handled it differently. Standard containers made shipping predictable: any crane, any ship, any truck. Software containers do the same for apps.
The AWS pieces
- Amazon ECR (Elastic Container Registry): a private place to store your container images.
- Amazon ECS (Elastic Container Service): runs and manages your containers. It starts them, restarts them if they crash, and connects them to load balancers.
- AWS Fargate: a way to run ECS containers without managing any EC2 instances. You say how much CPU and memory each container needs, and AWS provides it.
Amazon EKS runs Kubernetes, a popular open-source container platform. Choose EKS if your team already knows Kubernetes. ECS is simpler and very AWS-native.
Key takeaways
- Containers bundle an app with everything it needs, so it runs the same everywhere.
- ECR stores images, ECS runs containers, and Fargate removes the servers underneath.
- EKS is the Kubernetes option, while ECS is simpler and AWS-native.
Check your understanding
Pick an answer to see the explanation.
1. What does Fargate remove from your responsibilities?