←back to thread

570 points davidgu | 1 comments | | HN request time: 0.236s | source
Show context
leontrolski ◴[] No.44525560[source]
I'd be interested as to how dumb-ol' polling would compare here (the FOR UPDATE SKIP LOCKED method https://leontrolski.github.io/postgres-as-queue.html). One day I will set up some benchmarks as this is the kind of thing people argue about a lot without much evidence either way.

Wasn't aware of this AccessExclusiveLock behaviour - a reminder (and shameless plug 2) of how Postgres locks interact: https://leontrolski.github.io/pglockpy.html

replies(9): >>44525593 #>>44525651 #>>44525828 #>>44525857 #>>44527315 #>>44527425 #>>44527778 #>>44528689 #>>44533402 #
cpursley ◴[] No.44525651[source]
Have you played with pgmq? It's pretty neat: https://github.com/pgmq/pgmq
replies(1): >>44526409 #
edoceo ◴[] No.44526409[source]
Another thing for @leontrolski to add to the benchmarks - which I cannot wait to read.
replies(1): >>44527164 #
1. cpursley ◴[] No.44527164[source]
There's a pretty cool solution built on pgmq called pgflow:

https://www.pgflow.dev/concepts/how-pgflow-works