Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Great post!

Postgres.js does this implicitly through a simple API[1] mimicking the postgres way, thereby using only a single dedicated connection for listening per process.

Listen/notify is also super useful with triggers.

[1] https://github.com/porsager/postgres#listen--notify



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: