billflare.

D1 billing incident and circuit breakers

Nathan Schram describes D1 write risks and circuit-breaker approaches.

Products
D1Workers
Source
Author experienceLittle Bear Apps
Author
Nathan Schram

Key points

  • The author describes duplicate work in an embedder and a harvester that reinserted existing rows. He recommends deduplication and INSERT ... ON CONFLICT DO UPDATE for repeated records.
  • His breakers have three scopes: a feature budget for each function in a project, a project budget that aggregates its features, and a global emergency stop across projects.
  • The article describes operation-count monitoring through wrapped bindings and a Queue-to-Analytics-Engine path, so monitoring does not add D1 writes. A budget check runs about every 30 seconds.

Original sources

  1. Last updated

    D1 billing incident and circuit breakers

    Open original source

    Nathan Schram describes D1 write risks and circuit-breaker approaches.

Author experienceWorkers +2

Feng Yi: AI cost weekly|11/20; watching the model unit price is not enough—first split costs across requests, CPU, tokens, writes, and retries

On 2026-11-20, X user @Michael_liyang (Feng Yi) published "AI cost weekly|11/20". The conclusion is that watching the model unit price is not enough—first split costs across requests, CPU, tokens, writes, and retries. Figures the author checked this week: creating a D1 table is rows_written=2, and inserting 1 row is rows_written=1; the Workers free tier is 100,000 requests/day; the D1 free tier is 5,000,000 row reads/100,000 row writes per day; R2 egress is 0 美元. Suggested ledger fields: requests / rows_written / cpu_ms / input_tokens / output_tokens / retry_rate / cost_per_success. The author cautions: a free quota is not 0 cost.

Durable Objects

igorrizzom: a forgotten Durable Object alarm billed US$ 2,038; Support refunded US$ 1,533.29, leaving US$ 505.

X user @igorrizzom (Igor Rizzo), who also posted on Cloudflare Community as igorarm (urnaaovivo.com), says a personal, non-commercial prototype that collected public election data in Brazil was left running after the October 25 runoff. A Durable Object kept rescheduling itself via alarm every ~5 seconds and writing to SQLite, and the invoice reached US$ 2,038, almost all from DO rows written, with about 10k pageviews. The author says budget alerts were set up but went to an old inbox that was never checked, and that alerts do not stop usage. Spend limits for Workers and Durable Objects were only announced on November 13, after almost all of the usage; the author then set a US$ 1 spend limit, turned the collector off, and removed Cron Triggers. The author says Support refunded US$ 1,533.29 as a one-time courtesy. The remaining US$ 505, which the author later described as US$ 500 of usage plus the US$ 5 Workers Paid fee, was closed as final; the author asked for a supervisor review in case #02442826 (follow-up to #02435308) and also asked @SidChatterjee whether any goodwill path remained for pre-launch cases. There is no Cloudflare staff reply on the public X thread or the Community thread. Public Support actions are reported by the author.

Official docsWorkers Logs +3

Observability pricing (from December 1, 2026)

Cloudflare’s unified pricing for logs and traces: Workers Logs, Workers Traces, Containers logs, R2 data access logs and AI Gateway logs move to per-GB ingestion and GB-month storage on December 1, 2026.