How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Making Postgres Queues Scale

calendar_today June 2, 2026 person Qian Li and Peter Kraft domain dbos

This technical article explores how to scale Postgres-backed task queues to handle billions of workflows monthly. The authors share three critical optimizations: using FOR UPDATE SKIP LOCKED clauses to eliminate worker contention, adjusting transaction isolation levels based on queue configuration needs, and making indexes more selective through partial indexing strategies. These improvements enabled their system to achieve over 30,000 workflows per second in throughput.

open_in_new Read original post