Registering multiple target groups for ECS service

0

Hello

Is registering multiple target groups to an ECS service a good practice?

One can think that if I attach multiple target groups where each target group is used in a separate load balancer, where one load balancer handles internal traffic and another load balancer handles external traffic from internet, does that introduce load imbalances between instances of the target groups? If so can these imbalances become so severe that I might need to have separate ECS service altogether to handle external traffic and another ECS service to handle internal traffic?

Thanks

1 Risposta
0

Hi,

The use of multiple target groups could be useful if you are trying to implement patterns such as the ones mentioned here.

Since you are using ECS [it is designed with a focus on scaling], you don't need to create another service [manually] for internal and external needs, instead you can automatically scale your Amazon ECS service based on a metric/alarm/shedule.

As with any solution, it could be necessary to load test it to verify your configurations (Task, Service, ALB, Auto-scaling) can serve real-world loads. I suggest you go through this guide Distributed Load Testing on AWS.

Hope this helps!

Thanks, Rama

profile pictureAWS
Rama
con risposta un mese fa
profile picture
ESPERTO
verificato un mese fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande