lbadd
lbadd copied to clipboard
raft: replicate commands on state machine
Create a function that will run commands sent by leader on all follower nodes after they get committed msg from the leader.
If the leader commitIndex is greater than Node commitIndex run all the logs on the follower state machine and update node lastApplied
Additional context Add any other context or screenshots about the feature request here. To read more about functionality and logic according to raft , go through design doc in this project.
@SUMUKHA-PK the hook is there in the server, @Abby3017 please figure out (with @SUMUKHA-PK 's help) how to refactor this to use the hook.