BuildRiot
Sign in

BackendSource: Cloudflare

Cloudflare launches Spend Management beta without a guaranteed bill ceiling

Cloudflare’s separate, account-wide spending limits for Workers and Durable Objects can interrupt every application using the affected product. Delayed enforcement and excluded charges mean developers cannot treat a threshold as a maximum bill.

Cloudflare logo
Cover: BuildRiot

Cloudflare launched Spend Management beta on November 13, 2026, for pay-as-you-go customers. It offers spending alerts and blocking limits for Workers and Durable Objects. Each product has an account-wide threshold, so one application can exhaust it and interrupt others. Reporting delays, ongoing operations and enforcement failures mean these controls cannot guarantee a maximum bill. Sources: Cloudflare

Thresholds use estimated subscription-period charges after included usage, without isolation by application, Durable Object namespace or billing metric. Workers counts requests and CPU time. Durable Objects counts requests, duration, SQLite rows read and written, and legacy key-value reads, writes and deletes. Limits exclude subscription fees and stored-data charges. Workers thresholds also exclude Workers AI, Durable Objects, Workers KV and R2. Sources: Cloudflare

Workers blocking rejects new invocations, including HTTP requests, Cron Triggers and queue consumers. HTTP requests receive Cloudflare error 1103, and rejected invocations are not billed. Static assets remain available when Worker execution is unnecessary, but requests using run_worker_first can fail. Durable Objects blocking rejects new stub requests, SQL reads and writes, SQLite storage growth and setAlarm() calls, while retaining objects and data. Sources: Cloudflare

Pending Durable Objects alarms are held without consuming retries. Alarms scheduled more than seven days ago are deleted and must be rescheduled if still needed. Existing requests can accrue duration charges, existing WebSocket messages and legacy key-value operations continue, and stored data remains chargeable. Cloudflare cited an under-ten-minute enforcement benchmark, but asynchronous propagation means this is not a guaranteed deadline. Sources: Cloudflare

Raising a threshold above current spending, disabling it or deleting it restores access after propagation, which can take minutes. Separately blocked calling Workers also need recovery. Blocking expires at the next subscription billing period, which follows renewal rather than necessarily the calendar month. Enabled policies remain configured. AI Gateway budgets separately control routed inference requests by user, model or provider, blocking matching requests until their budget window resets. Sources: Cloudflare

What to do

  1. Inspect current subscription-period spending before setting a threshold, because a new policy evaluates charges already recorded.
  2. In Billing → Spend Management, save a positive dollar limit and confirm it is enabled. Add notification_email if the blocking policy should also send alerts.
  3. For CLI setup, install and authenticate cf, then select the account by its ID. Use Billing Read permission to inspect policies or Billing Edit to change them.
  4. Create a $50 Workers limit with the following command. Replace billing@example.com with the intended alert address. Sources: Cloudflare
cf billing spend-policies create --name 'Workers $50 spending limit' --product-id workers --enabled true --threshold-cents 5000 --action usage_block --notification-email billing@example.com
  1. For REST setup, create a policy at /client/v4/accounts/{account_id}/billing/spend-policies using product_id, threshold_cents, enabled and action, including notification_email for a notification policy. Sources: Cloudflare

Why it matters

Developers can automatically interrupt compute spending, but each product’s account-wide threshold can take several applications offline together. Enforcement delays and excluded charges prevent these controls from guaranteeing an invoice ceiling.

Attribution

Sources

  1. 1CloudflareIntroducing Spend Management: Spending limits and alerts for CloudflareSource published (UTC)
  2. 2The Cyber ToolchainIssue 139 — The Cyber ToolchainSource published (UTC)
  3. 3CloudflareSpending limits and alerts
  4. 4CloudflareManage spending limits and alerts with the cf CLI
  5. 5CloudflareSpending limits
  6. 6CloudflareSpending limits

Read the original source for full details and context.

Report a problem

Links, dates or what you expected. Do not include passwords or private data.

More on Backend

All Backend stories

Review · Backend

Review: PostgreSQL 19, a relational database with new maintenance controls

PostgreSQL 19 adds concurrent table repacking that permits access during most of the work. The PostgreSQL Global Development Group released this version of its open-source relational database on November 19, 2026. According to the project, pg_plan_advice influences planner choices, while pg_stash_advice stores and applies guidance by query identifier. The release also adds logical replication of sequence values, get-or-create operations and JSON export.

PostgreSQL

Review · Frontend

Review: MoonBit 1.0 release candidate, a language for WebAssembly and native apps

MoonBit released its 1.0 release candidate on November 26, 2026, freezing compiler changes to bug fixes until 1.0. Its primary targets are native code and WebAssembly, with JavaScript support for browsers and interfaces. The team targets February 18, 2027, for the full release with a stable core library. The async and archive packages may still receive minor API refinements. The moon fix command can apply compiler-suggested fixes.

MoonBit

Cloudflare launches Spend Management beta without a guaranteed bill ceiling · BuildRiot