5,756 open-source and SaaS tools, with GitHub stats refreshed every day.

CockroachDB

Open source

CockroachDB is a cloud-native distributed SQL database built on a strongly consistent key-value store that scales horizontally and survives machine and datacenter failures.

Open-source alternative to

cockroachlabs.com
CockroachDB homepage screenshot
GitHub stars
33k
Last commit
8 days ago
Repository age
12 years
Licence
Custom
Self-hosted
Yes

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

SaaS alternatives to CockroachDB

See all