zlacker

[return to "Choose Postgres queue technology"]
1. pauldd+f9[view] [source] 2023-09-24 21:33:30
>>bo0tzz+(OP)
USE. ADVISORY. LOCKS.

Do not use SKIP LOCKED unless it is a toy/low throughout.

Row locks require transactions and disk writes.

Advisory locks require neither. (However, you do have to stay inside the configurable memory budget.)

◧◩
2. mikeoc+xe[view] [source] 2023-09-24 22:22:05
>>pauldd+f9
Pretty common advice for scaling Postgres is to deploy pgbouncer in transaction mode in front of it to handle connection pooling.

Advisory locks don’t work in this setup (and will start behaving in strange ways if you do try to use them.) Something to consider if you go this route.

◧◩◪
3. pauldd+8K2[view] [source] 2023-09-25 17:19:55
>>mikeoc+xe
Depends. That has more to do with how your're scaling application servers.
[go to top]