You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
AWS Fargate is a serverless compute engine for containers that works with both Amazon ECS and Amazon EKS. With Fargate, you don't need to provision, configure, or scale clusters of virtual machines to run containers. You simply define your task, specify the CPU and memory requirements, and Fargate handles the rest.
The term "serverless" does not mean there are no servers — it means you don't manage them. With Fargate:
| Traditional EC2 Approach | Fargate Approach |
|---|---|
| Choose EC2 instance types | Specify CPU and memory per task |
| Launch and manage EC2 instances | Fargate provisions compute automatically |
| Install and update the ECS agent | No agent to manage |
| Patch the host operating system | AWS patches the underlying infrastructure |
| Scale EC2 instances up and down | Tasks scale independently |
| Pay for EC2 instances (even if underutilised) | Pay only for the resources each task uses |
When you launch a Fargate task, the following happens:
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.