Databases · head to head
Cloudflare Workers vs etcd

Cloudflare Workers
Databases
Serverless compute on Cloudflare's network, free to start and $5 a month minimum on the paid plan
- From
- Free
- Free plan
- Yes

etcd
Databases
A distributed key-value store using Raft consensus, built for cluster coordination rather than application data.
- From
- Free
- Free plan
- Yes
The short version
- etcd is free; Cloudflare Workers starts at $5/mo.
- Only Cloudflare Workers lists edge execution; only etcd lists raft consensus.
- Where Cloudflare Workers falls short: free has a 10 ms CPU cap.
How do Cloudflare Workers and etcd differ?
Cloudflare Workers and etcd differ on pricing model and platforms. Only the attributes on which Cloudflare Workers and etcd actually diverge.
| Attribute | Cloudflare Workers | etcd |
|---|---|---|
| Pricing model | Free plan plus usage-based paid plan | Open-source |
| Platforms | Web, Linux, macOS, Windows | Web |
Identical on both: starting price (Free), free tier (Yes).
Not yet recorded: category for Cloudflare Workers, founded for Cloudflare Workers.
Which features does each one have?
They share no listed features; 6 appear only for Cloudflare Workers and 8 only for etcd. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.
Only in Cloudflare Workers
- Edge execution
- Workers KV
- Durable Objects
- Hyperdrive
- Queues
- Spend limits
Only in etcd
- Raft consensus
- Linearizable reads
- Transactions
- Leases
- Watches
- MVCC revision history
- Role-based access control
- Snapshot backup and restore
What is each one used for?
Cloudflare Workers is most often brought in for A low-latency API or middleware; etcd for coordinating failover in a clustered database, as Patroni does for PostgreSQL. The jobs each tool is most often brought in to do.
Cloudflare Workers
- A low-latency API or middlewarenot etcd
- A full-stack app with static assetsnot etcd
- A cron-driven data jobnot etcd
- Rewriting or protecting traffic at the edgenot etcd
etcd
- Storing Kubernetes cluster state, which is what the overwhelming majority of etcd deployments are doingnot Cloudflare Workers
- Leader election and distributed locking in a home-grown scheduler or control plane, using leases and transactionsnot Cloudflare Workers
- Service discovery and dynamic configuration where readers need to be notified of changes rather than poll for themnot Cloudflare Workers
- Coordinating failover in a clustered database, as Patroni does for PostgreSQLnot Cloudflare Workers
Where do Cloudflare Workers and etcd fall short?
Cloudflare Workers's most cited limit: free has a 10 ms CPU cap. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.
Cloudflare Workers
- Free has a 10 ms CPU cap
- The runtime is not full Node.js, so some libraries do not run
- Costs scale with CPU time, so heavy compute surprises
- Durable Objects and other products are billed separately
- Logs and Logpush follow separate observability pricing from December 2026
etcd
- It is sized for coordination data, not application data: the default backend quota is 2 GB and 8 GB is the documented recommended maximum, and exceeding it puts the cluster into a NOSPACE alarm where it accepts no writes until an operator compacts, defragments and clears the alarm by hand
- Every write is replicated and fsynced before acknowledgement, so cluster performance is bounded by the slowest disk in it; a member on network-attached storage with high fsync latency causes leader elections and cluster-wide latency spikes that look like network problems and are not
- Adding members increases availability but reduces write throughput, because each write must reach a larger quorum; you run three or five members for fault tolerance, and increasing capacity means faster hardware rather than more nodes
- There is no sharding and no multi-tenancy, so isolating workloads means running separate clusters, each with its own quorum, certificates, backup schedule and upgrade path, and that operational multiplication is often unexpected
- Running it yourself is a real job: periodic compaction and defragmentation, snapshot backups you have actually rehearsed restoring, and rotation of both peer and client TLS certificates, none of which happens automatically outside a managed Kubernetes service
- Losing quorum is not self-healing; recovering a cluster that has lost a majority means restoring from a snapshot and accepting that everything written since that snapshot is gone, which makes backup frequency a data-loss budget decision rather than a routine setting
How much do Cloudflare Workers and etcd cost?
Cloudflare Workers has a free plan, with paid plans from $5/mo; etcd is free to use. Plan by plan below, from each vendor's own pricing page.
Cloudflare Workers
Free- Workers FreeFree
- 100,000 requests per day
- 10 ms CPU per invocation
- Workers Paid$5/mo
- 10 million requests included, then $0.30 per million
- 30 million CPU ms included, then $0.02 per million
etcd
FreeNo published plan breakdown. See the etcd review.
Which should you pick?
Choose Cloudflare Workers if
- You need edge execution.
- You want to start without paying.
- You work on Web, Linux, macOS, Windows.
- You also want workers kv.
Choose etcd if
- You need raft consensus.
- You want to start without paying.
- You also want linearizable reads.
Questions people ask
- Is Cloudflare Workers or etcd better?
- It depends on the job. Cloudflare Workers fits a low-latency API or middleware; etcd fits storing Kubernetes cluster state, which is what the overwhelming majority of etcd deployments are doing. Cloudflare Workers starts at Free and etcd at Free.
- Which is cheaper, Cloudflare Workers or etcd?
- Cloudflare Workers starts at Free and etcd at Free.
- Does Cloudflare Workers or etcd run on more platforms?
- Cloudflare Workers runs on Web, Linux, macOS, Windows. etcd runs on Web.
- Can I use Cloudflare Workers for free?
- Both have a free tier, so you can try either at no cost before committing.
- What is Cloudflare Workers best used for?
- Cloudflare Workers is most often used for a low-latency api or middleware, a full-stack app with static assets, a cron-driven data job, rewriting or protecting traffic at the edge. Of those, a low-latency api or middleware and a full-stack app with static assets are not what etcd is typically brought in for.
- What can Cloudflare Workers do that etcd cannot?
- Cloudflare Workers covers Edge execution, Workers KV, Durable Objects, Hyperdrive. etcd covers Raft consensus, Linearizable reads, Transactions, Leases.
Answered from the vendors’ own pages
Cloudflare Workers: Is Cloudflare Workers free?
Yes, with 100,000 requests a day.
etcd: Can I use etcd as an application database?
No. It is designed for metadata and coordination, with a recommended maximum store size of around 8 GB, no sharding and a write path deliberately optimised for durability rather than throughput. Application data belongs in a database built for it.
Cloudflare Workers: What does Paid cost?
A $5 monthly minimum plus usage.
etcd: How many members should a cluster have?
Three for most cases, five where you need to survive two simultaneous failures. Always an odd number, because an even-sized cluster gains no additional fault tolerance while making quorum harder to reach.
Cloudflare Workers: Are static assets charged?
No, they are free and unlimited.
etcd: What happens when the store fills up?
The cluster raises a NOSPACE alarm and stops accepting writes, becoming effectively read-only. Recovery requires compacting old revisions, defragmenting each member and then explicitly disarming the alarm, all done by an operator.
etcd: Why is my etcd cluster slow or unstable?
Almost always disk latency. Because every write is fsynced before acknowledgement, slow or shared storage causes heartbeat timeouts, leader elections and cascading latency. Local SSDs with low fsync latency are effectively a requirement.
etcd: How does it compare with Consul or ZooKeeper?
All three provide consensus-backed coordination. etcd has the simplest data model and the Kubernetes ecosystem behind it; Consul bundles service discovery, health checking and a service mesh; ZooKeeper is older, JVM-based and still common under Kafka and Hadoop-era systems.
Related pages
More on Cloudflare Workers
Other head to heads
- Cloudflare Workers vs PartyKit
- Cloudflare Workers vs Biome
- Cloudflare Workers vs WebStorm
- Cloudflare Workers vs Particle
- Cloudflare Workers vs AWS Serverless Application Model (AWS SAM)
- Cloudflare Workers vs Postman
- Cloudflare Workers vs Swagger UI
- Cloudflare Workers vs Proxyman
- Cloudflare Workers vs AppSignal
- Cloudflare Workers vs Nhost
- Cloudflare Workers vs Deno
- Cloudflare Workers vs Atlantis
- Cloudflare Workers vs Userflow
- Cloudflare Workers vs Windows Terminal
- Cloudflare Workers vs Xlinesoft
- Cloudflare Workers vs GitHub Copilot
- Cloudflare Workers vs Docker
- Cloudflare Workers vs Visual Studio Code
- Cloudflare Workers vs Redis
- Cloudflare Workers vs Valkey
- Cloudflare Workers vs DynamoDB
- Cloudflare Workers vs Timeplus
- Cloudflare Workers vs Firebase Realtime Database
- Cloudflare Workers vs Knack
- Cloudflare Workers vs BigQuery
- Cloudflare Workers vs TiDB
- Cloudflare Workers vs Turso
- Cloudflare Workers vs Dgraph
- Cloudflare Workers vs turbopuffer
- Cloudflare Workers vs Apache HBase
- Cloudflare Workers vs Fivetran HVR
- Cloudflare Workers vs Grafana Mimir
- Cloudflare Workers vs IBM Informix
- Cloudflare Workers vs Marqo
- Cloudflare Workers vs Google Cloud Spanner
- Cloudflare Workers vs IBM watsonx.data
- etcd vs PartyKit
- etcd vs Biome
- etcd vs WebStorm
- etcd vs Particle
- etcd vs AWS Serverless Application Model (AWS SAM)
- etcd vs Postman
- etcd vs Swagger UI
- etcd vs Proxyman
- etcd vs AppSignal
- etcd vs Nhost
- etcd vs Deno
- etcd vs Atlantis
- etcd vs Userflow
- etcd vs Windows Terminal
- etcd vs Xlinesoft
- etcd vs GitHub Copilot
- etcd vs Docker
- etcd vs Visual Studio Code
- etcd vs Redis
- etcd vs Valkey
- etcd vs DynamoDB
- etcd vs Timeplus
- etcd vs Firebase Realtime Database
- etcd vs Knack
- etcd vs BigQuery
- etcd vs TiDB
- etcd vs Turso
- etcd vs Dgraph
- etcd vs turbopuffer
- etcd vs Apache HBase
- etcd vs Fivetran HVR
- etcd vs Grafana Mimir
- etcd vs IBM Informix
- etcd vs Marqo
- etcd vs Google Cloud Spanner
- etcd vs IBM watsonx.data
