further "Hacking" the event model of Nginx

Johan Bergström bugs at bergstroem.nu
Fri Jul 16 11:24:21 MSD 2010


Hey,

Wouldn't http://wiki.nginx.org/NginxXSendfile work for bouncing your request between servers without modifying source code (thats how I do it) ? 

Cheers,
Johan

On 16 jul 2010, at 06.02, Vincent Huang wrote:

> Hi all,
> 
> I have read the following post.
> http://www.ruby-forum.com/topic/149417
> It is helpful, I am new to nginx and need some instructions on my work.
> 
> We have 3 machines, server MASTER is the application server visible to
> client. server WORK1 and server WORK2 is the task processing server. the
> request sequence is like this:
> 
> 0. client
>            -send request
> 
> 1. nginx server MASTER:
>            -receive request
>            -extract useful information from request
>            -post the re-structured extract data to nginx server WORK1
> 
> 2. nginx server WORK1:
>            -receive the request
>            -process...
>            -send back response
> 
> 3. nginx server MASTER:
>            -receive the response from WORK1
>            -post the response data to nginx server WORK2
> 
> 4. nginx server WORK2:
>            -receive the request
>            -process...
>            -send back response
> 
> 5. nginx server MASTER:
>            -receive the response from WORK2
>            -send back the response data to client
> 
> Can anyone help me on where to hack on nginx that can suit my scenario.
> 
> Regards,
> Vincent
> -- 
> Posted via http://www.ruby-forum.com/.
> 
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx




More information about the nginx mailing list