Re:Nginx now supports Websockets
by davidw on Tuesday February 19, 2013 @12:27PM
(#5245611)
What were people using previously? Just plopping their node.js or whatever straight on the network?
[ Parent
| on HN ]
I use python's Tornado webserver directly on the network. Don't know if it's the best idea, but seems to work fine for my purposes.
I've had good results so far with node-http-proxy:
https://github.com/nodejitsu/node-http-proxy/
Easy to set up, and has the benefit of reducing the number of processes I need to maintain (my node server and my proxy server are the same).
Hey... saw your comment here http://news.ycombinator.com/item?id=5172775 about the work you did on unrolling arrays in mongo_fdw. Any chance you can email me about it (that thread is closed). username @ gmail.com
We are using HAproxy to direct traffic and nginx only as a web server. The config looks something like this: http://stackoverflow.com/a/8640394/218413
HAProxy has had Websocket support for a while now. But other than that, you can run run on the same domain without a proxy by just using a different port.
Re:Nginx now supports Websockets
by adamkittelson on Tuesday February 19, 2013 @12:33PM
(#5245655)
Something like varnish or haproxy. In my setup I had varnish proxying "/websocket" directly to my app server, and everything else to nginx.
Re:Nginx now supports Websockets
by elliotanderson on Tuesday February 19, 2013 @06:52PM
(#5247986)
There was two main options
1. Run nginx with something like HAProxy/Varnish infront
2. Run nginx alone with the app server on port 80/443 and the websocket server running on a special port. The app was then proxyed using the built in http_proxy, while the websocket was handled by tcp_proxy.
Re:Nginx now supports Websockets
by brendanobrien on Tuesday February 19, 2013 @12:34PM
(#5245665)
I've been using HAProxy in the interim.