CockroachDB vs YugabyteDB
CockroachDB: Postgres-wire distributed SQL built to survive node, zone and region failures with serializable transactions. YugabyteDB: Apache-licensed distributed SQL that reuses the PostgreSQL query layer on a Raft-replicated storage engine.
key differences
- Licensing: CockroachDB is source-available (CockroachDB Software License); YugabyteDB is open source (permissive) (Apache License 2.0).
- Only CockroachDB has geospatial, time travel.
- CockroachDB has a serverless option; YugabyteDB does not.
choose cockroachdb for
- +Global payments and ledger systems of record
- +Identity, account and session metadata across regions
- +Inventory and order management with strict consistency
- +Data-residency workloads that must pin rows to a country
best at · OLTP, Geo, Metadata
choose yugabytedb for
- +Scaling a Postgres application beyond one primary
- +Multi-region customer and order data with zone/region resilience
- +Retail and financial OLTP needing horizontal write capacity
- +IoT and telemetry metadata with TTL on YCQL tables
best at · OLTP, Metadata, IoT
CockroachDB vs YugabyteDB: FAQ
What is the difference between CockroachDB and YugabyteDB?
CockroachDB: Postgres-wire distributed SQL built to survive node, zone and region failures with serializable transactions. YugabyteDB: Apache-licensed distributed SQL that reuses the PostgreSQL query layer on a Raft-replicated storage engine. Licensing: CockroachDB is source-available (CockroachDB Software License); YugabyteDB is open source (permissive) (Apache License 2.0). Only CockroachDB has geospatial, time travel. CockroachDB has a serverless option; YugabyteDB does not.
When should I choose CockroachDB over YugabyteDB?
Choose CockroachDB for global payments and ledger systems of record; identity, account and session metadata across regions; and inventory and order management with strict consistency. Choose YugabyteDB for scaling a Postgres application beyond one primary; multi-region customer and order data with zone/region resilience; and retail and financial OLTP needing horizontal write capacity.
Is CockroachDB or YugabyteDB more popular?
CockroachDB ranks #33 on the WhichDB Score (47.1/100) and YugabyteDB ranks #69 (32.7/100). Popularity is not fit: check the requirements that matter for your project.
Are CockroachDB and YugabyteDB open source?
Not in the OSI sense. CockroachDB is source-available: you can read the code, but the license restricts some uses, typically offering it as a competing managed service. License: CockroachDB Software License. Yes. YugabyteDB is open source. License: Apache License 2.0.