Giter VIP home page Giter VIP logo

simpleraft's Introduction

simpleRaft

Build Status

What?

A implementation of Raft in pure Python.

Why?

After reading a few papers on the Raft algorithm I figured I would implement it and use it for projects of mine that require the consistency that Raft provides to ensure their correctness.

Details

This implementation tries to stay as pure Python as possible to ensure that as few dependencies are required to run this outside of the code in this repo. I am also striving to have it run on Python 2.6+ as well to make it as flexible as possible.

The system is designed in two parts. There are a system of state classes that define the functionality required for the specific states that a node can go through during the running of Raft, these include:

  • Follower
  • Candidate
  • Leader

Each one has their roles defined in their class files. Along with these state classes there are defined messages that will be used to keep the message format well defined and abstracted from the wire format as much as possible.

The final part is the communication layer. The current communication layer will use Gossiping using randomized subgroups at the moment, but it will be written in such a way so as to be easy to implement and plug in a different communicationl layer at a later time.

References:

simpleraft's People

Contributors

streed avatar kainswor avatar seocam avatar

Watchers

Makefile君 avatar James Cloos avatar

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.