cockroach VS RethinkDB

Compare cockroach vs RethinkDB and see what are their differences.


CockroachDB - the open source, cloud-native distributed SQL database. (by cockroachdb)


The open-source database for the realtime web. (by rethinkdb)
Our great sponsors
  • Nanos - Run Linux Software Faster and Safer than Linux with Unikernels
  • Scout APM - A developer's best friend. Try free for 14-days
  • SaaSHub - Software Alternatives and Reviews
cockroach RethinkDB
23 13
22,567 25,124
1.1% 0.3%
10.0 1.8
4 days ago 5 days ago
Go C++
GNU General Public License v3.0 or later Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.


Posts with mentions or reviews of cockroach. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-11-30.
  • Composing generic data structures in go
    3 projects | | 30 Nov 2021
    Recently a colleague, Nathan, reflecting on CockroachDB, remarked (paraphrased from memory) that the key data structure is the interval btree. The story of Nathan’s addition of the first interval btree to cockroach and the power of copy-on-write data structures is worthy of its own blog post for another day. It’s Nathan’s hand-specialization of that data structure that provided the basis (and tests) for the generalization I’ll be presenting here. The reason for this specialization was as much for the performance wins of avoiding excessive allocations, pointer chasing, and cost of type assertions when using interface boxing.
  • Stacked changes: how FB and Google engineers stay unblocked and ship faster
    12 projects | | 17 Nov 2021
    I'm surprised Reviewable[0] hasn't come up in this discussion. It does a great job of allowing stacked code reviews and even handles rebases nicely; the reviewer sees the diff between commit #1 and commit #1' (prime = after rebase).

    CockroachDB[1] has been using it since very early in the project.



  • 1 project | | 6 Nov 2021
    And even if you did want to run your database on a bunch of untrusted machines, a blockchain, being a linked list, is not a particularly efficient implementation. Its size increases linearly with the number of operations, which, for any rapid-fire application such as banking, means you have a tremendously inefficient marginal computational and storage cost per operation. You’d be considerably better off running something like Cockroach, or FoundationDB, or more ‘out-there’ offerings like Hypercore.
  • CockroachDB Grants and Schemas explained
    1 project | | 28 Aug 2021
    And here:
  • Design to Duty: How we make architecture decisions at Adyen
    1 project | | 28 Jul 2021
    As you now know, we do not want to achieve this by restricting payments of some merchants to certain machines, as this would mean the machines are no longer linearly scalable. The information needs to be available locally, so we eventually decided on integrating Cockroach, a distributed database, with our PALs.
  • go startpack
    8 projects | | 15 Jul 2021
    CockroachDB (label: E-easy) The Scalable, Survivable, Strongly-Consistent SQL Database
  • The start of my journey learning Go. Any tips/suggestions would greatly appreciated!
    6 projects | | 29 Jun 2021
  • What is Cost-based Optimization?
    4 projects | | 2 Jun 2021
    In CockroachDB, the cost is an abstract 64-bit floating-point scalar value.
  • #30DaysofAppwrite : Appwrite’s building blocks
    3 projects | | 3 May 2021
    Appwrite uses MariaDB as the default database for project collections, documents, and all other metadata. Appwrite is agnostic to the database you use under the hood and support for more databases like Postgres, CockroachDB, MySQL and MongoDB is currently under active development! 😊
  • I am building a Serverless version of Redis - written in Rust
    7 projects | | 2 May 2021
    For me, if you look back to when Redis has been designed - 11 years ago, it was before the Cloud was a thing. Since then, you have Cloud alternatives that are mostly proprietary. The idea of RedisLess is not competing against a product that is existing for 11 years but showing a new path of how we can build a system on top of an existing one. You can see RedisLess as experimentation. How to build Cloud-native databases by taking advantage of existing solutions? TiDB, Yugabyte, CockroachDB are great examples of being MySQL wire protocol compatible and providing a Cloud way of managing data.


Posts with mentions or reviews of RethinkDB. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-10-18.
  • What is $(uc $1) trying to achieve
    1 project | | 17 Nov 2021
    Is this some custom expression or command from the project, or is this some decrepitated function? Its being called in the configure script on the project root...
  • Backend Developer Learning Path 2021
    12 projects | | 18 Oct 2021
  • Device syncing options
    2 projects | | 25 Sep 2021 might be a possibility, it would still require a separate docker (or bundling with the audioserve docker) but looks less complicated than Supabase.
  • How to test your Ansible playbook with Vagrant
    3 projects | | 20 Sep 2021
    First off, what are we actually going to provision? We will be provisioning a 3 server cluster of a database server, RethinkDB You probably didn't heard from it before, and you can forget about it after reading this.
  • Rethinkdb Replacing V8 with QuickJS
    1 project | | 15 Aug 2021
  • PostgreSQL vs MySQL vs MongoDB for real time websites?
    2 projects | | 20 Jul 2021
    My aformentioned RethinkDB might be what you may want to take a look at.
  • Batch importing 6.8k entries in go
    2 projects | | 15 Jul 2021
    I've recently decided to import 6.8k entries of crypto currencies into a database - namely Rethink.
  • Servo Engine Contributions this year – Don't let it die
    10 projects | | 1 Jul 2021
    Continuing an open source project that used to be sponsored (paid developers) as a non-sponsored project is always very hard.

    The code base, project structure, automated tests, etc. is all sized for a certain number of developers. When 90% of them are gone it'll be hard to keep up.

    Feels somewhat similar to the faith of RethinkDB, which was an awesome database in many regards, but it was difficult to keep the steam up after the sponsoring company shut down.

    One thing that may work, is if Servo tries to carve out a very narrow niche, much smaller than just "general browser", where they are unique and useful.

    Take embedding as an example. If Servo because a great choice for embedding (similar to WebViews or Electron), where there is usually a single set of CSS and JS that it's expected to run (basically a bundled app), the downsides of servo not supporting all Web APIs, or not handling all edge cases, is reduced. Basically, if it runs your code, that's enough.

    So it'll probably be "useful" (regardless of where you put the bar for useful) earlier in an embedding context, compared to it being useful as a general browser.

    Should it catch on as a tool for embedding, that would drive more usage and more contributions, which would be a beneficial circle.

    But this niche could also be something entirely different, of course, I'm not sure embedding is the one.

  • Backend Developer Cheatsheet
    3 projects | | 21 Mar 2021
    Its rethinkDB github repository reads last update to some 27 days ago.
    3 projects | | 21 Mar 2021
    RethinkDB open source project. showcase it working live project with announcement blog Announcing RethinkDB 2.4.1 dated August 13 2020

What are some alternatives?

When comparing cockroach and RethinkDB you can also consider the following projects:

tidb - TiDB is an open source distributed HTAP database compatible with the MySQL protocol

vitess - Vitess is a database clustering system for horizontal scaling of MySQL.

CouchDB - Seamless multi-master syncing database with an intuitive HTTP/JSON API, designed for reliability

Trino - Official repository of Trino, the distributed SQL query engine for big data, formerly known as PrestoSQL (

yugabyte-db - The high-performance distributed SQL database for global, internet-scale apps.

dgraph - Native GraphQL Database with graph backend

MongoDB - The MongoDB Database

InfluxDB - Scalable datastore for metrics, events, and real-time analytics

ArangoDB - 🥑 ArangoDB is a native multi-model database with flexible data models for documents, graphs, and key-values. Build high performance applications using a convenient SQL-like query language or JavaScript extensions.

rqlite - The lightweight, distributed relational database built on SQLite

go-memdb - Golang in-memory database built on immutable radix trees

Apache Cassandra - Mirror of Apache Cassandra