Welcome! Log In Create A New Profile

Advanced

Re: further "Hacking" the event model of Nginx

July 16, 2010 01:12AM
to be able to receive the request of one backend, process it, and then
go to the next one, i think this will help you:
http://github.com/vkholodkov/nginx-eval-module

for getting the post value this might help:

http://github.com/calio/form-input-nginx-module

On Fri, Jul 16, 2010 at 12:50, Vincent Huang <lists@ruby-forum.com> wrote:
> Mauro Stettler wrote:
>> you really need to specify more details about what you are doing. is
>> that HTTP? what are you processing, maybe you don't need to hack
>> anything, depending on what you do with the request...
> Thanks for your help;-)
> yes, it is HTTP. Our business logic is split into multiple tasks, they
> are deployed on multiple backend servers. We have a master server
> visible to the client. The master server need read client post data
> ,modify the data and send to backend server1, the backend server1 also
> have nginx running, it should do a time consuming task. The master
> server received the response from backend server1 and send back to
> backend server2. backend server2 also do a time consuming task. the
> master server received the response and send back the client.
> By now, I have the following design:
>
> the master server handle the client request, it will modify the post
> body and bypass request to backend server1.(I may need to learn code in
> proxy_module and fastcgi_module)
> problem:
> How can I hook the response send back from backend server1? Can I use
> body filter module so that I can get the response body and send to
> backend server2 again?
>
> the backend server logic is simple, it will invoke functions in dll.
> problem:
> the functions in dll is time consuming, Will it block the nginx?
>
> Thanks again;-)
>
> --
> Posted via http://www.ruby-forum.com/.
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx
>

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

further "Hacking" the event model of Nginx

Vincent Huang July 16, 2010 12:08AM

Re: further "Hacking" the event model of Nginx

replay July 16, 2010 12:32AM

Re: further "Hacking" the event model of Nginx

Vincent Huang July 16, 2010 12:54AM

Re: further "Hacking" the event model of Nginx

replay July 16, 2010 01:12AM

Re: further "Hacking" the event model of Nginx

Vincent Huang July 16, 2010 02:52AM

Re: further "Hacking" the event model of Nginx

Johan Bergström July 16, 2010 03:30AM

Re: further "Hacking" the event model of Nginx

Vincent Huang July 16, 2010 03:40AM

Re: further "Hacking" the event model of Nginx

Johan Bergström July 16, 2010 03:56AM

Re: further "Hacking" the event model of Nginx

Vincent Huang July 16, 2010 04:52AM

Re: further "Hacking" the event model of Nginx

Maxim Dounin July 17, 2010 03:00AM

Re: further "Hacking" the event model of Nginx

Ashish S Dev March 08, 2012 09:14PM

Re: further "Hacking" the event model of Nginx

Ashish S Dev March 08, 2012 09:16PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 179
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