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
pip install -r requirements.txt
-
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>