4 ms·
How does CockroachDB compare to YugabyteDB
by cglace 7y ago
How does CockroachDB compare to YugabyteDB
- mping 7y agoFirst google hit: https://www.yugabyte.com/yugabyte-db-vs-cockroachdb/ https://www.yugabyte.com/yugabyte-db-vs-cockroachdb/ My understanding is that CDB is a bit more focused on correctness before focusing on performance.
- manigandham 7y agoCockroachDB is built from scratch in Go, uses Raft + RocksDB as a distributed key/value store, and then implements the Postgres data structures and wire protocol on top. Focuses on strong consistency and durability (which was the origin of its name). Can run active/active in multiple regions. Lacks full compatibility with Postgres. Yugabyte is a multi-model database built in C++, uses Raft + RocksDB as a distributed key/value store, and then implements a proprietary document-store model on top called DocsDB. This is exposed as a Redis API, Cassandra API, and now PostgreSQL RDBMS interface by using the actual Postgres code for the SQL layer. Much higher compatibility with Postgres with all data types, most advanced SQL, and even some extensions that work without problems. Not as advanced on the distributed side and uses more of a primary/replica setup. Both are great options for a distributed scalable RDBMS with Postgres.
- bogomipz 7y agoThanks for this overview. Is Cockroach an open-source version of Google's Spanner as well?
- irfansharif 7y agoNot technically open-source (BSL-licensed), but yes, source available on https://github.com/cockroachdb/cockroach/ https://github.com/cockroachdb/cockroach/.
- manigandham 7y agoThey used to be completely open-source and have changed the license similar to Redis Labs, MongoDB, etc. And yes, you can consider it as an alternative to Spanner with more usability and running on commodity hardware.