Monitoring and optimizing the cost of the infrastructure

The following are some of the benefits of using ECS:

  • Lower AWS bills by switching from EC2 to ECS:
    • Better resource utilization: Docker allows you to improve resource utilization on EC2 by running instance on more than a single service. You can use two or multiple services on a single instance type.
    • Spot by default: If you use the Spot fleets in your cluster, then it has a lower risk and lower cost of instance turnover. Docker allows you to take advantage of diversity because containers don't care about the machine size on which they run. Containers are fast to start and stop which allows you to save costs on a spot price.
    • Centralized EC2 cost management: Running the ECS service with ...

Get Expert AWS Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.