Is it bad practice to select upstream servers based upon the HTTP method?
Posted
by PartlyCloudy
on Stack Overflow
See other posts from Stack Overflow
or by PartlyCloudy
Published on 2010-05-08T16:14:14Z
Indexed on
2010/05/08
16:18 UTC
Read the original article
Hit count: 174
http
|reverse-proxy
I'm wondering if it is bad practice to have a reverse proxy that selects the upstream server depending on the HTTP method used?
The background is that I have an abitrary web server that handles POST
requests with some logic behind. The same resources also contain static content, that can be retrieved using GET
. After some benchmarking I realized that nginx would handle the static content way faster than my abitrary web server doing this.
I checked the option to forward incoming requests internally using nginx, which is feasible.
But this would lead to the fact that different servers would serve a distinct resource, only depending on issuing a GET
or POST
, including different header fields.
© Stack Overflow or respective owner