Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Differences between EC2 Auto Scaling Group (EC2 ASG) and Elastic Container Service (ECS)

Tags:

From what I've read so far:
EC2 ASG is a simple solution to scale your server with more copies of it with a load balancer in front of the EC2 instance pool
ECS is more like Kubernetes, which is used when you need to deploy multiple services in docker containers that works with each other internally to form a service, and auto scaling is a feature of ECS itself.

Are there any differences I'm missing here? Because ECS is almost always a superior choice to go with if they work as I understand.

like image 934
Dang Duy Nam Avatar asked Apr 09 '20 08:04

Dang Duy Nam


1 Answers

You are right, in a very simple sense, EC2 Autoscaling Groups is a way to add/remove (register/unregister) EC2 instances to a Classic Load Balancer or Target Groups (ALB/NLB).

ECS has two type of scaling as does any Container orchestration platform:

  1. Cluster Autoscaling: Add remove EC2 instances in a Cluster when tasks are pending to run
  2. Service Autoscaling: Add/remove tasks in a service based on demand, uses Application AutoScaling service behind the scenes
like image 75
shariqmaws Avatar answered Sep 18 '22 22:09

shariqmaws