Re:Nginx-1.4.0 stable version has been released
by natejenkins on Wednesday April 24, 2013 @03:18PM
(#5603385)
Awesome stuff, thanks. Your second point could explain some of the mysterious non-updates that I've seen from time-to-time when using faye with long-polling behind nginx.
An active websocket connection does have a faster response time than a regular HTTP connection ([1]). The difference here isn't a ton, but may affect real-time applications. The packets are also smaller, so less overhead if you're sending many.
The biggest difference I saw is that when the client or server needs to send several quick requests (many within a couple second), long polling breaks down. From the spec ([2]), "Once the server sends a long poll response, typically the client immediately sends a new long poll request." This delay can add up, and is not pure full duplex. Chunked responses help for server -> client, but client -> server still has the same issues.
[1] http://eng.42go.com/secure-websockets-vs-https-benchmark/
[2] http://tools.ietf.org/html/draft-loreto-http-bidirectional-0...