noraft

Minimal sans-I/O Raft for Rust with no dependencies

A no_std, sans-I/O Raft implementation: Node never touches the network or disk and emits Actions for the caller to run. Cluster creation, proposals, configuration changes and snapshots sit behind one small struct.

  • 0Dependencies

Trade-offs

  • Sans I/O. Any transport or storage layer fits, but the caller has to execute every Action the node emits.
  • The core algorithm only. The API surface stays minimal, and convenience features not described in the Raft paper are left to the crate user.

Q&A2

No I/O. It generates Actions such as SaveCurrentTerm, AppendLogEntries and SendMessage, and the caller executes them and feeds messages and election timeouts back in.

Reviews

Loading reviews

    More in Distributed systems

    See all 20 →
    • arbiterPostgreSQL job queue for Haskell, with no broker and no leader
    • RRQClosed-loop payment ledger on sharded Postgres with a Kafka outbox
    • RuvioRust key-value server that speaks RESP, with locks and queues as commands
    • EgresPostgres-compatible database in Zig for heavy, multi-tenant workloads
    • clinkC++ stream processing engine that stays correct when processes die
    • pg-statusSidecar that reports PostgreSQL master, replicas and replication lag

    More in Rust

    See all 146 →
    • PaganelData migration engine that verifies the destination down to the row
    • FeOxDBEmbedded key-value store in Rust with write-behind durability
    • AudioRouterVisual audio router for Windows 11: route, process and record on a canvas
    • ai-memoryPersistent memory for MCP clients in one Rust binary over SQLite
    • AntirionAI gateway in one Rust binary, with the admin console built in
    • jc-rsjc rewritten as one static binary that turns command output into JSON