HAProxy - URL Based routing with load balancing
I am new to HAProxy and I have a question about HAProxy configuration which helps me make a key decision in taking the right approach. This will greatly help me deciding the architecture. I have 3 apps. Let's say app1 , app2 , app3 . Each app is differentiated by the urls as follows: www.example.com/app1/123 -> app1 www.example.com/app2/123 -> app2 www.example.com/app3/123 -> app3 I am planning to have 2 instances of each app in 2 different regions: Region 1 - app1, app2, app3 Region 2 - app1, app2, app3 I see 2 methods to configure this but I am not sure which is the best practice here: