openskills.info
Course Preview

Distributed Consensus

Distributed consensus is the problem of getting multiple nodes in a network to agree on a value despite failures and message delays. Algorithms like Paxos and Raft solve this to enable replicated state machines, leader election, and consistent configuration in distributed systems.

itDistributed systems, messaging, and integration

Distributed Consensus

Distributed consensus lets separate processes choose one durable result even when messages are delayed and some processes fail. It is the coordination core behind replicated state machines, metadata services, leader election, and strongly consistent storage.

The hard part is not collecting votes on a healthy network. The hard part is preserving one decision when failures hide which processes are alive and which messages will arrive later.

The problem consensus solves

Imagine three replicas that maintain the same key-value store. A client asks to set mode to safe. Every replica must apply that command in the same log position. If another replica applies mode to fast in that position, the copies no longer represent one service.

A consensus protocol controls which value or log entry becomes chosen. A useful specification separates three goals:

  • Agreement: correct participants do not decide different values.
  • Validity: the decided value satisfies the protocol's proposal rules.
  • Termination: correct participants eventually decide under the stated timing and failure assumptions.

Agreement and validity are safety properties. A safety violation produces a wrong result. Termination is a liveness property. A liveness failure leaves the system waiting.

This distinction explains why a minority partition usually stops accepting writes. Refusing work hurts availability, but inventing a second committed history would break safety.

From one decision to a replicated service

Continue the course

This section is part of the paid course.

See pricing to subscribe, or log in if you already have access.

Where this skill leads

Relevant careers

See how this topic contributes to broader role-level skill maps.

Sources