CockroachDB Alternatives
Six databases for teams leaving CockroachDB, with the license each one ships under, the unit it bills and the price of its smallest setup.
The best CockroachDB alternative for most teams is YugabyteDB: distributed, PostgreSQL-compatible and fully open source under Apache 2.0, with no revenue threshold. If your application speaks MySQL, or you want analytics on the same data, take TiDB, whose free Starter tier gives each of up to five instances 5 GiB of row storage and 50 million Request Units a month. On AWS with spiky traffic, Aurora DSQL bills $8 per million DPUs and costs nothing when idle; on Google Cloud, Spanner starts at 100 processing units, about $65.70 a month. PlanetScale starts at $5 a month and shards later, and Amazon Aurora is the honest answer if you never needed a distributed database. For reference, a new CockroachDB Cloud cluster on the Standard edition costs $0.092 per vCPU-hour in AWS us-east-1, about $203 a month for 2 vCPU and 100 GB, whether it serves queries or not. Below, why teams leave, how each alternative is billed, and the traps that turn a migration into a surprise.
The ranking is editorial: a sponsored placement is always flagged on its card, and no affiliate link changes a score.
Why teams are leaving CockroachDB
CockroachDB still does what it promises: SQL that survives the loss of a node, a zone or a region. Teams rarely leave because it breaks. They leave because the license changed, because the cloud pricing changed again in 2026, and because many of them were paying for a global database while serving one region. Here are the six reasons that come up most, each with the CockroachDB fact behind it.
Self-hosting is free only under $10 million
Telemetry you cannot switch off
No permanent free tier for new cloud accounts
An idle cluster costs the same as a busy one
Mission-critical pricing climbs fast
Paying distributed prices for a single-region app
YugabyteDB
YugabyteDB is the alternative most CockroachDB users look at first, and for good reason: it keeps the same promise. Data is split into shards, replicated by consensus across nodes, zones or regions, and applications talk to it through a PostgreSQL-compatible layer. The vendor describes it as a multi-master database that supports stored procedures, triggers and extensions, which covers a lot of what a CockroachDB schema leans on. It also exposes YCQL, a second API with Cassandra roots, if part of your stack is key-value.
The license is the reason it tops this page. YugabyteDB is 100% open source under Apache 2.0, with no feature gating and no revenue threshold, so a company above $10 million in revenue can self-host the full database without a paid license.
The managed service, YugabyteDB Aeon, is priced per vCPU per month: Standard starts at $125 per vCPU and Professional at $167. Storage adds $0.10 per GB a month and cloud backups $0.025 per GB. Before you pay anything, a free Serverless Postgres tier gives 2 vCPU, 16 GiB of RAM and 100 GiB of storage shared across the account, and a one-time trial adds credits for distributed clusters on the Professional plan.
- Apache 2.0, no revenue threshold
- PostgreSQL-compatible with triggers and stored procedures
- Self-host or managed Aeon
- ✓Closest architecture to CockroachDB
- ✓Full database free to self-host
- ✓Second API (YCQL) for key-value workloads
- ✗Aeon billed per vCPU, adds up fast on three nodes
- ✗Changefeeds and geo-partitioning need rewriting
- ✗Only one free trial per account
| Criterion | YugabyteDB | CockroachDB |
|---|---|---|
| License | Apache 2.0 | CockroachDB Software License |
| Managed entry | $125/vCPU/month (Standard) | $0.092/vCPU-hour (Standard) |
| Free option | Serverless Postgres tier | 30-day trial, $400 credit |
| SQL layer | PostgreSQL-compatible | PostgreSQL wire protocol |
The pick when you want CockroachDB's model with an open license. If your application speaks MySQL or you want analytics on live data, go to TiDB instead.
TiDB
TiDB, built by PingCAP, is the other big open source distributed SQL database. It is licensed under Apache 2.0 and speaks MySQL rather than PostgreSQL, which decides most migrations before anything else: if your code is written for the PostgreSQL wire protocol, moving to TiDB means changing drivers, ORM dialects and some SQL. PingCAP has announced PostgreSQL support in public preview, but a production move from CockroachDB should not depend on a preview.
What TiDB adds is columnar storage next to the row store, so analytics and dashboards can run on live data. That is the exact workload CockroachDB is weakest at, and the reason many teams end up bolting a warehouse onto it.
The free tier is generous. TiDB Cloud Starter gives each organization 25 GiB of row storage, 25 GiB of columnar storage and 250 million Request Units a month, spread across up to five instances, and scales to zero when idle. Past the allowance, Request Units cost from $0.10 per million and row storage from $0.20 per GiB-month. Provisioned plans start higher: Essential from $400 a month in compute, storage extra, and Dedicated from $1,376 a month.
- Row and columnar storage in one database
- Apache 2.0 license
- Free allowance with scale to zero
- ✓Permanent free allowance, no time limit
- ✓Analytics without a separate warehouse
- ✓Spend limits on Starter
- ✗MySQL dialect: a real migration from CockroachDB
- ✗PostgreSQL support still in preview
- ✗Jump from free to $400 a month on Essential
| Criterion | TiDB | CockroachDB |
|---|---|---|
| SQL dialect | MySQL | PostgreSQL |
| Free tier | 25 GiB row + 250M RUs per org | 30-day trial for new orgs |
| Analytics | Columnar storage built in | Separate system needed |
| License | Apache 2.0 | Source available |
The pick when your app speaks MySQL or needs analytics on live data. If you must keep PostgreSQL drivers and SQL, YugabyteDB is the shorter trip.
Amazon Aurora DSQL
Aurora DSQL is AWS's serverless distributed SQL database, and the closest thing on this page to CockroachDB's old Basic tier: there are no instances to size, and the bill follows activity. It speaks the PostgreSQL wire protocol, so most drivers and ORMs connect without changes, and it can run active-active across AWS Regions.
The meter is the Distributed Processing Unit (DPU), which counts compute, reads, writes and multi-Region work in one unit. In AWS's pricing examples a million DPUs costs $8, and storage costs $0.33 per GB-month in each Region that holds a copy. Each month, the first 100,000 DPUs and 1 GB of storage are free. AWS prices a small gaming application averaging 0.5 DPUs a second with 15 GB of data at $15.46 a month, a fraction of any provisioned cluster.
The compatibility gap is real, though. DSQL runs one database per cluster, fixes isolation at Repeatable Read, drops PL/pgSQL and temporary tables, and returns serialization errors your code must retry. If your CockroachDB schema leans on stored procedures or big batch updates, budget rewriting time. And it ties you to AWS: if leaving AWS is on the table, read our page on leaving AWS first.
- Costs nothing when idle
- One unit (DPU) for compute, reads and writes
- Active-active across AWS Regions
- ✓Monthly free tier with no time limit
- ✓No cluster sizing or node management
- ✓PostgreSQL drivers and ORMs connect as-is
- ✗No PL/pgSQL, triggers or temporary tables
- ✗Storage billed again in each Region
- ✗AWS only
| Criterion | Amazon Aurora DSQL | CockroachDB |
|---|---|---|
| Billing unit | DPU, per million | vCPU-hour |
| Idle cluster | No DPU charge | Billed in full |
| Isolation | Repeatable Read | Serializable by default |
| Clouds | AWS only | AWS, GCP, Azure |
The pick when traffic is uneven and you live on AWS. If your schema relies on stored procedures, or you want to leave AWS too, look at YugabyteDB instead.
Google Cloud Spanner
Spanner is Google's globally distributed SQL database, built for strongly consistent writes across regions. You provision compute in processing units (PUs), 1,000 of them make a node, and Google runs replication, splits and failover. It comes in three editions billed per node-hour in Iowa: Standard at $0.90, Enterprise at $1.23 and Enterprise Plus at $1.71. Storage on SSD costs $0.30 per GiB a month, all replicas of a regional instance included.
The entry point is lower than most people think. Granular instances go down to 100 PUs, a tenth of a node, so a small Standard instance costs $0.09 an hour, about $65.70 a month. A 90-day free trial instance stores up to 10 GiB, on top of the $300 credit of the Google Cloud trial.
Moving from CockroachDB takes more work than the word PostgreSQL suggests. Spanner offers a PostgreSQL interface, but it supports a subset of the PostgreSQL dialect, and clients reach it through PGAdapter, a proxy that runs next to your application. Expect a compatibility audit of every query. And managed Spanner is a Google Cloud service: if Google is also what you are trying to reduce, see our page on leaving Google Cloud.
- Strong consistency across regions
- Instances from 100 processing units
- PostgreSQL interface next to GoogleSQL
- ✓Strongly consistent multi-region SQL, fully managed
- ✓Small instances at about $65.70 a month
- ✓90-day free trial instance
- ✗Managed service tied to Google Cloud
- ✗PostgreSQL support is a subset, through a proxy
- ✗Every scale-up billed for at least one hour
| Criterion | Google Cloud Spanner | CockroachDB |
|---|---|---|
| Billing unit | Node-hour (1,000 PUs) | vCPU-hour |
| Smallest setup | 100 PUs, ≈ $65.70/month | 2 vCPU, ≈ $203/month with 100 GB |
| Clouds | Google Cloud (managed) | AWS, GCP, Azure |
| SQL | GoogleSQL or PostgreSQL subset | PostgreSQL wire protocol |
The pick when you need global consistency and already run on Google Cloud. If you want to stay cloud-neutral, YugabyteDB or TiDB keep that door open.
PlanetScale
PlanetScale is a different answer to the same worry. Instead of distributing every write from day one, it gives you an ordinary database now and horizontal sharding when you need it. Vitess handles MySQL-compatible sharding, and Neki brings the same sharding model to PostgreSQL. In between, PlanetScale Postgres runs a plain single node or a high-availability cluster.
The entry price is low for a managed database you can put in production: a PlanetScale Postgres single node starts at $5 a month for development and low-traffic workloads. High availability runs one primary and two replicas across three availability zones, and Metal, with local NVMe storage, starts at $50 a month. 100 GB of egress is included each month, then $0.06 per GB.
The catch for a CockroachDB user is that sharding is not automatic in the same way. You choose shard keys and topology, and the bill grows with shards, replicas and routers. Enterprise customers can run PlanetScale inside their own AWS or GCP account, with a 15-minute response time on P1 tickets on Enterprise support. Teams weighing a backend platform rather than a raw database can also look at our Supabase alternatives.
- PostgreSQL from $5 a month
- Vitess sharding for MySQL, Neki for Postgres
- Bring-your-own-cloud on Enterprise
- ✓Production database for $5 a month
- ✓Sharding when you need it, not before
- ✓Clear resource-based pricing
- ✗No multi-region active-active writes
- ✗Shard keys are your design work
- ✗Egress billed past 100 GB
| Criterion | PlanetScale | CockroachDB |
|---|---|---|
| Entry price | $5/month single node | ≈ $203/month (2 vCPU, 100 GB) |
| Scale-out | Sharding (Vitess, Neki) | Automatic range splits |
| High availability | 1 primary + 2 replicas, 3 zones | Replication by consensus |
| Egress | 100 GB free, then $0.06/GB | Billed on data leaving the cluster |
The pick when you bought CockroachDB for scale you will reach later. If you need writes in several regions at once, Aurora DSQL or YugabyteDB fit better.
Amazon Aurora
Every guide on this topic ends up saying it: many CockroachDB clusters run in one region, and a managed PostgreSQL database would do the job for less. Amazon Aurora is that option on AWS. It is PostgreSQL- and MySQL-compatible, replicates storage across Availability Zones, and its Serverless configuration can scale down to 0 ACU, so an idle database stops billing for capacity.
The bill has three parts to model. On Aurora Standard, serverless capacity costs $0.12 per ACU-hour, storage $0.10 per GB-month, and I/O $0.20 per million requests. Aurora I/O-Optimized raises capacity to $0.156 per ACU-hour and storage to $0.225 per GB-month, and removes the I/O charge, which pays when I/O is more than about a quarter of your Aurora spend. A cluster that never pauses at 0.5 ACU costs $43.80 a month in capacity on Standard.
The SQL side of the move is familiar, because the target is real PostgreSQL, extensions and PL/pgSQL included. What you give up is multi-writer distribution: one primary takes the writes. If AWS is not your cloud, the same reasoning points to other managed PostgreSQL services, compared on our Amazon RDS alternatives page.
- Real PostgreSQL, extensions included
- Serverless down to 0 ACU
- I/O-Optimized option with no I/O charge
- ✓Target is PostgreSQL itself
- ✓Pauses when idle
- ✓Single-region costs far below a distributed cluster
- ✗One writer: no distributed writes
- ✗Capacity, storage and I/O to model
- ✗AWS only
| Criterion | Amazon Aurora | CockroachDB |
|---|---|---|
| Write model | Single primary | Every node takes writes |
| Idle cost | Can scale to 0 ACU | Billed on provisioned vCPUs |
| SQL | PostgreSQL itself | PostgreSQL wire protocol |
| Entry price | $0.12/ACU-hour + storage + I/O | $0.092/vCPU-hour |
The pick when one region was always enough. If you truly need writes accepted in several regions, Aurora DSQL or YugabyteDB are the ones to price.
6 CockroachDB alternatives compared
Read the "Main edge over CockroachDB" column first: each database fixes a different reason to leave. Prices are in US dollars, at the smallest paid or usage unit each vendor lists, in its default US region. For scale, a new CockroachDB Cloud Standard cluster costs $0.092 per vCPU-hour, about $203 a month for 2 vCPU and 100 GB.
| Best for | Main edge over CockroachDB | Free plan | Team size | Visit | ||||
|---|---|---|---|---|---|---|---|---|
| 1 | YugabyteDB | Best overall CockroachDB replacement | Distributed PostgreSQL under Apache 2.0 | 4.4/5 | Free self-hosted; Aeon $125/vCPU/mo | ✓ | Postgres teams over $10M revenue | Visit → |
| 2 | TiDB | Best for MySQL apps and analytics on live data | Columnar analytics, 250M free RUs | 4.3/5 | Free; $0.10/M RUs beyond | ✓ | MySQL apps, HTAP | Visit → |
| 3 | Amazon Aurora DSQL | Best serverless option on AWS | No charge when idle, no cluster to size | 3.9/5 | $8/M DPUs + $0.33/GB-mo | ✓ | AWS, spiky traffic | Visit → |
| 4 | Google Cloud Spanner | Best for global consistency on Google Cloud | Global consistency, from 100 PUs | 3.8/5 | ≈ $65.70/mo (100 PUs) | — | Google Cloud teams | Visit → |
| 5 | PlanetScale | Best cheap start with sharding later | Production database from $5 a month | 3.7/5 | $5/mo single node | — | Startups, MySQL sharding | Visit → |
| 6 | Amazon Aurora | Best if you never needed distributed SQL | Real PostgreSQL, scales to 0 ACU | 3.6/5 | $0.12/ACU-hr + storage + I/O | — | Single-region AWS apps | Visit → |
Scores from each vendor's official pages and our comparison on five criteria, each score the plain average of its five sub-scores. Prices read in 2026 on each pricing page, in the default US region.
Is your tool missing from this page? Email us: hello@hackceleration.com
Which CockroachDB alternative is right for you?
Apache 2.0, no revenue gate, PostgreSQL-compatible.
Your app is on MySQL, or dashboards hit the same dataTiDBColumnar storage built in, free Starter allowance.
Traffic is spiky and you are on AWSAmazon Aurora DSQLBilled per DPU, nothing when idle.
You need global consistency on Google CloudGoogle Cloud SpannerFrom 100 processing units, about $65.70 a month.
You bought CockroachDB for scale you will reach laterPlanetScaleFrom $5 a month, sharding when you need it.
One region was always enoughAmazon AuroraReal PostgreSQL, serverless down to 0 ACU.
How to choose a CockroachDB alternative
CockroachDB belongs to a category called distributed SQL. A distributed SQL database looks like a normal relational database to your application: tables, joins, transactions, SQL. Underneath, it splits each table into ranges (CockroachDB), tablets (YugabyteDB) or regions (TiDB), keeps several copies of each one on different machines, and uses a consensus protocol such as Raft or Paxos so that a write is confirmed once a majority of copies agree. Lose a node, a zone or, with the right setup, a whole region, and the database keeps answering. The price of that guarantee is latency on every write, more machines than a single PostgreSQL server, and an operating model that takes time to learn.
Before comparing alternatives, decide whether you need the category at all. If your data fits on one large server and one region serves your users, a managed PostgreSQL service with automatic failover gives you most of the resilience for a fraction of the cost: that is the Aurora case on this page, and Neon, which bills $0.106 per compute unit-hour on its Launch plan, is another. If you need writes accepted in several regions, or more data than one machine holds, stay in the category and compare the distributed options.
Each vendor sells capacity in its own unit, and comparing them is half the work. A vCPU-hour is one virtual processor running for one hour; CockroachDB's Continuum pricing and YugabyteDB Aeon (per vCPU per month) bill this way, whether the cluster is busy or not. A Request Unit (RU) is a normalized measure of the work a query does, reads, writes and CPU together; TiDB Starter and CockroachDB's earlier Basic plan bill per million RUs. A DPU, Aurora DSQL's Distributed Processing Unit, plays the same role on AWS. A processing unit is Spanner's slice of a node: 1,000 make one node, sold in steps of 100 up to one node, then in whole nodes. An ACU is Aurora's capacity unit, and a GB-month is one gigabyte stored for a month. Finally, the replication factor is the number of copies of each piece of data, usually three: some vendors include the copies in the storage price, others bill each one.
Put six questions to each vendor. Under which license does the database ship, and does it change above a revenue threshold? Which SQL dialect does it speak, and which features of your schema (stored procedures, triggers, sequences, extensions) are missing? What does the smallest production setup cost per month with high availability on? Does an idle database still bill? How are cross-region writes and storage billed? And how do you get your data out: a plain SQL dump, CSV or Parquet export, or change data capture?
Several databases other lists mention deserve a line. Citus turns PostgreSQL into a sharded cluster and is open source under the AGPL; YDB is an Apache 2.0 distributed SQL database with strict consistency, less widespread outside its home market. AlloyDB is Google's PostgreSQL-compatible service for heavy single-region workloads. Tinybird and ClickHouse do not replace CockroachDB: they sit next to it when the real problem is analytics, and our ClickHouse alternatives page covers that side, as does our page on Amazon Redshift alternatives. MongoDB Atlas and Oracle's distributed database show up in software directories too, but the first is a document database and the second a commercial engine with its own lock-in, neither a drop-in for a PostgreSQL-style schema. If you are moving clouds at the same time, our page on Microsoft Azure alternatives covers the platform side.
Five traps CockroachDB leavers fall into
The traps
Price Spanner at 100 processing units, then add the hour minimum
Most comparisons quote Spanner per node, $0.90 an hour on Standard in Iowa, about $657 a month. The real floor is 100 processing units, $0.09 an hour or about $65.70 a month. Two catches: any compute you add is billed for at least one hour, even if you scale back after 30 minutes, and a completed backup is billed for at least 24 hours, even if you delete it sooner.
TiDB's free allowance is per organization, not per database
The 25 GiB of row storage and 250 million Request Units are a total across up to five instances: each instance gets its own 5 GiB and 50 million RUs, and one cannot borrow another's share. A single production database is free only up to 5 GiB and 50 million RUs a month, and a sixth instance pays from the first query. Past the allowance, a billion Request Units cost $100 at the $0.10 per million entry rate, so set the spend limit before you load production traffic.
Aurora DSQL caps a transaction at 3,000 rows
A transaction can modify up to 3,000 rows, whatever the number of indexes, each transaction takes only one DDL statement, and connections time out after one hour. Backfills, bulk deletes and long-running workers written for CockroachDB must be cut into batches and reconnect. Multi-Region clusters also bill storage in each Region: 25 GB on two Regions costs $16.50 a month, not $8.25.
Count YugabyteDB Aeon in vCPUs per month, times the nodes
Aeon's $125 is per vCPU per month. A three-node cluster with 2 vCPU per node is 6 vCPU, $750 a month on Standard before storage and transfer. The Enterprise Security add-on (SSO, customer-managed keys) and the Business Continuity add-on (point-in-time recovery, DR failover) are not sold on Standard: they belong to the Professional tier ($167 per vCPU, $1,002 a month for the same 6 vCPU), at $25 per vCPU a month each, so $150 more per add-on. Self-hosting the same Apache 2.0 code costs only your servers.
Plan your CockroachDB exit before the next renewal
A CockroachDB Cloud edition cannot be changed in place: moving between Standard and Mission Critical means a new cluster, a backup and a restore, so a downgrade is a migration too. After you delete a cluster, its managed backups stay billed until their retention runs out, 30 days on the default policy. Delete old backups or shorten retention on the day you cut over.
CockroachDB alternatives, the FAQ
Is CockroachDB still open source?
No. CockroachDB is source available: you can read the code, but it ships under the CockroachDB Software License, not an open source license. Developers can still run a single-node cluster with cockroach start-single-node or cockroach demo without any license key, and single-node clusters for development use are not throttled, which is enough for local development.Do I need a license key to self-host CockroachDB?
Yes, for anything beyond a single-node development cluster. If no valid license key is ever entered, the cluster is throttled 7 days after it starts. An Enterprise Trial key is throttled 7 days after it expires and an Enterprise Free key 30 days after, while a paid Enterprise key never throttles. Keep the renewal date in your calendar.What happens when a CockroachDB cluster is throttled?
It keeps running, but the number of concurrent open SQL transactions is limited to 5. For a production application with a connection pool, that is effectively an outage under load. It is the main operational risk of letting an Enterprise Free license lapse while you are still evaluating an alternative.Can I use pg_dump to migrate off CockroachDB?
Only for the schema. CockroachDB documents pg_dump for exporting a schema as a plain-text SQL script, but data has to leave through the EXPORT statement, which writes CSV or Parquet files in parallel across nodes, or through changefeeds, which Cockroach Labs recommends for growing workloads. EXPORT cannot run inside a transaction.Is CockroachDB compatible with PostgreSQL?
It speaks the PostgreSQL wire protocol, so most drivers connect, but it is not PostgreSQL. It adds its own statements such as UPSERT, AS OF SYSTEM TIME queries and changefeeds, which your code may already use. Search your codebase for them before a move: each one needs a rewrite on any alternative, including YugabyteDB.Is CockroachDB good for analytics?
Not for heavy analytics. It is built for transactions, and large aggregations compete with your application for the same nodes. The usual fix is to stream changes out to a columnar engine: on CockroachDB Cloud Standard, the change data capture add-on costs $0.006 per vCPU-hour, about $8.76 a month for a 2 vCPU cluster.Does the CockroachDB license change affect CockroachDB Cloud?
No, the license change concerns self-hosted clusters. Cloud customers are affected by pricing instead: organizations created since Cockroach Continuum launched in 2026 start on Cockroach Continuum, while existing Cloud customers stay on their current pricing unless they opt in through their account team. Annual contracts buy credits upfront, each worth $1.Can I migrate off CockroachDB without downtime?
Yes, but you build the pipeline yourself. CockroachDB backups only restore into CockroachDB, so a near-zero-downtime move streams each table through a changefeed, replays the events in the new database with idempotent upserts, and cuts over once the copy has caught up. A team that moved 1.5 billion rows to managed PostgreSQL in 2026 did exactly that and reported a cutover of a few seconds. Cockroach Labs recommends at most 80 changefeeds per cluster, so a schema with more tables needs several tables per changefeed.