3

I have two unrelated applications ( they are not two microservices of the same application, but two separate services ) running on Amazon Ec2 or Fargate. Should I share an application loadbalancer using path-based routing or have a separate loadbalancer for each application? What's the best practice?

Heschoon
  • 241
  • 1
  • 9

1 Answers1

4

After some deeper research, it seems that sharing Application load balancers can be an effective way to reduce costs, with no downside.

A more appropriate solution than path-based routing when having different applications using the same ALB is host-based routing. Host-based routing is transparent for the underlying applications as it doesn't require them to know about the path the Listener Rule uses to dispatch the requests of their clients.

Useful references:

Heschoon
  • 241
  • 1
  • 9
  • 1
    I agree that this seems like a good approach. Someone with significant practical experience may let you know if this has any practical issues. – Tim May 20 '19 at 19:40