YugaByte DB’s sharding, replication and transactions architecture is similar to that CockroachDB given that both are inspired by the Google Spanner design paper. Additionally, both use Raft as the distributed consensus replication algorithm and RocksDB as the per-node storage engine. The following sections highlight the advantages and similarities YugaByte DB has when compared with CockroachDB.
YugaByte DB beats CockroachDB in the context of multiple developer benefits including higher performance, stronger fit for internet-scale OLTP workloads, better PostgreSQL compatibility as well as higher data density. Following blogs highlight the architectural and implementation advantages that make these benefits possible.
Following blogs highlight how YugaByte DB works as an open source, cloud native Spanner derivative similar to CockroachDB.
Download Benchmarking Report
Download our comprehensive report that benchmarks YugaByte DB against CockroachDB while highlighting the architectural choices that enables YugaByte DB to have 3.5x better throughput and 3x lower latency.