---
title: "Consensus and Why Agreement Is Hard"
description: "Several machines have to agree on one value even though some may fail and messages may be delayed. A majority quorum plus a leader gets there in practice, and the theory says no deterministic protocol"
canonical: https://lightmysky.com/learn/computing/consensus-and-why-agreement-is-hard-mt_cF-JiM_xRz
source: https://lightmysky.com/learn/computing/consensus-and-why-agreement-is-hard-mt_cF-JiM_xRz.md
retrieved: 2026-11-12
---

> **Agent view.** This is the Markdown twin of the page, for tools and assistants.
> When to use this site, and the call that answers each job: https://lightmysky.com/agent-instructions.md
> API description (OpenAPI 3.1): https://lightmysky.com/openapi.json · Authentication: https://lightmysky.com/auth.md
> Pricing: https://lightmysky.com/pricing.md · Catalog: https://lightmysky.com/llms.txt · Full catalog: https://lightmysky.com/llms-full.txt
> Every machine-readable file on this domain: https://lightmysky.com/.well-known/ai-catalog.json
> Ask for Markdown with `Accept: text/markdown`, a `.md` address, or `?mode=agent`.

# Consensus and Why Agreement Is Hard

Several machines have to agree on one value even though some may fail and messages may be delayed. A majority quorum plus a leader gets there in practice, and the theory says no deterministic protocol can guarantee both safety and progress when delays have no bound and a node may crash.

Subject: Computing · Area: Networks & Security · Ages 20 to 21
Page: https://lightmysky.com/learn/computing/consensus-and-why-agreement-is-hard-mt_cF-JiM_xRz

## Ready when they can

- Explain why a majority quorum makes two conflicting decisions impossible
- Follow a leader election and say what happens if the old leader returns
- State what the impossibility result rules out and what it leaves available

## Lesson: How five machines say yes together

You already know copies can disagree and silence hides crashes. Consensus asks several machines to agree on one value even though some may fail and messages may be late. A majority means more than half. Two groups of a and b nodes drawn from n nodes share at least a + b - n of them. Two majorities of 5 nodes are groups of 3, and 3 + 3 - 5 = 1, so they always share a node.

**Example.** Five nodes must pick one leader. Three vote for Ana and two for Ben, so Ana wins a majority. No rival group of three can vote for Ben without including someone who already voted for Ana, and nobody votes twice. Two conflicting decisions are impossible.

In practice a leader coordinates: it is elected, gathers votes, and announces the decision. Each election starts a new, higher term number. If the old leader returns after a failure, it sees the higher term, so the newer term wins and the old leader steps down instead of ruling beside it.

Theory adds one limit. When message delays have no bound and even one node may crash, no deterministic protocol can guarantee both safety and progress. That rules out a perfect protocol. It leaves practical ones that always stay safe and usually finish.

**Recap.** Majorities overlap so conflicts are impossible, a leader coordinates, and unbounded delay rules out perfection but not practice.

*Original instructional content authored for os-taxonomy.*

## Practice

8 questions on this page, each with its working shown.

## Needs first

- [Failure Models and Replication](https://lightmysky.com/learn/computing/failure-models-and-replication-mt_aYK210-NIS)

## Opens up

- [Consistency Models and the CAP Trade-off](https://lightmysky.com/learn/computing/consistency-models-and-the-cap-trade-off-mt_j6qtpYPHsr)
- [Impossibility Under Asynchrony: What Consensus Cannot Promise](https://lightmysky.com/learn/computing/impossibility-under-asynchrony-what-consensus-cannot-promise-mt_le54TNOeiR)
