Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
dirkt
· 4y ago · 0 comments
What are the options to use Postgres pub/sub with Java? Because the usual Java libraries don't seem to support the pub/sub functionality well, you have to actively poll when you want to subscribe.
Comments
[–]
oftenwrong
4y ago
https://impossibl.github.io/pgjdbc-ng/docs/0.8.9/user-guide/...
or
https://github.com/pgjdbc/r2dbc-postgresql#listennotify
[–]
paulryanrogers
4y ago
This may depend on the JDBC driver support Listen/Notify. Though if queue traffic is relatively steady then maybe polling isn't so bad?