Skip to content
Rishikesh01Public

About

Raft implementation

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

22 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

gaft

Raft Explantion

States of given node at any instant time

  1. Leader
  2. Candidate
  3. Follower

LeaderNode resposiblities

  • Talk with actual client
  • Sends heartBeats to followers every Xms to ensure that it's authority as leader is maintained
  • On client persistence request, send logs to majority of follower nodes so that it can mark it as commited

Follower resposiblities

  • Redirect client to leader if they try to communicate with them
  • Call for election when leader does not provides a heart beat within randomized timeout(not just heart beat but can be entries i.e basically some form of communcation)

About

Raft implementation

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages