Computer Science

Consensus, explained

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

Part of the Semantic Notion technical glossary.

Short Definition

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.

Start here

Need the broader concept map?

Return to the glossary index to move from this definition into adjacent AI, ML, mathematics, and computer science terms.