sorock

Crates.iosorock
lib.rssorock
version0.12.0
created_at2024-10-01 07:56:28.102687+00
updated_at2025-12-10 07:38:26.861737+00
descriptionA Multi-Raft implementation in Rust
homepage
repositoryhttps://github.com/akiradeveloper/sorock
max_upload_size
id1392591
size176,966
Akira Hayakawa (akiradeveloper)

documentation

README

Sorock

Crates.io API doc mdBook Documentation CI codecov MIT licensed

A Multi-Raft implementation in Rust language.

Features

  • Supports Multi-Raft. Mutliple Raft processes can coexist in a single OS process so they can share resources efficiently.
    • Tested with 1000 shards per node.
    • Heartbeats in shards are batched to reduce the network overhead.
  • Based on Tonic and efficient gRPC streaming is exploited in log replication and snapshot.
  • Efficient backend implementation using redb.
    • Writes in shards are batched in one transaction.
  • Phi Accrual Failure Detector is used for leader failure detection.
    • The adaptive algorithm allows you to not choose a fixed timeout number before deployment and to deploy Raft node in even geo-distributed environment where the latency between nodes isn't identical.

Related Projects

  • phi-detector: Implementation of Phi Accrual Failure Detector in Rust.

Author

Name: Akira Hayakawa
Email: ruby.wktk@gmail.com

Commit count: 736

cargo fmt