FRiCKLE / ngx_postgres

upstream module that allows nginx to communicate directly with PostgreSQL database.
http://labs.frickle.com/nginx_ngx_postgres/
BSD 2-Clause "Simplified" License
545 stars 122 forks source link

Plans to support LISTEN/NOTIFY? #50

Open pmahoney opened 8 years ago

pmahoney commented 8 years ago

Are there any plans to support LISTEN and NOTIFY? Specifically, I'd like to configure a location block such that when I make an HTTP request, it will block, listening on some condition, until it is notified.

agentzh commented 8 years ago

@pmahoney There is no such plan AFAIK. It should be much much easier to implement this in the pgmoon Lua library that is based on ngx_lua module's cosocket API, which is also 100% nonblocking inside NGINX:

https://github.com/leafo/pgmoon

pmahoney commented 8 years ago

Thanks for the tip; I'll check out pgmoon.