zlacker

[return to "Choose Postgres queue technology"]
1. jpgvm+La[view] [source] 2023-09-24 21:47:39
>>bo0tzz+(OP)
Few things.

1. The main downside to using PostgreSQL as a pub/sub bus with LISTEN/NOTIFY is that LISTEN is a session feature, making it incompatible with statement level connection pooling.

2. If you are going to do this use advisory locks [0]. Other forms of explicit locking put more pressure on the database while advisory locks are deliberately very lightweight.

My favorite example implementation is que [1] which is ported to several languages.

[0] https://www.postgresql.org/docs/current/explicit-locking.htm...

[1] https://github.com/que-rb/que

◧◩
2. teaear+eF[view] [source] 2023-09-25 03:27:58
>>jpgvm+La
Is there a Node version of Que?
[go to top]