Split one request into multiple servers

Can I split a request into multiple endpoint servers?

So, for example: If server A receives one request, it forwards it to 3 different servers (B, C, and D) that will receive this original request with the X-Forwarded-For header.

forward request => A ========> B ========> C ========> D 

The answer to this question may be a simple 200 OK.

I have played with HAProxy and Apache mode_proxy so far without success.

Also read about HTTP pipelining , but I don't think this is the case here.

+6
source share
2 answers

Gor was written to do just that.

Arthur Lutz hat tip for posting an answer here .

+4
source

Hm. How can I do it? Most network settings, since they perform a proxy request or load balancing, maintain a one-to-one relationship between the incoming request and the final destination for this particular request. I think you will need the code between them. I think I would use mod_perl or the apache user module in C to intercept the request at an early stage and do multiple routing with subqueries.

+1
source

Source: https://habr.com/ru/post/903162/


All Articles