Let’s say I have two Tornado servers, server1 for serving web pages with pattern /news/blahblah, and server2 for pages with pattern /data/blahblah. These two servers together form the back-end of my application.
I wonder how should I integrate and expose them to the clients, so that different requests to different URLs get served by different server.
I heard of HAProxy, do I have to use that?
You can use haproxy, but you don’t need it in this case.
Use nginx.
Here is example of config for multiple tornados:
And then you can scale it with haproxy…