RepositoryRust
DA

databendlabs/openraft

rust raft with improvements

2.1kstars
272forks
15issues
1views

Featured achievements

The project's latest awards

2
TINIX TRENDING·Topic: consensus

#2 Repository of the week

3
TINIX TRENDING·Topic: raft

#3 Repository of the week

2
TINIX TRENDING·Topic: raft

#2 Repository of the week

OpenRaft

Advanced Raft in 🦀 Rust using Tokio. Please ⭐ on GitHub!

Crates.io docs.rs DeepWiki guides Discord Chat
CI Coverage Status License Crates.io Crates.io

This project intends to improve raft as the next-generation consensus protocol for distributed data storage systems (SQL, NoSQL, KV, Streaming, Graph ... or maybe something more exotic).

Currently, openraft is the consensus engine of meta-service cluster in databend.

Whatever your style, we're here to support you. 🚀 Let's make something awesome together!

Status

  • The features are almost complete for building an application.
  • Performance: Supports 70,000 writes/sec for a single writer, and 5,600,000 writes/sec with batch writes. See: Performance
  • Unit test coverage stands at 92%.
  • The chaos test has not yet been completed, and further testing is needed to ensure the application's robustness and reliability.

API status

  • OpenRaft API is not stable yet. Before 1.0.0, an upgrade may contain incompatible changes. Check our change-log. A commit message starts with a keyword to indicate the modification type of the commit:

    • DataChange: on-disk data types changes, which may require manual upgrade.
    • Change: if it introduces incompatible changes.
    • Feature: if it introduces compatible non-breaking new features.
    • Fix: if it just fixes a bug.

Versions

Roadmap

Performance

The benchmark is focused on the OpenRaft framework itself and is run on a minimized store and network. This is NOT a real world application benchmark!!!

Single writes:

clientsput/s
40963,548,000
10243,006,000
2561,808,000
64912,000
133,000

Batch writes (4 entries per batch):

clientsput/s
40965,615,000

For benchmark detail, go to the ./benchmarks/minimal folder.

Features

  • Async and Event-Driven: Operates based on Raft events without reliance on periodic ticks, optimizing message batching for high throughput.
  • Extensible Storage and Networking: Customizable via RaftLogStorage, RaftStateMachine and RaftNetwork traits, allowing flexibility in choosing storage and network solutions.
  • Unified Raft API: Offers a single Raft type for creating and interacting with Raft tasks, with a straightforward API.
  • Cluster Formation: Provides strategies for initial cluster setup as detailed in the cluster formation guide.
  • Built-In Tracing Instrumentation: The codebase integrates tracing for logging and distributed tracing, with the option to set verbosity levels at compile time.

Functionality:

Who uses it

Contributing

Check out the CONTRIBUTING.md guide for more details on getting started with contributing to this project.

Contributors

Made with contributors-img.

License

OpenRaft is licensed under the terms of the MIT License or the Apache License 2.0, at your choosing.

Similar Projects

Discover other similar projects and AI models.

RepositoryGo
etcd-io/etcd

Distributed reliable key-value store for the most critical data of a distributed system

52.7k
Nov 24, 2026
RepositoryGo
rqlite/rqlite

The lightweight, fault-tolerant database built on SQLite. Designed to keep your data highly available with minimal effort.

18.0k
Nov 30, 2026
RepositoryRust
tikv/tikv

Distributed transactional key-value database, originally created to complement TiDB

17.0k
Nov 25, 2026
RepositoryRust
async-raft/async-raft

An implementation of the Raft distributed consensus protocol using the Tokio framework.

1.1k
Feb 12, 2023
RepositoryRust
andreev-io/little-raft

The lightest distributed consensus library. Run your own replicated state machine! ❤️

451
Mar 31, 2025
RepositoryGo
tendermint/tendermint

⟁ Tendermint Core (BFT Consensus) in Go

5.9k
Nov 15, 2026
RepositoryJava
sofastack/sofa-jraft

A production-grade java implementation of RAFT consensus algorithm.

3.8k
Nov 20, 2026
RepositoryC++
FISCO-BCOS/FISCO-BCOS

FISCO BCOS(发音为/ˈfɪskl bi:ˈkɒz/)是一个稳定、高效、安全的许可区块链平台,已被广泛应用于现实的行业应用。截至目前,已拥有5000多家企事业单位,400多个产业数字化标杆应用,涵盖文化版权、司法服务、政府服务、物联网、金融、智慧社区、房地产建设、社区治理、乡村振兴等领域。FISCO BCOS (pronounced /ˈfɪskl bi:ˈkɒz/) is a stable, efficient, and secure permissioned blockchain platform that has been widely used in real-world industry applications.

2.6k
Nov 26, 2026
RepositoryJava
apache/ratis

Open source Java implementation for Raft consensus protocol.

1.5k
Nov 26, 2026