The difference between pbft and raft

A team must have a boss and ordinary members. For the raft algorithm, the consensus process is: as long as the boss has not hung up, we (ordinary team members) will do what the boss says, and resolutely implement it. When will you be the boss again? Only when the boss dies can the boss be re-elected, otherwise the boss will be born and the boss will die.

For the pbft algorithm, the consensus process is: when the boss sends me an order, when I think there is a problem with the boss's order, I will refuse to execute it. Even if I think the boss's order is correct, I will ask other members of the team whether the boss's order is correct, and only when most people (2f+1) think that the boss's order is correct, I will go Excuting an order. When will the boss be re-elected? Of course, if the boss dies, re-election will be required. If most people think that the boss is incompetent or has problems, we will also re-elect the boss.

For the election of the leader, the essence of the raft algorithm is whoever is faster will be elected, while the pbft algorithm is to be the master node in turn according to the number.

Guess you like

Origin blog.csdn.net/u013240609/article/details/130088615