Skip to content

Asynchronous implementation of Raft Distributed Consensus

License

Notifications You must be signed in to change notification settings

baonguyen2604/raft-consensus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raft Distributed Consensus

Simple implementation of Raft Consensus Algorithm using Python for fault-tolerant distributed systems. Supports proper leader election and log replication.

Note:

  • Only supports Python 3
  • This implementation is specific to the bank ledger example. Feel free to modify the source code to fit your use

Requirements installation

pip install -r requirements.txt

Bank ledger example

  • Run 5 servers from bank_teller

    • ./run_server <server_port>
  • If python3 is not found, change the run_server.sh to use python instead

  • Run bank client connecting to a specific server

    • python client.py <server_port>

References

About

Asynchronous implementation of Raft Distributed Consensus

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published