The Ultimate Cloudflare Guide: what each piece costs and where it bites
Elia (@eliakuratli), who runs several products on Cloudflare, walks through the developer platform with what each piece costs, what the Workers Paid plan includes, and a short prevention list for the one risk he says can actually hurt: no hard spend cap.
- Products
- WorkersD1R2Durable ObjectsAI Gateway
- Source
- Author experience𝕏 article
- Author
- Elia (@eliakuratli)
Key points
- The author says static asset requests served by a Worker are free and uncounted, that Workers bill CPU time rather than wall-clock time so waiting on a slow API costs nothing, and that only code execution counts toward the 10 million included requests.
- He describes the Workers Paid plan as a $5/month minimum for the whole account, not per project, lists what it includes per month, and says usage past those amounts is billed per unit.
- Under “the one thing that can actually hurt you” he writes that there is no hard spend cap and that a loop writing to D1 bills every write. His ten-minute prevention list: set CPU limits per Worker, turn on billing alerts, review every write path before it ships, and put AI Gateway in front of model calls so a runaway agent is visible immediately.
- His “what it’s bad at” list includes D1’s 10 GB per database and one query at a time per database, no real Postgres (Hyperdrive accelerates yours), and long-running or CPU-heavy work needing Containers or Workflows instead of a Worker.
Original sources
Published
Original post
Read on 𝕏Elia (@eliakuratli), who runs several products on Cloudflare, walks through the developer platform with what each piece costs, what the Workers Paid plan includes, and a short prevention list for the one risk he says can actually hurt: no hard spend cap.
Elia
@eliakuratli · Original 𝕏 post
https://t.co/MO9Oqx79sO
Read originalArchived
Elia · @eliakuratli
The Ultimate Cloudflare Guide
The whole developer platform, what each piece is for, what it costs, and where it bites. Written by someone who runs everything on it. Most Cloudflare guides are either marketing or a wall of docs links. This is the version I wish I'd had: every part of the platform in plain language, the price of each, the rules for picking between them, and the things that will annoy you. I run several products on this stack. Three of them show up below as examples, not as the point. The mental model One idea makes everything else click. A Worker is your application. Everything else is a binding. There's no network to configure, no VPC, no connection string in an env var. You declare in one config file that this Worker can reach that database, that bucket, that queue. The platform wires it up. A binding is a direct, authenticated handle to another service. Your whole stack ends up living in one file, usually under thirty lines. Compute Workers run JavaScript, TypeScript, Python or WebAssembly in V8 isolates across Cloudflare's network. Cold starts are effectively zero because there's no container to boot. This is where your app lives. Static assets are served by the same Worker as your app, and requests for them are free and uncounted. This one fact demolishes most Cloudflare bill estimates. A note on Pages. Start new projects on Workers, not Pages. Once Workers learned to serve static assets and render server-side, the roadmap moved there: Durable Objects, Cron Triggers, Queue consumers, Tail Workers, gradual deployments and real observability are Workers-only. Pages still works and isn't going away, so don't migrate a happy project for the sake of it. Just don't start anything new there. Durable Objects give you one single-threaded, strongly consistent instance of something, addressable by name, with its own storage. WebSockets, collaborative editing, rate limiters, locks, per-user coordination. If the question "which instance handled this?" matters, the answer is Durable Objects. Workflows are for multi-step processes that must survive failure: a step runs, the result is persisted, and a crash resumes from where it stopped rather than the beginning. Onboarding sequences, long imports, anything with retries and a state machine. Containers exist for the work that genuinely doesn't fit a Worker. A real container image, started on demand, billed by the second. Video processing, heavy binaries, legacy code that needs a filesystem. Queues move work off the request path. The Worker accepts the job, returns immediately, a consumer does the slow part after. This is the single biggest architectural upgrade most apps can make, on any platform. Cron Triggers are scheduled jobs. They're free. Use them liberally. Dynamic Workers (open beta) spin up sandboxed isolates on demand in milliseconds, which is how you run code an AI generated without handing it your machine. Live example. heydecks is a deck API: one POST returns a live URL, a PDF and an editable PPTX. The Worker takes the request and returns instantly, a Queue does the rendering, Durable Objects track job state, and R2 holds the output. Nothing about that shape is unusual, which is the point. Data Picking storage is where people stall, so here's the decision rule before the descriptions. Relational data, queries, joins → D1 Files, images, uploads, backups → R2 Small values read constantly, written rarely → KV State tied to one entity, needing consistency → Durable Objects Existing Postgres you're not giving up → Hyperdrive Embeddings and similarity search → Vectorize D1 is SQLite as a service. The counterintuitive part: you get up to 50,000 databases per account, 10 GB each. Cloudflare expects many small databases rather than one large one, so a database per tenant or per customer is the intended design, not a hack. Limits worth knowing: it's single-threaded per database, and 1 TB across the account. R2 is object storage with an S3-compatible API and no egress fees ever. Be honest about when that matters: S3 also gives you 100 GB of egress free per month, so at small volume the saving is zero. At 1 TB a month it's roughly $83 on S3 and $0 on R2. It isn't a reason to switch today. It's a reason growth doesn't punish you later. KV is an eventually consistent key-value store, replicated for fast reads everywhere. Perfect for config, feature flags, cached lookups. Wrong for anything you need to read back immediately after writing. Hyperdrive pools and caches connections to a Postgres or MySQL you already run elsewhere. It makes an existing database usable from Workers. It does not replace it, and it doesn't make it cheap. Vectorize is the vector database for embeddings and semantic search, billed per dimension queried and stored. AI Workers AI runs open models on Cloudflare's GPUs, called through a binding like anything else. Billed in neurons, with a daily free allocation. AI Gateway sits in front of any model provider, yours or Cloudflare's, and gives you caching, rate limiting, retries, logging and cost visibility from one place. Free. If you're spending real money on model calls, this is the highest-leverage thing on the list. Browser Rendering is a headless browser as a service: screenshots, PDFs, scraping, anything that needs a real page rendered. Agents and MCP. Cloudflare has leaned hard into agents, and Workers plus Durable Objects is a good fit for them — an agent is mostly a loop with state, which is exactly what a Durable Object is. Remote MCP servers run on Workers too. Live example. mrkr is cookieless analytics with session replay and revenue attribution, script under 6 kB. Analytics is a write-heavy edge problem: the Worker takes the beacon, D1 holds the data, KV fronts the reads that repeat. It also tracks which AI crawlers read a site, which is a category that didn't exist two years ago and doesn't appear in Google Analytics at all. The free half nobody talks about Most of Cloudflare predates Workers and a lot of it costs nothing. Tunnel makes any machine reachable from the internet with zero open ports. You install one small program, it dials out to Cloudflare, nothing dials in, you point a domain at it. No port forwarding, no static IP, no certificate renewals. Free, unlimited tunnels, unmetered bandwidth. Zero Trust Access puts a login screen in front of anything — an internal tool, a staging site, that tunnel. Free up to 50 users. Turnstile is a CAPTCHA replacement that usually shows users nothing at all. Free. DNS, CDN, WAF, DDoS protection, SSL are the original product and remain free on any plan. Unmetered DDoS mitigation is not a small thing to get for nothing. Email Routing forwards mail on your domain to wherever you read mail, and Email Workers let a Worker process inbound mail as code. Cloudflare Email Service handles the outbound direction, sending transactional email straight from a Worker. It's in beta, so treat it as such. Live example. skilessonfinder compares Swiss ski schools by resort and lesson type. It's mostly generated pages, a cron job keeping them fresh, and email carrying inquiries to schools. Technically the dullest thing I run, and that's fine — the work is in the content, not the infrastructure. What it actually costs The Workers Paid plan is a $5/month minimum for the whole account, not per project. It includes: Included each month Worker requests 10 million CPU time 30 million ms Static asset requests unlimited, uncounted D1 rows read 25 billion D1 rows written 50 million D1 storage 5 GB, across up to 50,000 databases R2 storage 10 GB, zero egress KV 10 million reads, 1 GB stored Queues 1 million operations Durable Objects 1 million requests Logs 20 million events, 7 day retention Cron triggers free Past those, you pay per unit: $0.30 per additional million requests, $0.75/GB-month for D1 storage, $0.015/GB-month for R2. Bandwidth is never billed. Two things follow from this table. First, you are not billed for wall-clock time, only CPU time, so a Worker waiting on a slow API costs nothing while it waits. Second, and this is the one that changes people's minds: the free static assets mean a normal website barely touches the 10 million requests. Only code execution counts. Most people quoting themselves $200 a month would land inside the included tier. What it's bad at The honest list, so you find these out now instead of in week three. D1 caps at 10 GB per database and runs one query at a time per database. There is no real Postgres. Hyperdrive accelerates yours, it doesn't replace it. Long-running or CPU-heavy work needs Containers or Workflows, not a Worker. Anything assuming a long-lived server process holding state in memory has to be rewritten. Next.js runs through the OpenNext adapter rather than first-party support. It works, but it's a layer. Astro, SvelteKit, Nuxt and Remix have a smoother path. Local development is good but not identical to production, so test bindings against the real thing before you ship. The one thing that can actually hurt you There is no hard spend cap. A loop that writes to D1 will bill you for every write. One developer hit $4,868 that way. Ten minutes of prevention: set CPU limits per Worker turn on billing alerts review every write path before it ships put AI Gateway in front of model calls so a runaway agent is visible immediately Cheap infrastructure. Not free infrastructure. Starting today Pick a small project, not your main one. Deploy it to Workers with static assets. Use your framework's Cloudflare adapter. Move the database to D1 and rewrite Postgres-specific SQL as SQLite. Move uploads to R2. Push anything slow into a Queue. Add a cron trigger for the maintenance you keep forgetting. Set your billing alerts before you go to bed. A weekend, roughly. The reason it's worth it isn't the $5. It's that the bill stops being a thing you think about while the products on top of it grow. I build heydecks, mrkr and skilessonfinder on this stack, and post the numbers as they change.
Another author, François Altwies (@francois352), replies that cron jobs are not free and are billed by the microsecond, as far as he knows — questioning the article’s line that Cron Triggers are free.
Read on 𝕏François Altwies
@francois352 · Original 𝕏 post
@eliakuratli Nice but cron jobs are not free and billed my microseconds, AFAIK
The author replies to that comment asking whether they are free.
Read on 𝕏Elia
@eliakuratli · Original 𝕏 post
@francois352 They are free, no?
Another author, Filip (@aladicf), notes that the free Workers plan can get about 3 million Durable Object requests while the paid plan includes only 1 million, asks whether it should be 3 million plus extra pricing, and says duration pricing looks fine on a monthly basis.
Read on 𝕏Filip
@aladicf · Original 𝕏 post
something seems off with Durable Object pricing.. free worker plan can get like 3 mil requests while requests included within paid plan are only 1 mil? shouldnt it be 3 mil and then extra pricing? Duration pricing seems fine when you work it out on a monthly basis.. thats how workers pricing is 🧐🤷🏻♂️
More to read
aobane_tsumugu: with Durable Object-managed Containers, lowering memory can still raise cost if an older CPU generation is assigned
On 2026-11-24, @aobane_tsumugu (青羽つむぐ) wrote that Cloudflare Containers are billed on CPU, memory, and disk usage time. The author said that besides the preset “scheduler-backed application” combination, a “Durable Object-managed application” option that lets the user choose the instance size was released on September 30, and that in theory cutting memory from 3 GB to 1 GB would cut the memory portion of the cost to one third. The author also said that, in their observations, Durable Object-managed containers tend to be assigned older-generation host CPUs, making the same work 1.1–3.6 times slower; the extra CPU-seconds can outweigh the memory saving, so cost can rise instead. The author described this as their impression as of late November 2026, not an official statement. The visible post and the note_tweet text are the same complete body.
hiromsaeden: an unindexed D1 query loop billed $2,129.00; a $953.74 courtesy credit left $645.38 due.
Cloudflare Community user hiromsaeden, in a post-mortem of a personal hobby project on Workers and D1, says an unindexed GROUP BY aggregate query scanned about 877,000 rows to return 30 rows, and an unintended loop triggered about 315,000 runs across two billing cycles. In the Oct 15 – Nov 15 cycle alone, 1,447,580,203,670 rows (1.44 trillion rows) were read, on top of the previous cycle’s usage. The author says the October invoice IN-83890481 was $529.88 USD, paid in full out of pocket; the November invoice IN-89082487 was $1,599.12 USD ($1,447.58 D1 Rows Read + $6.16 Workers CPU + $145.38 tax); and the total billed was $2,129.00 USD against an expected budget of about $20/month. After noticing the issue on Nov 2–3, the author deleted the Worker and the D1 database; Support confirmed all reads had stopped. In case #02408621, Support offered a $275.00 courtesy credit for October and advised holding it until the November invoice was issued on Nov 15. In case #02434399, Support applied a one-time courtesy credit of $953.74 (which included the held $275.00), leaving a final balance of $645.38 USD, and said the review was complete and no further adjustments can be made. The author, having already paid $529.88, says the remaining $645.38 cannot be afforded and the account will be downgraded on Nov 22. The author also says a budget alert fired once at the $37 mark but did not stop the charges, and that D1 currently has no hard spending cap. There is no Cloudflare staff reply on the public thread; the Support actions are reported by the author.
MrSaneApps: Workers AI usage above the startup-credit cap left $2,473.38 due; Cloudflare declined an invoice adjustment.
MrSaneApps posts what the author describes as a customer-service reply: Cloudflare is not able to adjust invoice IN-85233588 and $2,473.38 remains due; the plan covers Workers AI up to $2,500 over the program term, $2,503.84 in credits was applied to Workers AI usage and the rest billed at standard rates, and startup credits cannot be moved to cover Workers AI above that cap. The quoted reply says the dashboard Credits page showing a $50,000 Workers AI cap applies to the $350,000 tier, that an October 7 reply on case 02359041 should have pointed out the $2,500 cap, apologizes for both, and says the dashboard text was reported for correction without changing the program terms. The author says they were misdirected while trying to understand the plan terms, asks for a human to review the screenshots, and asks Cloudflare to forgive this month’s error.