Semicolony ELI5 · comic

Consensus (Raft).

A group agreeing on one version of the story, even when some members go quiet.

  1. No, MY version is right!
    mine! no, mine! mine!
    1

    Several machines keep copies of the same data. Left to talk over each other, the copies would drift apart.

  2. You take the chair.
    2

    So they vote one of themselves in as leader — the chair everyone now follows.

  3. Proposing: set x = 5.
    leader
    3

    Every change goes through the leader, who writes it down in order and proposes it to the rest.

  4. Three of five agree — committed.
    3 of 5 — committed
    4

    It’s only locked in once more than half the machines have stored it. A majority makes it official.

  5. they always share one
    5

    Why majority? Any two majorities share at least one machine, and it refuses to back two conflicting stories.

  6. Chair’s gone quiet — new vote.
    quiet new chair, no data lost
    6

    If the leader goes quiet, the survivors notice and elect a new one. A brief pause, but no data lost.

A committee picks one chair, who proposes; nothing is official until a majority agrees.
Semicolony semicolony.dev/eli5/consensus/comic
← All ELI5 explainers