Paxos is a family of protocols for a network of unreliable processors to agree on a result.
Questions tagged [paxos]
132 questions
105
votes
2 answers
Differences between OT and CRDT
Can someone explain me simply the main differences between Operational Transform and CRDT?
As far as I understand, both are algorithms that permits data to converge without conflict on different nodes of a distributed system.
In which usecase would…

Sebastien Lorber
- 89,644
- 67
- 288
- 419
45
votes
2 answers
Paxos vs two phase commit
I am trying to understand the difference between paxos and two phase commit as means to reach consensus among multiple machines. Two phase commit and three phase commit is very easy to understand. It also seems that 3PC solves the failure problem…

Keeto
- 4,074
- 9
- 35
- 58
43
votes
5 answers
Whats the difference between Paxos and W+R>=N in Cassandra?
Dynamo-like databases (e.g. Cassandra) can enforce consistency by means of quorum, i.e. a number of synchronously written replicas (W) and a number of replicas to read (R) should be chosen in such a way that W+R>N where N is a replication factor. On…

user1128016
- 1,438
- 3
- 16
- 17
37
votes
7 answers
Conflict-free Replicated Data Types (CRDT) vs Paxos or Raft
When is it a good idea to use something like CRDT instead of paxos or raft?

Eric des Courtis
- 5,135
- 6
- 24
- 37
31
votes
8 answers
Contradiction in Lamport's Paxos made simple paper
Phase 2. (a) If the proposer receives a response to its prepare requests (numbered n) from a majority of acceptors, then it sends an accept request to each of those acceptors for a proposal numbered n with a value v, where v is the value of the…

lambda
- 585
- 6
- 10
28
votes
5 answers
When to use Paxos (real practical use cases)?
Could someone give me a list of real use cases of Paxos. That is real problems that require consensus as part of a bigger problem.
Is the following a use case of Paxos?
Suppose there are two clients playing poker against each other on a poker…

user782220
- 10,677
- 21
- 72
- 135
28
votes
3 answers
paxos vs raft for leader election
After reading paxos and raft paper, I have following confusion:
paxos paper only describe consensus on single log entry, which is equivalent the leader election part of the raft algorithm. What's the advantage of paxos's approach over the simple…

Oliver Young
- 578
- 1
- 4
- 12
19
votes
10 answers
What are the faster Paxos-related algorithms for consensus in distributed systems?
I've read Lamport's paper on Paxos. I've also heard that it isn't used much in practice, for reasons of performance. What algorithms are commonly used for consensus in distributed systems?

Rob Lachlan
- 14,289
- 5
- 49
- 99
15
votes
3 answers
Questions about Paxos implementation
I am implementing Paxos in a cluster simulator application, using the documentation available in Wikipedia. Unfortunately, it leaves several doors open to interpretation and does not provide much information on key implementation issues. It is…

Jérôme Verstrynge
- 57,710
- 92
- 283
- 453
14
votes
3 answers
Real world example of Paxos
Can someone give me a real-world example of how Paxos algorithm is used in a distributed database? I have read many papers on Paxos that explain the algorithm but none of them really explain with an actual example.
A simple example could be a…

sjg
- 141
- 1
- 3
13
votes
2 answers
Why is multi-paxos called multi-paxos?
Why multi-paxos is called multi-paxos? I can't see how it is "multi".

onfire
- 305
- 2
- 10
13
votes
2 answers
Why is Paxos leader election not done using Paxos?
The questions below are intended to be serious rather than frivolous. I lack experience in distributed systems, but I do understand how Basic Paxos works and why leader selection is useful. Unfortunately, my understanding is not deep enough to…

merlin2011
- 71,677
- 44
- 195
- 329
10
votes
4 answers
Using Paxos in dynamic environment
Paxos algorithm can tolerate up to F failures when using 2F + 1 processors. As far as I understand, this algorithm works only with fixed number of processors. Is it possible to use this algorithm in dynamic environment, where nodes can be added and…

Evgeny Lazin
- 9,193
- 6
- 47
- 83
9
votes
3 answers
Is operation in raft log entry supposed to be idempotent?
In raft, when a node restart, it try to redo all the log entries to catch up the state. But if node goes down again in recovery phase, node would do some op twice. These twice redo op will violate state machine if ops are not idempotent.
According…

smxxqjl
- 91
- 4
8
votes
4 answers
What to do if the leader fails in Multi-Paxos for master-slave systems?
Backgound:
In section 3, named Implementing a State Machine, of Lamport's paper Paxos Made Simple, Multi-Paxos is described. Multi-Paxos is used in Google Paxos Made Live. (Multi-Paxos is used in Apache ZooKeeper). In Multi-Paxos, gaps can…

hengxin
- 1,867
- 2
- 21
- 42