GithubHelp home page GithubHelp logo

mingderwang / raftex Goto Github PK

View Code? Open in Web Editor NEW

This project forked from my-flow/raftex

0.0 3.0 0.0 341 KB

An implementation of the Raft Consensus Algorithm in Elixir/Erlang

Home Page: http://raftex.herokuapp.com

License: MIT License

Elixir 73.84% CSS 2.76% HTML 23.39%

raftex's Introduction

Raftex

An implementation of the Raft Consensus Algorithm in Elixir/Erlang using distributed finite state machines (gen_fsm).

Build Status Coverage Status

What is Consensus / what is Raft?

From the official website:

Consensus is a fundamental problem in fault-tolerant distributed systems. Consensus involves multiple servers agreeing on values. (โ€ฆ) Raft is a consensus algorithm that is designed to be easy to understand. It's equivalent to Paxos in fault-tolerance and performance. The difference is that it's decomposed into relatively independent subproblems, and it cleanly addresses all major pieces needed for practical systems.

Installation

  1. Clone the repository with git clone [email protected]:my-flow/raftex.git.
  2. Install the required dependencies with mix deps.get.

Watch simulation in a browser

  1. Start web server with mix phoenix.start
  2. Open a web browser and visit URL http://localhost:4000

Watch simulation in a terminal

  1. Start Elixir's interactive shell with iex -S mix.
  2. Run a simulation with 5 distributed nodes: iex(1)> Raftex.run

Copyright & License

Copyright (c) 2014-2015 Florian J. Breunig

Licensed under MIT, see LICENSE file.

raftex's People

Contributors

lowks avatar my-flow avatar

Watchers

 avatar  avatar  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.