An ECS service keeps multiple tasks of the same kind running. It maintains the desired task count, replaces failed tasks, distributes tasks across Availability Zones, and coordinates rolling updates. section 18.3 section 18.6
An ECS service can:
- Run several copies of an application task continuously. section 18.3
- Scale the desired task count in response to load such as CPU utilization. section 18.3 section 18.5
- Register tasks with a load balancer and distribute incoming requests across running containers. section 18.5 section 18.5
- Deploy updates while maintaining healthy capacity and rolling back failed deployments. section 18.5
A service belongs to an ECS cluster and launches tasks from a task definition. A typical CloudFormation configuration selects Fargate, sets DesiredCount to 2, connects the application container to a target group, and defines health-check and deployment settings. section 18.3 section 18.5
Notea web application
A Notea deployment uses an Application Load Balancer, an ECS service, Fargate compute, and S3 storage. The service starts two application tasks, scales them based on CPU load, and exposes the application through the load balancer. section 18.5
Shows how an ECS service manages multiple tasks of the same kind. section 18.3
