Welcome! Log In Create A New Profile

Advanced

Re: Send all requests to two separate upstream servers?

Richard Kearsley
June 17, 2014 11:26AM
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

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Send all requests to two separate upstream servers?

Eric Feldhusen June 17, 2014 10:14AM

Re: Send all requests to two separate upstream servers?

Richard Kearsley June 17, 2014 11:10AM

Re: Send all requests to two separate upstream servers?

Eric Feldhusen June 17, 2014 11:14AM

Re: Send all requests to two separate upstream servers?

Richard Kearsley June 17, 2014 11:26AM

Re: Send all requests to two separate upstream servers?

Reinis Rozitis June 17, 2014 11:38AM

Re: Send all requests to two separate upstream servers?

Eric Feldhusen June 17, 2014 06:10PM

Re: Send all requests to two separate upstream servers?

Yichun Zhang (agentzh) June 17, 2014 06:28PM

Re: Send all requests to two separate upstream servers?

Eric Feldhusen June 17, 2014 11:22PM

Re: Send all requests to two separate upstream servers?

unclepieman June 17, 2014 11:32PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 125
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready