I have a simple web application, All requests to that application are HTTP based (RESTfull API and standard ajax)
I have an haproxy before my tomcat cluster.
So now i have clients that http request from my load balancer and the load balancer then forwards it to my web server (tomcat)
My question is:
Is it possible to make the communication protocol between the load balancer (haproxy) and my tomcat much more faster than http? maybe tcp? and still keep the http requests flow my clients direct towards my load balancer.
If i'm not mistaken the protocol map looks somthing like this:
Client -(HTTP)----> Haproxy -(HTTP)---> tomcat
I would like to use tcp for faster performance like so:
Client -(HTTP)----> Haproxy -(TCP)---> tomcat
Isn't the 2nd map much faster than the 1st? but is it possible?