Hello!
On Tue, Feb 19, 2013 at 8:41 AM, Calin Don wrote:
> Is it possible to spawn a lua thread which runs continously, is subscribed
> to some redis channels and reacts to changes (eg. modifies a shared
> dictionary or do a remote call to a web service)?
>
It'll be officially possible when the timer_by_lua directive is
implemented in ngx_lua :)
For now, people have been using some tricks to do something like that,
i.e., using detached long-running requests (by calling ngx.eof early).
See the related documentation for details:
http://wiki.nginx.org/HttpLuaModule#ngx.eof
Best regards,
-agentzh