Embeddable Java Raft

Java Raft for metadata and coordination.

Embed a CP core inside your Java service when metadata, coordination, or lock state must stay strongly consistent.

  • Embeddable library, not a turnkey data platform
  • You keep control over transport, persistence, and failure behavior
Fastest path to first signal

Quick Start

Run one local test to see leader election, quorum, and commit behavior from the repository root.

Command Gradle test target
./gradlew :microraft-tutorial:test \
  --tests io.microraft.tutorial.OperationCommitTest
Java 11 build target 3-node local tutorial
Quorum + commit flow

Start here

Use this order if you are seeing MicroRaft for the first time.

What you can build

These are the clearest fits for an embeddable Java Raft core.

Use MicroRaft when

  • you need a CP core inside a Java service
  • you want to own transport and persistence
  • you care about explicit failure semantics

Choose your next read

Move from fit to rollout only when you need that level of detail.