Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Rust
  3. Redb

Redb

Apache-2.0Rustv4.1.0

An embedded key-value database in pure Rust with ACID transactions and high performance.

Visit WebsiteGitHubGitHub
4.4k stars208 forks0 contributors

What is Redb?

Redb is an embedded key-value database written in pure Rust, designed for simplicity, portability, and high performance. It provides ACID compliance and stores data in copy-on-write B-trees for reliability and efficiency, offering a stable file format with minimal dependencies.

Target Audience

Rust developers needing a lightweight, reliable embedded database for applications like caching, session storage, or local data persistence, particularly those prioritizing ACID transactions and crash safety.

Value Proposition

Developers choose redb for its combination of ACID compliance, zero-copy API for efficient data access, and crash-safe design, all in a pure Rust implementation with performance competitive to established databases like LMDB and RocksDB.

Overview

An embedded key-value database in pure Rust

Use Cases

Best For

  • Embedded applications requiring ACID-compliant transactions for data integrity.
  • Rust projects needing a simple, portable key-value store with minimal dependencies.
  • Scenarios demanding crash-safe storage by default to prevent data loss.
  • High-concurrency environments leveraging MVCC for non-blocking reads and writes.
  • Applications benefiting from transaction savepoints and rollbacks for error handling.
  • Use cases where a zero-copy, thread-safe API similar to BTreeMap is advantageous for performance.

Not Ideal For

  • Applications requiring complex relational queries or SQL support
  • High-volume batch write scenarios where RocksDB or fjall offer better performance
  • Distributed systems needing horizontal scalability beyond a single node

Pros & Cons

Pros

Zero-Copy API Efficiency

Offers a thread-safe, BTreeMap-based interface that enables efficient data access without unnecessary copying, as highlighted in the zero-copy feature description.

Full ACID Compliance

Provides fully ACID-compliant transactions with MVCC support, ensuring data integrity for concurrent readers and writers without blocking.

Default Crash Safety

Designed to be crash-safe by default, preventing data loss on unexpected failures, which is a core feature emphasized in the README.

Competitive Performance

Benchmarks show redb performs similarly to top embedded stores like lmdb and rocksdb, with strengths in individual writes as detailed in the performance table.

Cons

Benchmark Performance Gaps

In operations like bulk load and random reads, redb is slower than lmdb, as shown in benchmarks, indicating areas where it may not be optimal.

Development Setup Complexity

Running tests and benchmarks requires extra dependencies like cargo-deny and libclang-dev, which complicates setup compared to simpler embedded databases.

Limited Maturity and Ecosystem

As a newer project, redb has a smaller community and fewer third-party tools than established alternatives like RocksDB, potentially affecting long-term support.

Frequently Asked Questions

Quick Stats

Stars4,448
Forks208
Contributors0
Open Issues8
Last commit1 day ago
CreatedSince 2018

Tags

#database#no-sql#storage-engine#mvcc#key-value-store#embedded-database#rust#acid-transactions

Built With

R
Rust

Links & Resources

Website

Included in

Rust56.6k
Auto-fetched 1 day ago

Related Projects

SurrealDBSurrealDB

A scalable, distributed, collaborative, document-graph database, for the realtime web

Stars31,925
Forks1,252
Last commit2 days ago
QdrantQdrant

Qdrant - High-performance, massive-scale Vector Database and Vector Search Engine for the next generation of AI. Also available in the cloud https://cloud.qdrant.io/

Stars30,578
Forks2,195
Last commit2 days ago
RustFSRustFS

🚀2.3x faster than MinIO for 4KB object payloads. RustFS is an open-source, S3-compatible high-performance object storage system supporting migration and coexistence with other S3-compatible platforms such as MinIO and Ceph.

Stars26,314
Forks1,127
Last commit1 day ago
NeonNeon

Neon: Serverless Postgres. We separated storage and compute to offer autoscaling, code-like database branching, and scale to zero.

Stars21,593
Forks935
Last commit1 month ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub