Git Product home page Git Product logo

java-raft's Introduction

java-raft

CircleCI Quality Gate Status

A Java implementation of the Raft consensus algorithm

motivation

I'm implementing the protocol in order to get a more in-depth understanding of it. Also as a challenge to make a readable implementation of the "understandable" consensus algorithm.

Status

The parts of the algorithm I have implemented (according to the thesis chapters) are:

Chapter Name Status
3.4 Leader election ✔️
3.5 Log replication ✔️
3.6.1 Election restriction ✔️
3.6.2 Committing entries from previous terms ✔️
3.7 Follower and candidate crashes ✔️
3.8 Persisted state and server restarts ✔️
3.10 Leadership transfer extension ✔️
4 Cluster membership changes ✔️
4.2.1 Catching up new servers ✔️
4.2.2 Removing the current leader
4.2.3 Disruptive servers
4.3 Arbitrary configuration changes using joint consensus
5 Log compaction ✔️
6.1 Finding the cluster
6.2 Routing requests to the leader ✔️
6.3 Implementing linearizable semantics ✔️
6.4 Processing read-only queries more efficiently

Dependencies

The only runtime dependency is log4j 2, the aim is to implement with minimal dependencies

java-raft's People

Contributors

nicktindall avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

java-raft's Issues

User manual

Hi,

Thanks for starting this awesome work. This will really help in using RAFT with Java server. I am curious to know how to use this? Or what's the best way to leverage this great library in custom servers which requires some state to be transferred and saved across the nodes? How to change/modify the state/message that needs to be persisted on nodes?

Could you please help me to understand this further based on the above queries or maybe we can work together to enhance this further or define all of the above?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.