Nginx request forking

Posted by Adam on Server Fault See other posts from Server Fault or by Adam
Published on 2010-07-27T23:30:56Z Indexed on 2010/12/28 14:56 UTC
Read the original article Hit count: 333

Filed under:

Hi, I'm wondering if nginx can "fork" a request.
Let's imagine config:

upstream backend  {
  server localhost:8080;
  ... more servers here
}

server {
  location /myloc {
    FORK-REQUEST http://my-other-url:3135/something
    proxy_pass http://backend;
  }
}

I would like nginx to send a copy of request to the url specified by FORK-REQUEST and after that to load balance it with backend servers and return the response to the client. As I don't need the response from FORK-REQUEST it would be best if this request was async so normal prcessing doesn't have to wait.

Is a scenario like this possible?

© Server Fault or respective owner

Related posts about nginx