frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Ask HN: AI revived my durable delay queue project. Is it worth building on?

1•souravray•41m ago
Most backends eventually need to do something once at a specific time. Revoke a trial after 30 days. Expire an offer. Retry a payment in 30 minutes. A few months ago I was consulting for a logistics platform. Their freight bidding workflow had a lot of timed steps. Every minute a cron queries all pending records and pushes them into Kafka. It worked. But it taxes the VM, DB, and message bus alike and creates a ton of unnecessary observability data.

A durable delay queue could be a better fit. But unfortunately, there are not many reliable options for scheduling long-term events.

Back in 2014 I wrote a Go library. It was a delay queue inspired by App Engine's push queues. It ensured durability with a WAL write. It kept them in a sorted heap. At startup ran it in their production. At a throughput of a few thousand tasks/second, it worked well for them.

But, I wanted to achieve millions of timers and much higher throughput. But there was also a bug I could not find. So I shelved it.

Twelve years later, I was cleaning up some old repos. I asked Claude Code if it could find the bug. And ... it found the bug. It was meant to only append to the WAL, but somewhere along the way every task started paying for a full synced commit. My "few thousand tasks/sec" ceiling was the disk's sync rate. The next few hours were pure bliss. Ideas I had carried around for years finally made it back into code. I rewrote it with a segmented WAL and group commit. Far future timers now loaded in memory only at the onset of the horizon. Now it is not no more a built in library but can run as as stand alone service.

Dispatch runs over HTTP/2. It has retries and idempotency keys. The rusty old code suddenly runs like a supercar.

Early numbers on 1 vCPU with ext4 on virtio and 128 byte payloads. - Durable add 107,500/s with 256 writers - End to end durable dispatch 157,000/s - About 44 bytes per pending timer with disk spill - About 403 bytes when resident

Now I'm wondering if anyone actually needs it.

The alternatives I know all have trade-offs. * Cron with DB - polling means duplicates and drift * Redis queues - have persistence trade-offs. Also, far-future schedules will always occupy memory despite durability config. Low thousands throughput * EventBridge - has one-minute granularity, low thousands throughput, and is AWS-only. * SQS and Cloud Tasks - have limits and per-task costs * Temporal, Step Functions etc. - are full workflow engines. resource intensive

I'm thinking about adding HTTP/3, gRPC and Arrow. I also want smarter loading based on available memory. Later I may look at partitioning and Raft. But before I turn this into another opensource project that nobody uses. I would like to hear from people who actually deal with this.

- What do you use for delayed or scheduled work? - What bugs you about it? - Would you run a dedicated durable timer service? - Anyone dealing with millions of future/far-future timers? How do you handle them?

All answers are welcome :-)

Dear Software Makers

https://blog.jim-nielsen.com/2026/dear-software-makers/
1•speckx•1m ago•0 comments

Show HN: Overboard – Mac agent orchestrator with ship captains that spawn agents

https://web-production-4f6f5.up.railway.app/
1•mrieck•1m ago•0 comments

Halfspace experimental IDE for solid modeling with distance fields

https://www.mattkeeter.com/projects/halfspace/
1•luu•2m ago•0 comments

Is Trump's Push to Rename AI to Super Intelligence Part of a Bigger Conspiracy?

https://gizmodo.com/is-trumps-push-to-rename-ai-to-super-intelligence-part-of-some-bigger-conspir...
2•poopcat•3m ago•0 comments

Chernoff Face Cellular Automata

https://www.registeredhexoffenders.com/still_life/
1•MitPitt•4m ago•0 comments

Bologna Bottle

https://en.wikipedia.org/wiki/Bologna_bottle
1•_josh_meyer_•4m ago•0 comments

Gemini Replaces Google Assistant on Android

https://9to5google.com/2026/09/28/google-assistant-gemini-android/
1•iamben•5m ago•1 comments

Aurora PostgreSQL now supports direct query of Apache Iceberg and Parquet data

https://aws.amazon.com/blogs/aws/amazon-aurora-postgresql-now-supports-direct-querying-of-apache-...
1•swasheck•6m ago•0 comments

Government AI Chatbot Reprogrammed to Stop Fact-Checking President

https://newrepublic.com/post/216016/trump-rigs-americagov-ai-chatbot-fact-check-lies
2•worik•7m ago•0 comments

Agreeable Machines: a documented case of AI-reinforced delusion

https://cameronmpalmer.com/blog/agreeable-machines/
1•cameronmpalmer•11m ago•1 comments

Don't Use the "C-Word"

https://aeon.co/essays/we-need-a-better-way-to-describe-what-is-often-called-cancer
1•whiteblossom•11m ago•0 comments

Butterfly Effect

https://sheets.works/data-viz/butterfly-effect
1•gmays•13m ago•0 comments

America.gov goes crazy on "play Minecraft"

https://america.gov/chat
11•thoughtfullyso•13m ago•1 comments

US trade regulator opens investigation into AI giants

https://www.theguardian.com/us-news/2026/sep/30/ftc-investigation-anthropic-openai
1•UntitledNo4•13m ago•0 comments

EDG C++ front-end goes public

https://edgcpp.org/#transition
13•iandinwoodie•20m ago•4 comments

AI broke the job application. What replaces it?

https://news.ycombinator.com/submit
2•Betelbuddy•20m ago•0 comments

Show HN: Jamb AI - Voice Agents for Group Calls

https://twitter.com/sharat_sc/status/2100638882341486961
1•sharatsc•22m ago•0 comments

UAI – An open protocol for identity and accountability of AI agents

https://github.com/rodmontiel/uai
1•rodproof•22m ago•1 comments

Scopeswell

https://www.scopeswell.space/
1•corohanc•24m ago•0 comments

OpenAI delays IPO over AI safety concerns

https://arstechnica.com/ai/2026/09/openai-delays-ipo-over-ai-safety-concerns/
4•mplanchard•24m ago•0 comments

Have Another Drink! Govt sponsored study on alcohol doesn't stand up to scrutiny

1•ksymph•26m ago•1 comments

Meat Proxies

https://www.davidrevoy.com/article1176/meat-proxies
3•frizlab•28m ago•0 comments

Aho-Corasick Algorithm

https://compiler.club/aho-corasick/
3•birdculture•28m ago•0 comments

Body Awareness in Goffin's Cockatoos

https://www.nature.com/articles/s41598-026-57500-7
1•bryanrasmussen•29m ago•0 comments

Type_enforced: Fastest Python Runtime Type Enforcement

https://github.com/connor-makowski/type_enforced
1•conmak•29m ago•1 comments

Compile spreadsheets into standalone interactive TUIs

https://github.com/ralsina/sheety
1•nhatcher•31m ago•0 comments

Professor discovered lost medieval castle hiding inside a Victorian-era building

https://www.foxnews.com/travel/lost-medieval-castle-found-hiding-plain-sight-professor-spots-tell...
1•Vaslo•31m ago•0 comments

Show HN: Halv cut AI agent cost by 57.1% using Jev

https://halv.ai/blog/halv-swe-rebench-astra-42-pairs/
1•villaspedro•31m ago•0 comments

Framework Desktop with 192GB Ryzen AI Max 400 released for pre-order

https://frame.work/de/en/products/desktop-diy-amd-aimax400/configuration/new
3•mft_•34m ago•0 comments

Hanami, Why?: Introductions

https://aaronmallen.me/writing/hanami-why-introductions
2•ibobev•35m ago•0 comments