Algorithms
Leader Election and Job Claiming with Postgres Advisory Locks
How to run a distributed scheduler on a single table: advisory-lock leader election, SKIP LOCKED work claiming, semaphore-style concurrency caps, and heartbeat reaping.
6 min read