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 réponse
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
répondu il y a un mois
profile picture
EXPERT
vérifié il y a un mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions