Hi,

We have some HTTP calls from our app that we'd like to fire and forget, but
we need the Haproxy frontend send a response to the requester immediately
after it passes the request to the backend queue. The intention is to
replace our Gearman setup and thus save us some time in maintenance and
management as we can then just deal in HTTP calls, it also saves us having
to write PHP scripts for gearman processing. What we need is to just be able
to execute a curl call and send a response back as as soon as possible so
the curl call can complete and the script can finish processing.

The chain we want is:

1. Local webserver --- request ---> Haproxy frontend
2. Local webserver <--- local OK response --- Haproxy frontend --- request
(queue) ---> Haproxy backend
3. Haproxy backend --- request ---> Remote webserver
4. Haproxy backend <--- remote response --- Remote webserver
5. dumped <--- remote response --- Haproxy backend

We did some research and it seems like both of the following are possible:

1. Send an automatic HTTP response code from the frontend to the requesting
web server.
2. Put the request in the backend queue to be sent to the remote server

However, with the above it doesn't seem like we can send the response from
the frontend *immediately* after we put the request in the backend queue.

I hope that makes sense. Can anyone provide any feedback on whether
something like this is possible?

Thanks,
Guy



-- 
Guy Knights
Systems Administrator
Eastside Games
www.eastsidegamestudio.com
[email protected]

Reply via email to