Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to configure HAProxy to send GET and POST HTTP requests to two different application servers

Tags:

People also ask

Can HAProxy have multiple frontends?

You may add as many frontend sections as needed to expose various websites or applications to the internet.

How many connections can HAProxy handle?

In HAProxy, you can add more servers to handle more concurrent connections. In this example, HAProxy allows 30 active connections per server. If all of the servers are maxed out, connections queue up, waiting for an available server.

Can HAProxy used as API gateway?

HAProxy, the world's fastest and most widely used software load balancer, fills the role as an API gateway extremely well. In addition to routing API calls for /cart or /catalog to the proper backend services, it also handles load balancing, security, rate limiting, monitoring, and other cross-cutting concerns.

What is global HAProxy?

Global. At the top of your HAProxy configuration file is the global section, identified by the word global on its own line. Settings under global define process-wide security and performance tunings that affect HAProxy at a low level.


I am using RESTful architecture. I have two application servers running. One should serve only GET request and other should serve only POST request. I want to configure HAProxy to loadbalance the requests depending upon the above condition. Please help me