Paxos vs Raft: Have we reached consensus on distributed consensus?

04/10/2020
by   Heidi Howard, et al.
0

Distributed consensus is a fundamental primitive for constructing fault-tolerant, strongly-consistent distributed systems. Though many distributed consensus algorithms have been proposed, just two dominate production systems: Paxos, the traditional, famously subtle, algorithm; and Raft, a more recent algorithm positioned as a more understandable alternative to Paxos. In this paper, we consider the question of which algorithm, Paxos or Raft, is the better solution to distributed consensus? We analyse both to determine exactly how they differ by describing a simplified Paxos algorithm using Raft's terminology and pragmatic abstractions. We find that both Paxos and Raft take a very similar approach to distributed consensus, differing only in their approach to leader election. Most notably, Raft only allows servers with up-to-date logs to become leaders, whereas Paxos allows any server to be leader provided it then updates its log to ensure it is up-to-date. Raft's approach is surprisingly efficient given its simplicity as, unlike Paxos, it does not require log entries to be exchanged during leader election. We surmise that much of the understandability of Raft comes from the paper's clear presentation rather than being fundamental to the underlying algorithm being presented.

READ FULL TEXT

page 7

page 8

research
02/18/2019

A Generalised Solution to Distributed Consensus

Distributed consensus, the ability to reach agreement in the face of fai...
research
01/10/2020

RMWPaxos: Fault-Tolerant In-Place Consensus Sequences

Building consensus sequences based on distributed, fault-tolerant consen...
research
08/31/2020

Lecture Notes on Leader-based Sequence Paxos – An Understandable Sequence Consensus Algorithm

Agreement among a set of processes and in the presence of partial failur...
research
06/09/2022

Discussion of Quantum Consensus Algorithms

Leader election is a crucial process in many areas such as cloud computi...
research
02/18/2022

ESCAPE to Precaution against Leader Failures

Leader-based consensus protocols must undergo a view-change phase to ele...
research
08/06/2020

Fast Flexible Paxos: Relaxing Quorum Intersection for Fast Paxos

Paxos, the de facto standard approach to solving distributed consensus, ...
research
06/16/2021

Velos: One-sided Paxos for RDMA applications

Modern data centers are becoming increasingly equipped with RDMA-capable...

Please sign up or login with your details

Forgot password? Click here to reset