I Solved a Distributed Queue Problem After 15 Years
Posted4 months agoActive4 months ago
dbos.devTechstory
calmmixed
Debate
60/100
Distributed SystemsQueueing SystemsDatabase Scalability
Key topics
Distributed Systems
Queueing Systems
Database Scalability
The author describes solving a distributed queue problem using durable queues, sparking a discussion on the trade-offs between using OLTP for queueing versus specialized systems like Kafka.
Snapshot generated from the HN discussion
Discussion Activity
Active discussionFirst comment
3d
Peak period
12
84-96h
Avg / period
4.8
Comment distribution19 data points
Loading chart...
Based on 19 loaded comments
Key moments
- 01Story posted
Sep 4, 2025 at 1:56 PM EDT
4 months ago
Step 01 - 02First comment
Sep 8, 2025 at 12:05 AM EDT
3d after posting
Step 02 - 03Peak activity
12 comments in 84-96h
Hottest window of the conversation
Step 03 - 04Latest activity
Sep 9, 2025 at 2:53 PM EDT
4 months ago
Step 04
Generating AI Summary...
Analyzing up to 500 comments to identify key contributors and discussion patterns
ID: 45130143Type: storyLast synced: 11/20/2025, 4:44:33 PM
Want the full context?
Jump to the original sources
Read the primary article or dive into the live Hacker News thread when you're ready.
Using databases for queues isn't a new idea, but a couple things make it different now. One is that I think this is the first time a solution has been open-sourced (not 100% sure on that).
And two, Postgres added SKIP LOCKED in 9.5 (around 2016), which was the performance unlock to make this work without needing a whole DBA team like Skype had.
There are some different approaches here and there which come from making it application specific, e.g. we added a periodic reconciliation check. I also built a debouncer into the queue to give special treatment to burst in the load.
[1] https://blog.benediktsvogler.com/blog/building-a-distributed...
> What we really needed to make distributed task queueing robust are durable queues ...
> Durable queues were rare when I was at Reddit, but they’re more and more popular now.
It sounds like the answer was known at the time but there wasn't the resources to solve it ?
Only recently (last decade or so), has the performance of an open source database on modest hardware caught up to the alternatives.