Network Load Balancer within private subnet using awsvpc network mode

Viewed 10

I have the following setup:

  • An ECS cluster with
  • N services deployed
  • which are connected through awsvpc network mode,
  • distributed across 3 different private subnets.

Within this setup:

  • N-1 services acts as consumer
  • 1 service acts as data provider

The consumers tasks query the data provider through its IP, which is discovered using Route53 APIs.

Now that the problem is formulated, the question is the following:

Since I cannot stop the consumers tasks while I upgrade the data provider task, bearing in mind that the only connection among these services is IP based (which is fixed within the code and cannot be refreshed due limitations), would be feasible to introduce a Network Load Balancer at which the consumers will point out and use it to re-route traffic after data provider task upgrades?

0 Answers
Related