Databases · head to head
etcd vs Google Cloud Run

etcd
Databases
A distributed key-value store using Raft consensus, built for cluster coordination rather than application data.
- From
- Free
- Free plan
- Yes

Google Cloud Run
Cloud
Managed platform for running containers and functions on Google Cloud
- From
- On request
- Free plan
- No
The short version
- etcd is free; Google Cloud Run prices on request.
- Only etcd lists raft consensus; only Google Cloud Run lists deploy any container image.
- Where Google Cloud Run falls short: runs only on Google Cloud, so there is no self-hosted option.
How do etcd and Google Cloud Run differ?
etcd and Google Cloud Run differ on starting price (Free against On request), pricing model (Open-source against Usage-based) and free tier (Yes against No). Only the attributes on which etcd and Google Cloud Run actually diverge.
| Attribute | etcd | Google Cloud Run |
|---|---|---|
| Starting price | Free | On request |
| Pricing model | Open-source | Usage-based |
| Free tier | Yes | No |
| Category | Databases | Cloud |
Identical on both: platforms (Web).
Not yet recorded: founded for Google Cloud Run.
Which features does each one have?
They share no listed features; 8 appear only for etcd and 9 only for Google Cloud Run. 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 etcd
- Raft consensus
- Linearizable reads
- Transactions
- Leases
- Watches
- MVCC revision history
- Role-based access control
- Snapshot backup and restore
Only in Google Cloud Run
- Deploy any container image
- Source-based builds for common languages
- Services with automatic scaling and scale to zero
- Jobs for scheduled or manual tasks
- Worker pools for background processing
- Traffic splitting and rollback between revisions
- Custom domains and managed TLS
- Request-based and instance-based billing
What is each one used for?
etcd is most often brought in for coordinating failover in a clustered database, as Patroni does for PostgreSQL; Google Cloud Run for hosting web APIs and microservices. The jobs each tool is most often brought in to do.
etcd
- Storing Kubernetes cluster state, which is what the overwhelming majority of etcd deployments are doingnot Google Cloud Run
- Leader election and distributed locking in a home-grown scheduler or control plane, using leases and transactionsnot Google Cloud Run
- Service discovery and dynamic configuration where readers need to be notified of changes rather than poll for themnot Google Cloud Run
- Coordinating failover in a clustered database, as Patroni does for PostgreSQLnot Google Cloud Run
Google Cloud Run
- Hosting web APIs and microservicesnot etcd
- Scheduled batch jobsnot etcd
- Queue consumers on worker poolsnot etcd
- Deploying containers without managing clustersnot etcd
- Event-driven backends with Pub/Subnot etcd
Where do etcd and Google Cloud Run fall short?
Google Cloud Run's most cited limit: runs only on Google Cloud, so there is no self-hosted option. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.
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
Google Cloud Run
- Runs only on Google Cloud, so there is no self-hosted option
- The container file system is in memory and not persistent
- Worker pools do not autoscale natively and need at least one instance
- Services are stateless, so state needs external storage
How much do etcd and Google Cloud Run cost?
etcd is free to use. Plan by plan below, from each vendor's own pricing page.
etcd
FreeNo published plan breakdown. See the etcd review.
Google Cloud Run
On requestNo published plan breakdown. See the Google Cloud Run review.
Which should you pick?
Choose etcd if
- You need raft consensus.
- You want to start without paying.
- You also want linearizable reads.
Choose Google Cloud Run if
- You need deploy any container image.
- You also want source-based builds for common languages.
Questions people ask
- Is etcd or Google Cloud Run better?
- It depends on the job. etcd fits storing Kubernetes cluster state, which is what the overwhelming majority of etcd deployments are doing; Google Cloud Run fits hosting web APIs and microservices. etcd starts at Free and Google Cloud Run at On request.
- Which is cheaper, etcd or Google Cloud Run?
- etcd has a free tier; the other does not. Paid plans start at Free for etcd and On request for Google Cloud Run.
- Does etcd or Google Cloud Run run on more platforms?
- Both run on Web, so platform support will not decide this one for you.
- Can I use etcd for free?
- Yes. etcd has a free tier, so you can try it without paying. Google Cloud Run starts at On request.
- What is etcd best used for?
- etcd is most often used for storing kubernetes cluster state, which is what the overwhelming majority of etcd deployments are doing, leader election and distributed locking in a home-grown scheduler or control plane, using leases and transactions, service discovery and dynamic configuration where readers need to be notified of changes rather than poll for them, coordinating failover in a clustered database, as patroni does for postgresql. Of those, storing kubernetes cluster state, which is what the overwhelming majority of etcd deployments are doing and leader election and distributed locking in a home-grown scheduler or control plane, using leases and transactions are not what Google Cloud Run is typically brought in for.
- What can etcd do that Google Cloud Run cannot?
- etcd covers Raft consensus, Linearizable reads, Transactions, Leases. Google Cloud Run covers Deploy any container image, Source-based builds for common languages, Services with automatic scaling and scale to zero, Jobs for scheduled or manual tasks.
Answered from the vendors’ own pages
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.
Google Cloud Run: What can Cloud Run run?
Any container image, or source code for Go, Node.js, Python, Java.NET and Ruby that Google builds into a container.
Sourceetcd: 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.
Google Cloud Run: How is Cloud Run billed?
Allocated CPU and memory are billed in 100 millisecond granularity, in request-based or instance-based mode. A free tier is available.
Sourceetcd: 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.
Google Cloud Run: Can Cloud Run scale to zero?
Yes. Services scale to zero when idle unless a minimum number of instances is set.
Sourceetcd: 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 Google Cloud Run
Other head to heads
- 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 StarRocks
- etcd vs Aiven
- etcd vs Meilisearch
- etcd vs Apache Airflow
- etcd vs Apache Pulsar
- etcd vs Cassandra
- etcd vs AWS Lambda
- etcd vs Koyeb
- etcd vs Azure Functions
- etcd vs Heroku
- etcd vs Podman
- etcd vs minikube
- etcd vs K3s
- etcd vs Serverless Framework
- etcd vs Deno Deploy
- etcd vs Beam Cloud
- etcd vs CloudAMQP
- etcd vs Dokku
- etcd vs Lambda
- etcd vs Buildah
- etcd vs containerd
- etcd vs Skopeo
- etcd vs Flux
- etcd vs kind
- Google Cloud Run vs Redis
- Google Cloud Run vs Valkey
- Google Cloud Run vs DynamoDB
- Google Cloud Run vs Timeplus
- Google Cloud Run vs Firebase Realtime Database
- Google Cloud Run vs Knack
- Google Cloud Run vs BigQuery
- Google Cloud Run vs TiDB
- Google Cloud Run vs Turso
- Google Cloud Run vs Dgraph
- Google Cloud Run vs turbopuffer
- Google Cloud Run vs Apache HBase
- Google Cloud Run vs StarRocks
- Google Cloud Run vs Aiven
- Google Cloud Run vs Meilisearch
- Google Cloud Run vs Apache Airflow
- Google Cloud Run vs Apache Pulsar
- Google Cloud Run vs Cassandra
- Google Cloud Run vs AWS Lambda
- Google Cloud Run vs Koyeb
- Google Cloud Run vs Azure Functions
- Google Cloud Run vs Heroku
- Google Cloud Run vs Podman
- Google Cloud Run vs minikube
- Google Cloud Run vs K3s
- Google Cloud Run vs Serverless Framework
- Google Cloud Run vs Deno Deploy
- Google Cloud Run vs Beam Cloud
- Google Cloud Run vs CloudAMQP
- Google Cloud Run vs Dokku
- Google Cloud Run vs Lambda
- Google Cloud Run vs Buildah
- Google Cloud Run vs containerd
- Google Cloud Run vs Skopeo
- Google Cloud Run vs Flux
- Google Cloud Run vs kind
