Open source Java implementation for Raft consensus protocol.

Clone this repo:
  1. fb4968f RATIS-2131. Surround with [] only if hostName is a IPv6 string (#1125) by Mridul Muralidharan · 2 days ago master
  2. 7825b4f RATIS-1071. NettyClientRpc supports sendRequestAsync. Contributed by Rui Wang and Tsz-Wo Nicholas Sze. (#1122) by Tsz-Wo Nicholas Sze · 10 days ago
  3. 9bb6953 RATIS-2125. javadoc jars should not include non-doc items (#1123) by Doroszlai, Attila · 12 days ago
  4. d101678 RATIS-1840. Avoid including build timestamp in artifacts (#1114) by Doroszlai, Attila · 4 weeks ago
  5. 32745c3 RATIS-2116. Fix the issue where RaftServerImpl.appendEntries may be blocked indefinitely (#1116) by Haibo Sun · 4 weeks 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.