Welcome! Log In Create A New Profile

Advanced

Proxy handler to multiple servers for single request.

November 04, 2011 07:00AM
I have requirement where proxy handler needs to talk to multiple server before sending request to actual server where it gets processed. For example proxy handler receives user request, talks to virus scanner to see user data contain any virus or not then only forward to actual server. Here virus scanner may be another server or a thread part of nginx. My doubts are

1) When I went through proxy module, ngx_http_proxy_create_request is the callback responsible to prepare request to send to another server. As per understanding, I need to call here virus scanner before sending request. Is it correct? Or is there any other place I can do this work? In this function if I call virus scanner API's, how will the request forwarded the server which serves request?

2) How to make it asynchronous with out effecting nginx's performance.

--
Thanks
Subject Author Posted

Proxy handler to multiple servers for single request.

forum_id November 04, 2011 07:00AM

Re: Proxy handler to multiple servers for single request.

forum_id November 04, 2011 07:58AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 145
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready