About CockroachDB
CockroachDB is a distributed SQL database for building, scaling and managing data-intensive modern applications. It is layered on a transactional, strongly consistent key-value store and offers a familiar SQL API for defining, changing and querying data, with ACID transactions across the cluster.
It scales horizontally by adding nodes and is designed to keep running through failed disks, machines, racks and even whole datacenters, with little added latency and no manual recovery. Control over where data is placed is part of the pitch, which matters for locality and compliance. Documentation covers installation, development, deployment and administration, client drivers, and a comparison with other databases, and the design is explained in a public architecture document.
CockroachDB is written in Go. Its license is listed as 'Other' on GitHub, so review the current license terms before using it commercially. You can run your own cluster or let Cockroach Labs run it as the managed CockroachDB Cloud service. It suits teams that need resilient, multi-region relational storage without sharding by hand.
Key features
- Distributed SQL with ACID transactions
- Horizontal scaling by adding nodes
- Survives machine, rack and datacenter failures
- Control over data placement
- Built on a strongly consistent key-value store
- Managed cloud service available
Good fit for
- →Highly available relational databases
- →Multi-region applications with data locality needs
- →Scaling beyond a single SQL server
- Built with
- Go
- Tags
- distributed-database
- sql
- database
- high-availability
- acid
- cloud-native
- go
- scalability
Open-source alternatives to CockroachDB
See all
TiDB
Databases
TiDB is built for agentic workloads that grow unpredictably, with ACID guarantees and nati
Apache-2.0vs Amazon Aurora★ 41k
YugabyteDB
Databases
YugabyteDB - the cloud native distributed SQL database for mission-critical applications.
OSSvs Google Cloud Spanner★ 11k
OceanBase
Databases
OceanBase is the unified distributed database for the AI era — open-source, multi-model, o
Apache-2.0vs Oracle Database★ 10k
YDB
Databases
YDB is an open source Distributed SQL Database that combines high availability and scalabi
Apache-2.0vs Google Cloud Spanner★ 4.8k
MySQL
Databases
MySQL Server, the world's most popular open source database, and MySQL Cluster, a real-tim
OSSvs Oracle Database★ 12k
Neon
Databases
Neon: Serverless Postgres. We separated storage and compute to offer autoscaling, code-lik
Apache-2.0vs Amazon Aurora★ 23k
SaaS alternatives to CockroachDB
See all
Google Cloud Spanner
Databases
Google horizontally scalable relational database with strong consistency
SaaS
Amazon Aurora
Databases
AWS cloud-built relational database compatible with MySQL and PostgreSQL
SaaS
CockroachDB
Databases
Distributed SQL database with horizontal scaling, available as a managed cloud service
SaaS
Oracle Database
Databases
Oracle relational database for enterprise transactional and analytical workloads
SaaS
AlloyDB for PostgreSQL
Databases
PostgreSQL-compatible managed database service on Google Cloud
SaaS
Oracle Autonomous Database
Databases
Self-managing cloud database from Oracle with automated tuning, patching and scaling
SaaS

