raft-core
AlgorithmPure Raft — no I/O. Leader election, log replication, safety proofs.
Raft consensus
Pure Raft in Java 21 — leader election, log replication, and commit advancement. HUD below runs in real time.
Throughput
847ops/s
Replication lag
23ms
Topology
Selected
node-1
US East
Events
Architecture
raft-core stays free of sockets and disk. Transport and storage plug in at the edges.
Pure Raft — no I/O. Leader election, log replication, safety proofs.
Length-prefixed binary frames over TCP. One boss, one worker group per node.
depends on raft-core
Memory-mapped 64MB log segments. CRC32-C checksums. Snapshot install RPC.
depends on raft-core
Admin commands and stress tools for cluster operations.
depends on raft-core
Wire-level monkey tests with TestContainers.
depends on raft-transport, raft-storage
Quick start
# Clone and verify
$ git clone https://github.com/pdj555/raft-consensus.git
$ cd raft-consensus && mvn clean verify
# Fast unit pass
$ mvn test -DskipITs=trueProtocol
One leader per term. Safety from §5.4 — append-only, election safety, log matching.
States
Transitions · follower