Cloudflare Workers: a backend without your own server. When it pays off
Cloudflare Workers runs your app's code close to users, with no server to maintain. Costs, limits and examples from our projects.

Cloudflare Workers is a way to run a backend without your own server. You write the API code, and Cloudflare runs it in its network, in the data centre closest to the user. There is no machine to update, and a small app often fits in the free plan. It is a good choice for mobile app APIs, forms, integrations and websites that need to be fast worldwide.
How Cloudflare Workers works
A traditional backend runs on a server in one place, for example Frankfurt. Someone has to set it up, update it and make sure it does not get overloaded.
A Worker works differently. Your code goes into Cloudflare’s network and runs only when a request arrives. It runs in the data centre nearest to the person using it. When traffic grows, Cloudflare starts more copies automatically. When there is no traffic, you pay nothing.
Alongside Workers, Cloudflare offers places to keep data:
- D1 is an SQL database for tables of clients, orders or accounts,
- KV is a fast store for simple settings and data that is read very often,
- R2 is file storage, for example for photos uploaded by users.
What it costs
Cloudflare’s pricing is simple and predictable:
| Criterion | Free plan | Paid plan |
|---|---|---|
| Fixed fee | $0 | from $5 a month |
| Requests to the Worker | 100,000 a day | 10 million a month included, then $0.30 per million |
| Static files (HTML, images) | unlimited | unlimited |
| Data transfer fees | none | none |
For comparison, 10 million requests a month is more than most small and mid-sized business apps need. For many of them, the monthly backend bill comes to a few dollars.
When Workers is a good choice
- A mobile app API. The app sends requests and the Worker responds quickly, whatever country the user is in.
- Forms and notifications. Receiving a message, checking that a bot did not send it and sending an email.
- Integrations between systems. The Worker receives an event from one tool and passes the data to another.
- Websites with dynamic parts. A static site plus a small API for a form, a quote or a login.
- Traffic that is hard to predict. A campaign, a season or a mention in the press will not overload the server, because there is none.
When a classic server is the better choice
Workers do not fit everything. A classic backend works better when:
- a task runs for a long time, such as generating large reports or processing video,
- the app needs a library that only works in a full Node.js or Python environment,
- the system must sit in a specific place, such as the client’s own servers or a chosen cloud for legal reasons,
- you already have a large backend and moving it would cost more than it saves.
Often the best answer is a mix: the fast part on Workers and heavy jobs on a separate server.
Examples from our projects
MyBeeHome. The API of the MyBeeHome app for the Swiss company Wildbiene + Partner runs on Cloudflare. The iOS and Android app serves users in three languages, and the backend needs no servers of its own to maintain.
This website. The site you are reading is static files built with Astro and served by Cloudflare. The only code running on a server is the contact form Worker. It checks the spam protection and sends two emails: a notification to us and a confirmation to you.
What to keep in mind before you start
- Design the data first. The choice between D1, KV and R2 depends on how the data will be read and written.
- Set a spending limit. Cloudflare lets you block new invocations above a set amount, which protects you from a surprise bill.
- Set up logs and alerts. Without a server you cannot log in to a machine to check an error, so logging has to work from day one.
- Check the libraries. Not every Node.js library runs on Workers without changes. Better to check before the quote than halfway through the project.
Summary
Cloudflare Workers is a backend that runs close to users, scales itself and costs little or nothing. It works well for app APIs, forms and integrations. When tasks are long or need special libraries, a classic server is better, and a mix of both is often best.
See how we build systems, integrations and APIs that connect your tools into one whole.
Want to run the numbers for your business?
Describe your situation in a few sentences. We will reply with a concrete proposal and a price range.


