WebSockets with Varnish and Nginx
thruflo.com
WebSockets with Varnish and Nginx
1–10 of 20 posts
Re: WebSockets with Varnish and Nginx
#2Re: WebSockets with Varnish and Nginx
#3If you have Varnish then why have nginx? Is there an advantage to having nginx do the request routing?
However, I really think that nginx should implement proper support for WebSockets by now. I have requested this previously, but the request got unanswered.
Re: WebSockets with Varnish and Nginx
#4If you have Varnish then why have nginx? Is there an advantage to having nginx do the request routing?
Of course if you are just forwarding to another backend you may lose this.
Re: WebSockets with Varnish and Nginx
#5If you have Varnish then why have nginx? Is there an advantage to having nginx do the request routing?
nginx can compress your HTTP traffic, while Varnish can't. So there are some things you would need nginx for. However, I really think that nginx should implement proper support for WebSockets by now. I have requested this previously, but the request got unanswered.
https://www.varnish-cache.org/docs/3.0/tutorial/compression....
Re: WebSockets with Varnish and Nginx
#6If you have Varnish then why have nginx? Is there an advantage to having nginx do the request routing?
Re: WebSockets with Varnish and Nginx
#7Re: WebSockets with Varnish and Nginx
#8this does not address the problem with ssl-traffic. varnish will delegate it to a reverse proxy _in front_ of itself. i usually deploy nginx. looks like a catch-22 for websockets ;).
Re: WebSockets with Varnish and Nginx
#9Re: WebSockets with Varnish and Nginx
#10For now, Java-based servers (using netty) and node.js may be a better idea.