What is the best key-value store for Rust 2021

This page summarizes the projects mentioned and recommended in the original post on /r/rust

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • nebari

    A pure Rust database implementation using an append-only B-Tree file format.

  • I have, and there's a set of microbenchmarks in the repository. There are two links to reports on that page -- one that's executed on GitHub Actions, which can have quite widely varying performance, and one that's executed on a "dedicated" VPS instance from Scaleway -- exact specs are on that page. I've kicked off another run on that VPS, since it hasn't been run since October. It takes a while to run, so if it still says October, try hitting refresh a little later.

  • bonsaidb

    A developer-friendly document database that grows with you, written in Rust

  • BonsaiDb: An offline or networked database which offers a key-value store in addition to ACID-compliant document storage. Requires using tokio.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • PickleDB

    PickleDB-rs is a lightweight and simple key-value store. It is a Rust version for Python's PickleDB

  • I would think one that is based on Serde, like PickleDB, could be a good choice.

  • Redis

    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.

  • If you need distributed access then redis

  • transmog

    Utilities for serializing with multiple formats of data in Rust.

  • I have two solutions I've been working on and thinking about. The first is a way to manage multiple formats of data stored in the database, by offering a way to transition old versions to the current version. A possible benefit of this approach is that it doesn't require rewriting your data at the time of schema migration. Some users may not want that extra cost (if there is any), and would prefer a way to update the data.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts