dbstack

Index Relational CockroachDB

§ Tool · Relational

CockroachDB

A distributed, strongly-consistent SQL database with Postgres-wire compatibility, designed to survive failures.

Stars
32,163
Forks
4,124
Last push
yesterday
License
Source-available (CRL)
First released
2015
www.cockroachlabs.com → cockroachdb/cockroach → Self-hostable · Free tier · Go

What it is

CockroachDB is a distributed SQL database that aims for the operational properties of a NoSQL system (horizontal scaling, fault tolerance, geographic distribution) with the data model and consistency of a traditional relational database. It speaks the Postgres wire protocol, so most Postgres client libraries connect without modification.

It was started in 2014 by Spencer Kimball, Peter Mattis, and Ben Darnell — all ex-Googlers, drawing inspiration from Google’s Spanner. The first production release came in 2017. Cockroach Labs is the steward.

In August 2024, Cockroach Labs announced a significant license change. From version 24.3 onward (released October 2024), CockroachDB is distributed under a single proprietary license (the Cockroach Software License) — no longer BSL with a conversion to Apache 2. Self-hosting in production now requires a paid Enterprise license. Older versions retain their original BSL terms.

Why people use it

When to use CockroachDB

When not to use CockroachDB

Notable trade-offs

Ecosystem

Alternatives to consider

§ 01 · Primary Use Cases

3 listed

§ 02 · Alternatives

See all →

Alternatives to CockroachDB.

§ 03 · Often Used With

Companions, not replacements

§ 04 · Head-to-Head

6 pairs

Comparisons featuring CockroachDB.

GitHub data refreshed yesterday. Tool description is editorial, written for the directory.