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

One reason that makes me dislike NOTIFY/LISTEN is that issues with it are hard to diagnose.

Recently I had to stop using it because after a while all NOTIFY/LISTENS would stop working, and only a database restart would fix the issue https://dba.stackexchange.com/questions/325104/error-could-n...



At my previous company, they switched from using NOTIFY/LISTEN for Postgres notifications to a custom solution built on top of logical replication. As I understand it, part of the reason was reliability. I never touched that part of the code, but I believe the idea was to subscribe to logical replication updates and send out notifications based on these.


This is what we do. Even put together a library for it:

https://github.com/cpursley/walex




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

Search: