https://github.com/jackyzha0/miniraft
🚣♀️ <1kloc, well-documented Raft consensus algorithm implementation
https://github.com/jackyzha0/miniraft
raft raft-consensus-algorithm rust
Last synced: 7 months ago
JSON representation
🚣♀️ <1kloc, well-documented Raft consensus algorithm implementation
- Host: GitHub
- URL: https://github.com/jackyzha0/miniraft
- Owner: jackyzha0
- License: mit
- Created: 2022-05-03T00:27:24.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-03T18:48:12.000Z (over 2 years ago)
- Last Synced: 2025-03-18T13:46:45.946Z (7 months ago)
- Topics: raft, raft-consensus-algorithm, rust
- Language: Rust
- Homepage: https://jackyzha0.github.io/miniraft/miniraft/
- Size: 1.23 MB
- Stars: 55
- Watchers: 3
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# miniraft
### A <1kloc, well-documented Raft consensus algorithm implementationThis crate is a minimal implementation of the Raft consensus protocol with a focus on readability/understandability.
All logic related to the Raft algorithm can be found under `src`. Main files of note are
`src/server.rs` which contains the implementation for a single Raft node and `src/log.rs` which
contains the implementation for an event log which is the basis for the replicated log at the core
of Raft.This project was created as an exercise in implementing and learning about distributed systems. **Do NOT use this in production.**
- [Crate Documentation](https://jzhao.xyz/miniraft/miniraft)
- [Specification](https://raft.github.io/raft.pdf)