What are the fault tolderant consesnsuses?
Properties of consensus protocols?
What are the roles in Paxos?
What are the phases of Paxos?
Voting: Preparation, Promise
Replication: Accept, Accepted
What is the Preparation phase in Paxos?
A proposer selects a proposal number n and sends a “prepare” request to acceptors
What is the Promise phase in Paxos?
What is the Accept phase in Paxos?
If the proposer received a response from the majority of acceptors, it sends an accept request for a proposal numbered n, the highest numbered proposal among the responses
What is the Accepted phase in Paxos?
If an acceptor received an accept request for proposal numbered n, it accepts the proposal unless it has already reponded to a prepare request having a number greater or equal than the proposal number.
What is the main idea behind Raft?
It separated leader election and log replication states. When crashes are detected, choose new leader. The leader accepts commands from clients, and appends to its log. Then, it replicates its log to other servers.
What are the roles in Raft?
How does Log Replication work in Raft
What is the main difference between the purpose of Paxos (+Raft) and Byzantine
Paxos and Raft assume the messages are valid and true (aka there are no malicious parties)