On 5/24/2013 9:23 AM, Daurnimator wrote:I was under the impression they were using OpenResty, though apparently they weren't, and they listed long polling as a "problem" on the slides, so I was wondering if they'd since found a solution.
How is long polling a problem?
I guess the only problem I'm aware of is that there isn't a nice prepackaged library that handles long polling ("Comet"  -- something like socket.io ) reliably across browsers. Ideally there would be a WebSocket code path as well. A bit of Googling finds a module for Nginx that supports websockets , but with no OpenResty support available.
So it looks like my current solution would be one of :
3) Switch to Node.js so I can use socket.io without having to reinvent the server or client side of that equation.
#s 1 and 2 keep me with Lua, which is important to me, but if it turns out that #3 gives me significantly better scalability on a single server (through the use of WebSockets), then I'll swallow my dislike of JS and use it. #3 sounds like the "it just works" solution, which is very attractive.