Tagged: Distributed Systems
1 post tagged “Distributed Systems”.
Topics
Posts1 note
A Postgres job queue in one statement, and what breaks when you remove each part
UPDATE ... WHERE id = (SELECT ... FOR UPDATE SKIP LOCKED) is the standard Postgres job queue. I removed its parts one at a time: duplicate claims, workers that think the queue is empty, and a queue that runs in single file.
6 min read · PostgreSQL, Go, Distributed Systems