Databases · head to head
CockroachDB vs Vitess

CockroachDB
Databases
The cloud-native distributed SQL database
- From
- Free
- Free plan
- Yes

Vitess
Databases
Scalable database clustering system for horizontal scaling of MySQL
- From
- Free
- Free plan
- Yes
The short version
- CockroachDB is a cloud-native distributed SQL database.
- Vitess is free; CockroachDB starts at $0.057/mo.
- Only CockroachDB lists distributed SQL; only Vitess lists connection Pooling.
- Where CockroachDB falls short: basic and Standard tiers limited to AWS and GCP (select regions only).
- Where Vitess falls short: VTGate scatter queries without sharding key incur significant performance penalties.
How do CockroachDB and Vitess differ?
CockroachDB and Vitess differ on platforms and year founded (2015 against 2010). Only the attributes on which CockroachDB and Vitess actually diverge.
| Attribute | CockroachDB | Vitess |
|---|---|---|
| Platforms | AWS, GCP, Azure | Linux, macOS, Self-hosted |
| Founded | 2015 | 2010 |
Identical on both: starting price (Free), free tier (Yes), category (Databases).
Not yet recorded: pricing model for Vitess.
Which features does each one have?
They share 1 listed feature; 19 appear only for CockroachDB and 14 only for Vitess. 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 CockroachDB
- Distributed SQL
- Automatic Sharding
- Multi-region Replication
- Geo-partitioning
- ACID Transactions
- Horizontal Scaling
- Survivability
- PostgreSQL Compatibility
Only in Vitess
- Horizontal Sharding
- Connection Pooling
- Query Routing
- Online Schema Changes
- Shard Management
- Replication Management
- Automated Failover
- MySQL
Both cover
- Kubernetes
What is each one used for?
CockroachDB is most often brought in for distributed SQL database for scalable applications; Vitess for transaction processing. The jobs each tool is most often brought in to do.
CockroachDB
- Distributed SQL database for scalable applicationsnot Vitess
- Multi-region deployment and failovernot Vitess
Vitess
- Transaction processingnot CockroachDB
- Data storagenot CockroachDB
- Application backendnot CockroachDB
- Reportingnot CockroachDB
- Data analyticsnot CockroachDB
Where do CockroachDB and Vitess fall short?
CockroachDB's most cited limit: basic and Standard tiers limited to AWS and GCP (select regions only). Vitess's: VTGate scatter queries without sharding key incur significant performance penalties. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.
CockroachDB
- Basic and Standard tiers limited to AWS and GCP (select regions only)
- Azure support restricted to Advanced tier only
- Basic tier limited to 50 million RUs and 10 GiB storage per month
- Advanced tier starts at $0.60/hour for 4 vCPUs minimum
- 3 TiB maximum storage on Basic and Standard tiers, 10 TiB per node on Advanced
Vitess
- VTGate scatter queries without sharding key incur significant performance penalties
- Foreign key constraints not enforced across shards, requiring application-level integrity handling
- Single primary per keyspace limits multi-region write capabilities
- Distributed transactions without proper sharding key routing suffer performance degradation
How much do CockroachDB and Vitess cost?
CockroachDB has a free plan, with paid plans from $0.057/mo; Vitess is free to use. Plan by plan below, from each vendor's own pricing page.
CockroachDB
Free- Standard$0.057/vcpu-hour
- Mission Critical$0.162/vcpu-hour
Vitess
Free- Open source (Apache-2.0)Free
Which should you pick?
Choose CockroachDB if
- You need distributed sql.
- You want to start without paying.
- You work on AWS, GCP, Azure.
- You also want automatic sharding.
Choose Vitess if
- You need horizontal sharding.
- You want to start without paying.
- You work on Linux, macOS, Self-hosted.
- You also want connection pooling.
Questions people ask
- Is CockroachDB or Vitess better?
- It depends on the job. CockroachDB fits distributed SQL database for scalable applications; Vitess fits transaction processing. CockroachDB starts at Free and Vitess at Free.
- Which is cheaper, CockroachDB or Vitess?
- CockroachDB starts at Free and Vitess at Free.
- Does CockroachDB or Vitess run on more platforms?
- CockroachDB runs on AWS, GCP, Azure. Vitess runs on Linux, macOS, Self-hosted.
- Can I use CockroachDB for free?
- Both have a free tier, so you can try either at no cost before committing.
- What is CockroachDB best used for?
- CockroachDB is most often used for distributed sql database for scalable applications, multi-region deployment and failover. Of those, distributed sql database for scalable applications and multi-region deployment and failover are not what Vitess is typically brought in for.
- What can CockroachDB do that Vitess cannot?
- CockroachDB covers Distributed SQL, Automatic Sharding, Multi-region Replication, Geo-partitioning. Vitess covers Horizontal Sharding, Connection Pooling, Query Routing, Online Schema Changes. Both handle Kubernetes.
Answered from the vendors’ own pages
CockroachDB: What does the free Basic tier include?
The Basic tier is free and includes 50 million RUs and 10 GiB storage per month, with a maximum compute of 30K RU/sec. No credit card is required to start.
SourceVitess: Is Vitess free to use?
Yes. Vitess is completely free and open source under the Apache 2.0 license. It is a graduated CNCF project with no licensing costs or pricing tiers.
SourceCockroachDB: How much do the paid tiers cost?
Standard tier starts at $0.18 per hour for 2 vCPUs, and Advanced tier starts at $0.60 per hour for 4 vCPUs. Both tiers support additional resources with higher costs for increased compute and storage.
SourceVitess: What databases does Vitess support?
Vitess supports MySQL and MariaDB as backend databases. It acts as a middleware layer that adds sharding and orchestration capabilities on top of these databases.
SourceCockroachDB: What are the storage limits for each tier?
Basic plan supports up to 3 TiB storage, Standard tier up to 3 TiB, and Advanced tier up to 10 TiB per node with unlimited total storage.
SourceVitess: Does Vitess require Kubernetes to run?
No. Vitess can run on Kubernetes using the Vitess Operator, but it can also be deployed on traditional infrastructure. Kubernetes integration is optional and provides additional automation benefits.
SourceCockroachDB: Can I get trial credits before paying?
Yes, new users can try CockroachDB free with $400 in credits. The Basic and Standard plans do not require a credit card to start.
SourceVitess: How does Vitess handle cross-shard transactions?
Vitess supports distributed transactions across shards, but they require queries to be routed through the sharding key. Transactions without a proper sharding key can result in slower performance.
SourceCockroachDB: Do legacy contracts have different pricing?
Customers with annual or multi-year contracts entered before December 1, 2024 can view legacy pricing terms on a separate page, which apply until their contract renewal date.
SourceVitess: Does Vitess enforce foreign key constraints?
Vitess does not enforce foreign key constraints across shards by default. Referential integrity must be managed at the application layer, though per-database support can be enabled with limitations.
SourceRelated pages
More on CockroachDB
Other head to heads
- CockroachDB vs YugabyteDB
- CockroachDB vs PostgreSQL
- CockroachDB vs SingleStore
- CockroachDB vs Google Cloud SQL
- CockroachDB vs Amazon Aurora
- CockroachDB vs Neon
- CockroachDB vs Oracle Database
- CockroachDB vs TiDB
- CockroachDB vs Azure Cosmos DB
- CockroachDB vs Nile
- CockroachDB vs Aiven
- CockroachDB vs Cassandra
- CockroachDB vs Meilisearch
- CockroachDB vs MongoDB Atlas
- CockroachDB vs NATS
- CockroachDB vs Pinecone
- CockroachDB vs Solace PubSub+
- CockroachDB vs Google Cloud Spanner
- CockroachDB vs Readyset
- CockroachDB vs MySQL
- CockroachDB vs Microsoft Access
- CockroachDB vs ClickHouse
- CockroachDB vs RabbitMQ
- CockroachDB vs MotherDuck
- CockroachDB vs Presto
- CockroachDB vs TIBCO Enterprise Message Service
- CockroachDB vs VerneMQ
- CockroachDB vs Xata
- Vitess vs YugabyteDB
- Vitess vs PostgreSQL
- Vitess vs SingleStore
- Vitess vs Google Cloud SQL
- Vitess vs Amazon Aurora
- Vitess vs Neon
- Vitess vs Oracle Database
- Vitess vs TiDB
- Vitess vs Azure Cosmos DB
- Vitess vs Nile
- Vitess vs Aiven
- Vitess vs Cassandra
- Vitess vs Meilisearch
- Vitess vs MongoDB Atlas
- Vitess vs NATS
- Vitess vs Pinecone
- Vitess vs Solace PubSub+
- Vitess vs Google Cloud Spanner
- Vitess vs Readyset
- Vitess vs MySQL
- Vitess vs Microsoft Access
- Vitess vs ClickHouse
- Vitess vs RabbitMQ
- Vitess vs MotherDuck
- Vitess vs Presto
- Vitess vs TIBCO Enterprise Message Service
- Vitess vs VerneMQ
- Vitess vs Xata
