Crates.io | async-raft |
lib.rs | async-raft |
version | 0.6.1 |
source | src |
created_at | 2020-08-05 16:16:27.575643 |
updated_at | 2021-05-19 04:06:15.162031 |
description | An async implementation of the Raft distributed consensus protocol. |
homepage | https://github.com/async-raft/async-raft |
repository | https://github.com/async-raft/async-raft |
max_upload_size | |
id | 273253 |
size | 267,303 |
Blazing fast Rust, a modern consensus protocol, and a reliable async runtime — this project intends to provide a consensus backbone for the next generation of distributed data storage systems (SQL, NoSQL, KV, Streaming, Graph ... or maybe something more exotic).
The guide is the best place to get started, followed by the docs for more in-depth details.
This crate differs from other Raft implementations in that:
tick
operation. Batching of messages during replication is still used whenever possible for maximum throughput.RaftStorage
& RaftNetwork
. This provides applications maximum flexibility in being able to choose their storage and networking mediums. See the storage & network chapters of the guide for more details.Raft
type, which is used to spawn the Raft async task, and to interact with that task. The API for this system is clear and concise. See the raft chapter in the guide.dynamic membership
chapter in the guide. With full support for leader stepdown, and non-voter syncing.This implementation strictly adheres to the Raft spec (pdf warning), and all data models use the same nomenclature found in the spec for better understandability. This implementation of Raft has integration tests covering all aspects of a Raft cluster's lifecycle including: cluster formation, dynamic membership changes, snapshotting, writing data to a live cluster and more.
If you are building an application using this Raft implementation, open an issue and let me know! I would love to add your project's name & logo to a users list in this project.
Check out the CONTRIBUTING.md guide for more details on getting started with contributing to this project.
async-raft is licensed under the terms of the MIT License or the Apache License 2.0, at your choosing.
NOTE: the appearance of the "section" symbols §
throughout this project are references to specific sections of the Raft spec.