Open source Java implementation for Raft consensus protocol.

Clone this repo:
  1. 5db7830 RATIS-2521. LifeCycle.startAndTransition(..) may cause illegal transition: CLOSING -> EXCEPTION. (#1452) by Tsz-Wo Nicholas Sze · 15 hours ago master
  2. d05c1b4 RATIS-2519. Bump actions/cache to 5.0.5 (#1435) by dependabot[bot] · 4 days ago
  3. 9fc08a8 RATIS-2517. Bump actions/upload-artifact to 7.0.1 (#1430) by dependabot[bot] · 4 days ago
  4. 54e1e1a RATIS-2515. Bump common-custom-user-data-maven-extension to 2.2.0 (#1442) by dependabot[bot] · 4 days ago
  5. 58e372a RATIS-2513. Bump bouncycastle.version from 1.83 to 1.84 (#1437) by dependabot[bot] · 4 days ago

Apache Ratis

Apache Ratis is a Java library that implements the Raft protocol [1], where an extended version of the Raft paper is available at https://raft.github.io/raft.pdf. The paper introduces Raft and states its motivations in following words:

Raft is a consensus algorithm for managing a replicated log. It produces a result equivalent to (multi-)Paxos, and it is as efficient as Paxos, but its structure is different from Paxos; this makes Raft more understandable than Paxos and also provides a better foundation for building practical systems.

Ratis aims to make Raft available as a java library that can be used by any system that needs to use a replicated log. It provides pluggability for state machine implementations to manage replicated states. It also provides pluggability for Raft log, rpc implementations and metric implementations to make it easy for integration with other projects. Another important goal is to support high throughput data ingest so that it can be used for more general data replication use cases.

Reference

  1. Diego Ongaro and John Ousterhout, In Search of an Understandable Consensus Algorithm, 2014 USENIX Annual Technical Conference (USENIX ATC 14) (Philadelphia, PA), USENIX Association, 2014, pp. 305-319.