Cloudflare Workers
Last updated: February 18, 2026
What is Cloudflare Workers?
Serverless compute that runs your code at Cloudflare’s 300+ edge locations worldwide. Write JavaScript/TypeScript, deploy in seconds, runs within milliseconds of your users. Combined with Cloudflare’s storage services (KV, R2, D1), you can build entire backends without managing a server.
Who is it for?
- Best for: Solo builders who need APIs, webhooks, scheduled tasks, or lightweight backends
- Not for: Heavy compute tasks (10ms CPU limit on free) or apps needing persistent connections
- Solo builder score: โญโญโญโญโญ (5/5)
What does it cost?
| Plan | Price | What You Get |
|---|---|---|
| Free | $0 | 100K requests/day, 10ms CPU, KV/R2/D1 free tiers |
| Paid | $5/mo | 10M requests/mo, 30ms CPU, more storage |
Hidden costs: Almost none at solo scale. The free tier handles most indie projects indefinitely.
Free tier reality check: 100K requests/day is 3 million/month. For free. Most solo builders will never need to pay.
How we’d actually use it
Building an API for your content automation:
- Worker receives a webhook when new content is published
- Formats a tweet and posts via Twitter API
- Stores engagement metrics in D1 (SQLite database)
- Serves analytics dashboard from another Worker
- Total cost: $0
Time saved: Setting up a VPS, installing Node, configuring nginx, SSL, monitoring โ 30 minutes with Workers.
What’s good
- Free tier is industry-leading (100K req/day)
- Deploy in seconds from CLI
- Global edge โ code runs close to every user
- R2 storage is S3-compatible with no egress fees
- D1 gives you SQLite at the edge
- Wrangler CLI is excellent developer experience
- Growing ecosystem of frameworks (Hono, itty-router)
What’s not
- 10ms CPU limit on free tier constrains complex logic
- Not suitable for long-running tasks (use a traditional server)
- Debugging is harder than local development
- Some Node.js APIs not available in the Workers runtime
- Learning curve if you’re not used to edge/serverless patterns
vs. the alternatives
| Feature | CF Workers | AWS Lambda | Vercel Functions | Deno Deploy |
|---|---|---|---|---|
| Free tier | 100K/day | 1M/mo | With Vercel | 100K/day |
| Cold start | None | Yes | Some | None |
| Global edge | Yes | Regional | Yes | Yes |
| Storage | KV/R2/D1 | S3/DynamoDB | None built-in | KV |
| Ease of use | Good | Complex | Good | Good |
| Price (paid) | $5/mo | Pay-per-use | $20/mo | $10/mo |
Bottom line: Cloudflare Workers for the best free tier and no cold starts. AWS Lambda for complex enterprise workloads. Vercel Functions if you’re already on Vercel.
FAQ
Q: Can I build a full backend on Workers? A: Yes, for most solo projects. Workers + D1 + R2 gives you compute, database, and storage. For complex backends with heavy processing, you’ll still want a traditional server.
Q: Workers vs a $5/mo VPS? A: Workers for APIs and lightweight logic (easier, scales automatically). VPS for persistent processes, heavy compute, or when you need full Linux access. Many builders use both.
Q: Is there vendor lock-in? A: Some. Workers runtime isn’t standard Node.js, so moving code requires refactoring. But your data (R2, D1) is portable. Score: moderate lock-in.