frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Durable Object alarm loop: $34k in 8 days, zero users, no platform warning

13•thewillmoss•7h ago
Sharing this as a warning to anyone using Cloudflare Durable Objects with alarms.

Root cause:

My DO agent's onStart() handler called this.ctx.storage.setAlarm() on every wake-up without checking whether an alarm was already scheduled. Combined with 60+ preview Worker deployments each creating independent DO instances, this created a runaway self-health-check loop.

Timeline: - April 3: loop began (zero DO usage before this date)

- April 4-5: peaked at ~930 billion row reads/day

- April 11: found it, fixed it

- April 15: $34,895 invoice due with no billing response yet

The fix:

// Before (dangerous) async onStart() { await this.ctx.storage.setAlarm(Date.now() + 60_000) }

// After (safe) async onStart() { const existing = await this.ctx.storage.getAlarm() if (!existing) { await this.ctx.storage.setAlarm(Date.now() + 60_000) } }

Other things worth doing: - Strip DO bindings from preview environments entirely - Deploy a budget monitor kill switch Worker - Add a circuit breaker that checks alarm state before scheduling

Why I had no warning:

Cloudflare's Workers Usage Notifications only monitors CPU time. Not Durable Object row reads or writes. There is also no hard spending cap for DO operations available in the dashboard or Wrangler config. Nothing would have fired an alert during this runaway. I found out when the bill showed up.

This is worth knowing if you're using DO alarms. The platform will not tell you when DO row reads/writes go exponential. You have to build your own kill switch.

One more thing that I think deserves more attention than it's getting: this is Agents Week. Cloudflare is running a dedicated marketing push right now to get individual developers building AI agents on Durable Objects. Blog posts, announcements, the whole thing. That is a deliberate effort to onboard solo developers and indie founders into a product that can silently generate a five-figure bill with zero platform warning. There is no spending cap for DO operations. The usage notification system doesn't cover DO reads or writes. Cloudflare knows this. Running Agents Week while that gap exists is not a neutral decision.

I've filed Case 02067725. I'm a pre-launch sole proprietor who put all my personal savings into this startup. This bill would financially destroy me for usage that generated zero business value. Sharing here both as a technical warning and because I need help getting this in front of someone at Cloudflare who can make a decision.

Has anyone escalated a billing dispute with Cloudflare successfully?

Ask HN: Who is using OpenClaw?

270•misterchocolat•12h ago•324 comments

Ask HN: Who is your favourite Entrepreneur/Visionary?

2•wasimsk•16m ago•1 comments

Ask HN: SeedLegals Partnerships in London, worth it?

2•pain_perdu•2h ago•0 comments

Ask HN: How to highlight talent from untraditional backgrounds?

4•etherus•2h ago•1 comments

Tell HN: Fiverr left customer files public and searchable

808•morpheuskafka•1d ago•227 comments

Durable Object alarm loop: $34k in 8 days, zero users, no platform warning

13•thewillmoss•7h ago•0 comments

Ask HN: How do you find motivation to do stuff?

17•RockstarSprain•16h ago•19 comments

Ask HN: What Are You Working On? (April 2026)

341•david927•3d ago•1155 comments

Tell HN: Docker pull fails in Spain due to football Cloudflare block

1141•littlecranky67•3d ago•420 comments

Any engineers here with experience of clinical data standards?

2•kalturnbull•11h ago•0 comments

Tell HN: Anthropic no longer allows you to fix to specific model version

21•baobabKoodaa•1d ago•1 comments

Ask HN: As an Australian, is it possible to get a remote US role?

4•apatheticonion•1d ago•6 comments

GitHub gave webhook secrets away in webhook call

11•time4tea•1d ago•1 comments

Ask HN: Is Claude Getting Worse?

6•sahli•19h ago•13 comments

Tell HN: OpenAI silently removed Study Mode from ChatGPT

186•smokel•3d ago•77 comments

Ask HN: Robotics engineers – how painful was setting up GPU sim infra?

3•nikhilol•1d ago•7 comments

Ask HN: Easiest UX for Seniors

57•khoury•4d ago•60 comments

Ask HN: Can anyone suggest me a SaaS product idea?

4•wasimsk•1d ago•10 comments

Ask HN: What's the point in creating a startup when anyone can copy it in days?

15•wewewedxfgdf•22h ago•22 comments

What do you want out of a coding monospace font?

2•d0able•1d ago•7 comments

Ask HN: I quit my job over weaponized robots to start my own venture

115•barratia•1d ago•76 comments

Ask HN: LeetCode, anyone still doing it?

14•kwar13•2d ago•11 comments

Ask HN: Are Web Agencies Cooked?

10•mijustin•1d ago•9 comments

Ask HN: What's your favorite security cam system?

4•SunshineTheCat•1d ago•5 comments

Ask HN: What standards or protocols exist for AI Agent permissions

2•lyfeninja•1d ago•3 comments

Ask HN: Can't view public pull requests without logging in (GitHub)

5•alskdj21•16h ago•2 comments

Tell HN: GitHub might have been leaking your webhook secrets. Check your emails.

36•ssiddharth•1d ago•12 comments

PersMEM: Persistent Semantic Memory and Multi-Instance Communication for AI

3•asixicle•1d ago•0 comments

Ask HN: Are you negatively affected by the recent economic stagnation?

8•adinhitlore•2d ago•21 comments

Why most AI projects feel useless

8•vaishcodescape•2d ago•9 comments