0

I would like to have all my Web services versions deployed at the same domain, like this:

  • rest.mydomain.com/v1/
  • rest.mydomain.com/v2/
  • ...

But these different versions are in different servers. Do I need to use a load balance server to configure this behavior? Or is there a better way to to that?

1 Answer 1

2

Load Balancing is the best option. Nginx, haproxy, apache, etc. support load balancing / reverse proxy based on the url path.

Layer 7 Load Balancing with HAproxy

Reverse Proxy with Nginx

5
  • HD, and all the requests will pass through the load balancer, or just the first? Mar 18, 2015 at 0:05
  • All requests will pass through it. Mar 18, 2015 at 8:43
  • Performance problems? Mar 18, 2015 at 11:00
  • 1
    Can't see performance problems unless that the latency between the Load Balancers and the backend servers is high (different networks). CPU / Memory usage on LBs is very low . All the requests will pass through the LB so you'll need the combined bandwidth from all your backends in the LB.
    – hdanniel
    Mar 18, 2015 at 14:15
  • Always same network. Got it! Mar 20, 2015 at 19:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .