Cloud computing enables us to access anything, anytime, anywhere. Say you went to your best friend’s birthday party and you take few pictures and videos. You like those pictures so much that you can’t get enough of looking at them. So you upload those pictures on websites like Facebook or Google drive, Instagram etc. to access them anytime you want. Guess what!!? You are cloud computing now. You don’t have to worry about the pictures getting deleted from your computer as they exist on cloud computers. These cloud computer storage facilities are called data centers. These data centers may be anywhere in the world but you can’t certainly know where they are and you need not worry anyway. These data centers are very powerful and they …show more content…
At the beginning all the nodes are followers. Then any of the nodes declares itself/themselves as a candidate. They request for a vote to followers. If all followers or majority of the followers vote for a candidate, it is elected as the Leader. Then Leader sends log entries to the rest of the nodes. This election process continues till a candidate is elected clearly.
In Log replication, a new log entry is added to the leader. At the next heartbeat, log entry is replicated to followers. When majority of the followers write log entry to disk, it is committed.
Leader then notifies committed log entries to all followers at the next heartbeat.
This way consensus is achieved through Raft.
b) According to me Raft gives much practical solution than Paxos. Paxos is theoretical achievement but not necessarily suited to build practical distributed systems. Log management is simplified in Raft while Paxos do not care about log replication. Paxos algorithm does not guarantee the progress but Raft in fact is more promising when it comes to progress. Though raft protocol is complex but it is prescriptive about the timeouts in electing a