Source-linked reports: Amounts and outcomes come from the original reports and linked replies.
frankzeng2020: Durable Objects ran 1.19 million times against a 1 million monthly allowance, overpaying $0.15.
X user @frankzeng2020 (Frank Zeng) says anti-abuse code written to stop crawlers first exhausted the Cloudflare allowance: Durable Objects ran 1.19 million times against a monthly allowance of 1 million, overpaying 0.15 dollars. The author traces most of the usage to a playback-page heartbeat every 30 seconds plus online stats that called Durable Objects five times, including rejected requests that still hit Durable Objects for a block check; one open page used 430,000 calls in a month. The author also notes a usage-alert email, a D1 scan of 925 million rows in a day, and that a fix (moving the heartbeat off Durable Objects, caching denials at the edge, merging quota checks, and adding a circuit breaker) has been deployed. The $0.15 is the Durable Objects overage; a screenshot of a Workers 800,000-request threshold alert is supporting context only and is not used as the amount.
What happened
- Reported cause
- Repeated polling
- Incident date
- Date not recorded
- First reported
- 2026-11-11 14:38 UTC
- Billing outcome
- Not recorded
- Case progress
- Not established
- Public Cloudflare reply
- Not linked
Original sources
Each entry links to the report or reply it describes.
Case timeline
Durable Objects overage
Read on 𝕏The author says Durable Objects ran 1.19 million times against a 1 million monthly allowance and overpaid $0.15, largely from a 30-second heartbeat.
Frank Zeng🇨🇳🇨🇦
@frankzeng2020 · Original 𝕏 post
为了防爬虫写了段防滥用代码,结果防滥用代码先把 Cloudflare 额度干超了😂 幸好配了告警邮件。让 Claude Fable 5.2排查了一圈: Durable Objects 跑了 119 万次(月套餐 100 万),多付了 0.15 刀。 钱不多,但扒开一看全是深坑。 【1. 心跳把 DO 活活打崩】 播放页每 30 秒心跳 + 在线统计,居然要调 5 次 DO;连被拒绝的请求,都得先过一次 DO 做拦截检查。 一个页面挂着,单月耗掉 43 万次。只要 3 个人常开页面,整月额度直接归零。 👉 解法: 心跳移出 DO,边缘缓存拒绝结果,合并配额检查,加上降级熔断。 【2. 顺手揪出的三个雷区】 ① 低频爬虫穿透 IP 限流: 46 个 IP 轮换,合起来每小时 1 万+ 请求。已在边缘针对特征加上 Managed Challenge。 ② D1 一天狂扫 9.25 亿行: 查单个频道底层扫描 3500 条流,调整索引命中后改成按频道只扫几行。 ③ CPU 重复劳动: 签名密钥每次请求都重新导入,改成实例级内存缓存复用。 本来还想删 Worker 省钱,查完发现 8 个都有用,真正要命的是调用链设计。 修复已上线,等跑满 24 小时看降幅。 附上让 AI 自查项目的 Prompt,需要的自取: “请检查当前项目是否存在‘功能正常,但云服务用量被悄悄放大’的问题: 1. 心跳/轮询/重试/限流,一次操作触发多少次计费调用?被拒请求是否仍在消耗资源? 2. 数据库是否为返回少量数据而全表扫描(排查索引与 N+1)? 3. 是否存在未缓存的重复初始化、密钥导入或计算? 4. 遇到爬虫轮换 IP、长时间挂机时,用量如何增长? 5. 是否有分项告警与降级熔断?(Cloudflare 请隔离核算 DO、D1、Workers) 定位到代码,按挂机 24h 与 10 倍异常推算用量风险。只读审计,不改配置。”
More to read
Why a per-request key pool did not fit KV's free tier, and moving it to a Durable Object
A Reddit user who built an MCP reverse proxy on Workers says keeping the API-key pool in KV cost 1 list, N reads and 1 write per request, so the Free plan's 1,000 writes and 1,000 lists a day capped it at roughly 500 calls a day; moving the pool to a SQLite-backed Durable Object (100,000 rows written and 5 million rows read a day on Free) removed the wall and a race condition.
Cynthia Toporowski (@ItsCynnamoroll): Cloudflare bill inflated to around $400, well beyond expectations.
Cynthia Toporowski (@ItsCynnamoroll) says the Cloudflare bill inflated well beyond what was anticipated, to around $400, and that an AI coding agent was told to immediately scan for issues and rework the project’s git implementation so that billing runaway is not a concern going forward. The same post says the reworked implementation looks faster and cheaper than Cloudflare Artifacts.
Polaris: self-hosted Free-plan remaining-quota and cost dashboard on Workers
etak64n/polaris is an MIT-licensed dashboard on Cloudflare Workers that shows how much of each Free plan limit is left and the cost/metrics of Workers, D1, R2, KV, Durable Objects, Queues, Workflows, Hyperdrive, Browser Run and Workers AI. It deploys behind Cloudflare Access and reads Analytics with an API token kept as a secret.