Git Product home page Git Product logo

simple-raft's Introduction

simple implementation of raft consensus algorithm


TODO

  • Leader election
  • Log replication

Branch

  • master: Leader election & Log replication
  • election:Leader election
  • replication:Log replication

build

go build -o simple-raft

run

go get go get github.com/mattn/goreman
goreman start

simple-raft's People

Contributors

chapin666 avatar eulerkochy avatar myrat92 avatar

Stargazers

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

Watchers

 avatar  avatar

simple-raft's Issues

不太清楚 heartbeat 校验 prevLogIndex 的意义

注释中说 leader 维护的 LogIndex 大于当前 Follower 的 LogIndex 代表当前 Follower 失联过,所以 Follower 要告知 Leader 它当前的最大索引,以便下次心跳 Leader 返回。

如果 Follower 失联,leader 收不到 heartbeat reply 是不会更新 nextIndex 的, 也就不会漏发 log entries

Project Future

Hello. Do you intend to keep updating and maintaining this project? I think it's very interesting and convenient for small projects. I doesn't have any updates really or more commits. I wish I could be maintaining the project, so I would like to talk if it's possible or if not interested, perhaps there's a way for collaboration?

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.