CockroachDB vs YugabyteDB
CockroachDB and YugabyteDB compared field by field from their catalog records. Both are listed under Distributed OLTP, Globally Distributed SQL.
| Attribute | CockroachDB | YugabyteDB |
|---|---|---|
| Maintainer | Cockroach Labs | Yugabyte, Inc. |
| Categories | Distributed OLTP, Globally Distributed SQL, Geospatial Databases, Vector Extensions & Plugins | Distributed OLTP, Globally Distributed SQL |
| Status | active | active |
| License | LicenseRef-CockroachDB-Software-License | Apache-2.0 |
| Open source (OSI) | No | Yes |
| First release | 2017 | 2018 |
| Latest stable version | 26.4.1 (Nov 18, 2026) | 2026.1.3.2 (Dec 1, 2026) |
| Deployment | self-hosted, managed, serverless | self-hosted, managed |
| Wire compatibility | postgres | postgres, cassandra-cql |
| Query languages | SQL | SQL, PL/pgSQL, CQL |
| Written in | Go | C++, C, Java |
| Radar ring | trial | trial |
| Last verified | Dec 3, 2026 | Dec 3, 2026 |
Summaries
CockroachDB
Raft-replicated SQL database that shards data into ranges and replicates them with Raft consensus to provide serializable transactions across nodes and regions. It speaks the PostgreSQL wire protocol and much of its SQL dialect, and supports table- and row-level data placement for multi-region deployments. It targets resilient transactional systems such as payments, identity and inventory that must survive node or region failures.
trial Technically strong for multi-region transactional workloads, but the move away from an open-source license means teams should review licensing costs and terms before committing.
YugabyteDB
Horizontally scalable database that reuses the PostgreSQL query layer (YSQL) on top of DocDB, a sharded, Raft-replicated storage engine derived from RocksDB. It also exposes a Cassandra-compatible API (YCQL). Teams use it for resilient transactional applications that need horizontal scaling and multi-region deployments while keeping Postgres compatibility.
trial A credible open-source option for Postgres-compatible distributed OLTP, though compatibility gaps with Postgres and the operational model need testing per workload.
Benchmarks including both
Sources
Last verified:
- cockroachlabs.com/docs/releases/v26.4 cockroachlabs.com
- cockroachlabs.com/docs/releases cockroachlabs.com
- cockroachlabs.com/blog/enterprise-license-announcement cockroachlabs.com
- github.com/cockroachdb/cockroach github.com
- docs.yugabyte.com/stable/releases/ybdb-releases docs.yugabyte.com
- docs.yugabyte.com/stable/releases/ybdb-releases/v2026.1 docs.yugabyte.com
- docs.yugabyte.com/stable/releases/ybdb-releases/v2025.2 docs.yugabyte.com
- raw.githubusercontent.com/yugabyte/yugabyte-db/master/LICENSE.md raw.githubusercontent.com
- github.com/yugabyte/yugabyte-db github.com
- yugabyte.com/blog/announcing-yugabyte-db-1-0 yugabyte.com
Found an error? See how to report a correction.