A new way called DWS to run php script on nginx 0.8.x !

Piotr Sikora piotr.sikora at frickle.com
Sat Oct 9 14:19:01 MSD 2010


Hi,
it seems that you're trying to implement DSR (Direct Server Return) on 
application level. There is a lot of disadvantages of DSR:
http://devcentral.f5.com/weblogs/macvittie/archive/2008/07/03/3423.aspx

The single advantage of DSR is the fact that response doesn't touch 
application router or load-balancer on the way back to the client, which 
allows one to spread traffic over multiple backend servers. However, with 
PHP-DWS that won't be the case because it will work only on the same machine 
on which request was accepted.

So I have to ask: what was the reason this was "invented" in the first 
place? Because to be honest I don't see any advantages of such approach over 
HTTP Proxy or FastCGI. It's not like nginx is so bad at relying response 
back to the client that you need to work around it.

Best regards,
Piotr Sikora < piotr.sikora at frickle.com >
 




More information about the nginx mailing list