Redis VS cockroach

Compare Redis vs cockroach and see what are their differences.


Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes, Streams, HyperLogLogs, Bitmaps. (by redis)


CockroachDB - the open source, cloud-native distributed SQL database. (by cockroachdb)
Our great sponsors
  • Scout APM - Less time debugging, more time building
  • OPS - Build and Run Open Source Unikernels
  • SonarQube - Static code analysis for 29 languages.
Redis cockroach
108 28
52,760 23,088
1.4% 2.4%
9.8 10.0
7 days ago 7 days ago
C Go
BSD 3-clause "New" or "Revised" License GNU General Public License v3.0 or later
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 Redis. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-01-16.
  • Running Redis in a Docker container
    2 projects | | 16 Jan 2022
    Redis stands for REmote DIctionary Server. It is an open source, fast NoSQL database written in ANSI C and optimized for speed. Redis is an in-memory database that means that all data in Redis is stored in RAM, delivering the fastest possible access times to the data for both read and write requests.
  • Who needs cash
    1 project | | 15 Jan 2022
    Here, have some cache
  • Deploy Redis as a Docker container [part 1]
    1 project | | 14 Jan 2022
    Redis is an in-memory key-value store which can save abstract data structures with high performance. The open-source software is typically used for database, messaging, and caching functions.
  • Cache Master data in Redis using Python
    2 projects | | 12 Jan 2022
    According to its GitHub repository, Redis (stands for REmote DIctionary Server) is an in-memory data structure store. It is a disk-persistent key-value database with support for multiple data structures such as strings, hashes, lists, sets, bitmaps, etc.
    2 projects | | 12 Jan 2022
    Redis offers highly performant and efficient read and write along with few operations mentioned in this article. There are lots more. For more information, you can visit the documentation.
  • What is the best key-value store for Rust 2021
    6 projects | | 11 Jan 2022
    If you need distributed access then redis
  • How to start a headless E2E e-commerce store in no time with Medusa 🛍️
    4 projects | | 10 Jan 2022
    Redis is another database commonly used for caching. You can download it from here.
  • Thoughts on refresh token/revoke all workflow
    1 project | | 7 Jan 2022
    import { ClientOpts, RedisClient } from "redis"; // TODO: When (if ever) redis supports expiration of hash entries we should remove this prefix and use a hash instead. (See const KEY_PREFIX = "SESSION_BLACKLIST:"; const redisOptions: ClientOpts = { host: process.env.REDIS_HOST, // password: process.env.REDIS_PASSWORD, port: (process.env.REDIS_PORT && parseInt(process.env.REDIS_PORT)) || 6379, }; class TokenBlacklist { private readonly client: RedisClient; constructor() { this.client = new RedisClient(redisOptions); } public add(sessionId: string, expiresIn: number): Promise { return new Promise((resolve, reject) => { this.client.setex( KEY_PREFIX + sessionId, expiresIn + (2 * 60 * 1000), // Add 2 minute buffer "", (error: Error | null) => { if (error) { return reject(error); } resolve(); } ); }); } public check(sessionId: string): Promise { return new Promise((resolve, reject) => { this.client.exists( KEY_PREFIX + sessionId, (error: Error | null, exists: number) => { if (error) { return reject(error); } return resolve(exists === 1); } ); }); } public close(): Promise { return new Promise((resolve, reject) => { this.client.quit((error: Error | null) => { if (error) { return reject(error); } return resolve(); }); }); } }
  • Help with databases
    1 project | | 7 Jan 2022
    If you're looking to save data like a hashmap, look into redis, although this is only an in-memory DB, if I remember correctly. You can try using it in combination with H2, which someone else already mentioned.
  • Improving performance with SQL aggregate functions
    4 projects | | 4 Jan 2022
    We developed the backend in Kotlin with the Spring Boot 2.5.3 framework and the Hibernate 5.4.32.Final ORM (Object Relational Mapping). We deployed it on an 8GB 4 CPU VPS through a Docker container managed by Dokku. The initial heap size was set to 2GB and limited to 7GB, while we allocated the remaining GB of RAM to a Redis-based caching system. We built the web application with performance in mind. Specifically, it's based on the multi-layered Spring Boot architecture described here and involves multi-thread processing. ​


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-12-28.
  • What is for you the project who represents the best the power of Golang ?
    10 projects | | 28 Dec 2021
    Cockroach DB is a great example, it’s a PostgreSQL compatible database made to be distributed:
  • Best "database" to deal with a large amount of simple data - Exact searches
    2 projects | | 18 Dec 2021
    But if you're looking for a highly scalable relational db then you can check YugaByteDB/CockroachDB (=both based upon PostGreSql) would also do the job well.
  • Looking to make a clone of a server in real time so if one fails the other takes over
    3 projects | | 15 Dec 2021
    No matter how you cut it, my guess is that the most difficult aspect will be syncing up your data. You could into whether something like CockroachDB works with Wireguard. That'd help you simplify a good bit.
  • Leaving MySQL
    7 projects | | 5 Dec 2021
    Uff... Let's go give a look at the licenses:

    So many licenses, including the Business Source License which is non-free license.

    Also there's this CockroachDB Community License (CCL), which I guess is a made-up license that's going to include some whatever terms.

    I might still accept this mix of licenses however I can't find the definition of "foundational features" -- what do I "lose" by using the OSS version instead of one of their managed offerings?

    From a quick overview, it's soft-no from me (in the sense that it probably wouldn't be my first choice).

    7 projects | | 5 Dec 2021
  • 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.

What are some alternatives?

When comparing Redis and cockroach 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.

RabbitMQ - Open source RabbitMQ: core server and tier 1 (built-in) plugins

LevelDB - LevelDB is a fast key-value storage library written at Google that provides an ordered mapping from string keys to string values.

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.

celery - Distributed Task Queue (development branch)

Riak - Riak is a decentralized datastore from Basho Technologies.

dgraph - Native GraphQL Database with graph backend

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

rqlite - The lightweight, distributed relational database built on SQLite

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