Send all requests to two separate upstream servers?

Richard Kearsley richard at kearsley.me
Tue Jun 17 15:24:28 UTC 2014


On 17/06/14 16:12, Eric Feldhusen wrote:
> Option A and that's what I figured as well.
>
If you don't care about sending the upstream response back to the 
client, or want to pick one of the two responses to send back
then you can use the nginx lua module to perform some obscure 
functionality... it's quite a bit more advanced but something you might 
want to look into

http://wiki.nginx.org/HttpLuaModule
http://wiki.nginx.org/HttpLuaModule#ngx.location.capture_multi

however the response would be fully buffered before it could be sent to 
client, so may be quite a delay and a memory hog if it's something large



More information about the nginx mailing list