lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hello!

On Thu, May 23, 2013 at 8:37 PM, Tim Mensch wrote:
> Awesome slides, thanks.
>
> Did you ever come across a solution to doing long polling with nginx+Lua?
> I'm going to need to deal with that in the near future, and I'd rather not
> have to run Node.js just to get long polling support.
>

Yes, you can do that with the ngx_lua module, preferably with a redis
server in its back. See

http://wiki.nginx.org/HttpLuaModule
https://github.com/agentzh/lua-resty-redis

Best regards,
-agentzh