1.zip exist on NGINX-1 and NGINX-2 (my backend, which are both reveres-proxy)
Client request 1.zip from HAproxy, and it find the least busy server and send that request to that server (NGINX-1 or NGINX-2) BUT without staying in the middle.
I don’t want HAproxy to act as reverse-proxy and pull the data for the client (from the backend),
and then send the data to the client from the HAproxy server.
Instead, I want it to send the user directly to the edge server (nginx).
I assume to do so must use redirect 302?!
I’m trying to make HAproxy to do 2 things and i’m not sure how and if possible.
Make HAproxy to do redirect to the backend servers, and not stay as “Man in the middle” between the client and the server.
Make HAproxy Load-balance (send to the server with the least bandwidth) between the backends while always sending to the backends with redirect.
So after stage 3 (of the picture), HA doesn’t talk anymore with the client.
Is that possible, and if so how?
I appreciate any help!