Home / Companies / DBOS / Blog / Post Details
Content Deep Dive

Postgres Queues Actually Scale

Blog post from DBOS

Post Details
Company
Date Published
Author
Qian Li Peter Kraft
Word Count
1,068
Company Posts That Month
5
Language
English
Hacker News Points
2
Post removed?
No
Summary

Postgres-backed queues can support high-throughput workloads despite their reputation for poor scalability when contention, transaction behavior, and index overhead are addressed carefully. A system described by DBOS reached more than 30,000 workflow executions per second across thousands of servers by using `FOR UPDATE SKIP LOCKED` to let concurrent workers claim distinct queued jobs without competing for the same rows, avoiding the severe bottleneck of naive polling. It then reduced serialization failures by using the stricter REPEATABLE READ isolation level only for queues requiring global concurrency limits, while using READ COMMITTED for queues with local limits. Finally, it lowered CPU and autovacuum costs by redesigning indexes to match dequeue ordering, using partial indexes only for relevant workflow states or records, and reducing unnecessary index maintenance during workflow updates.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Observability 2 4,493 866 208 +9%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.