- Newest
- Most votes
- Most comments
Based on the cost analysis of ECS deployment options:
For compute-intensive workloads, ECS on EC2 is generally much cheaper than Fargate. For your specific resource needs (10 vCPUs and 20GB memory), Fargate would be more expensive since it charges separately for vCPU and memory usage, while EC2 offers combined resource pricing.
Regarding cost savings with commitment options:
- Standard Reserved Instances offer the highest potential savings of up to 75% off On-Demand pricing
- EC2 Instance Savings Plans provide up to 72% savings
- Compute Savings Plans offer up to 66% savings and can apply across EC2, Lambda, and Fargate usage
- Convertible Reserved Instances provide up to 54% savings with more flexibility to change instance attributes
The trade-off consideration is that while EC2 requires more maintenance effort and infrastructure management, it provides better cost optimization potential. Fargate removes the need to manage infrastructure but comes at a premium price for the added convenience and automation.
One important limitation to note is that Fargate only supports up to 4 vCPUs and 30 GB memory per task , so for your 10 vCPU requirement, you would need to split the workload across multiple Fargate tasks, which could further impact costs.
Hi Pavlo, Without knowing the details, it is likely RI for EC2 is the way to go for you. If you want to explore cost details you can always use the free pricing calculator from AWS: https://calculator.aws/#/addService
fyi Fargate is serverless and you would not have EC2 instances at that point, thus not benefitting from RI
- Alejandro https://www.alejandrix.com
Relevant content
- asked 3 years ago
- asked 3 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 9 months ago
