Hi everyone,
I was trying to find a way of establishing a permanent connection from an NGINX to a downstream server (Zookeeper) that works with a pub-sub architecture and I can't figure out a way of doing so. I have built the library, but now I am trying to establish a permanent connection and subscribe to events on Zookeeper and receive notifications when stuff happens but I fail to find in which context respectively directive of NGINX I would start such a thread so it could permanently run it in the background. init_by_lua and init_worker_by_lua do not allow cosockets and all other directives incl. ngx.timer.at are short lived.
Best
Ingo