CockroachDB
Distributed SQL database (Postgres wire-compatible); since Nov 2024 a single source-available Enterprise licence.
CockroachDB replicates data across nodes and regions using Raft consensus, offering serializable SQL transactions that survive node and zone failures. It speaks the PostgreSQL wire protocol, so many Postgres drivers and ORMs work. In November 2024 Cockroach Labs retired the free Core edition and moved self-hosted use to the source-available CockroachDB Software License; an Enterprise Free tier covers individuals, students and smaller businesses and requires telemetry.
- Type
- Database
- Category
- Data
- Maintainer
- Cockroach Labs
- First released
- 2015
- License
- Source available
- Pricing
- Freemium — Enterprise Free for individuals, students and businesses under a revenue threshold (official licence update); otherwise paid. CockroachDB Cloud has usage-based plans.
- Level
- Advanced
- Technologies
- sql, postgresql, distributed-systems, go
- GitHub stars
- 32,657
- Last verified
- 26 Nov 2026
What CockroachDB is used for
- Multi-region transactional apps
- Systems needing high availability by design
- Financial ledgers
Strengths
- Survives node/region failures
- Serializable transactions
- Postgres-compatible clients
Limitations
- No longer open source (source-available licence)
- Mandatory telemetry on the free self-hosted tier
- Higher latency than single-node Postgres for simple workloads
CockroachDB alternatives
How it relates to other tools
- CockroachDB alternative to PostgreSQL
- CockroachDB works with Kubernetes