Consensus

Consensus is the process by which distributed nodes agree on a value or sequence of decisions despite failures.

Intuition

Consensus gives a cluster a shared answer even when machines crash or messages are delayed.

Technical definition

Consensus protocols ensure agreement, validity, and termination properties under a defined failure model.

Example

A replicated log uses consensus so all nodes apply database writes in the same order.

Common misunderstandings

  • Consensus is expensive compared with local decisions.
  • The guarantees depend on the failure model.

Need this inside a product?

The studio builds the systems these terms describe. Tell us what you are working on.