A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Total Order Broadcast and Strong Consistency

Research Depth 97 in the knowledge graph ☐ I know this ☆ Set as goal
13topics build on this
366prerequisites beneath it
See this on the map →
Happened-Before Relation and Causal OrderingThe Consensus Problem→→Sequential Consistency
broadcast ordering consensus replication

Core Idea

Total order broadcast guarantees all processes deliver messages in the same order, which is stronger than causal order (preserving causality is not enough if concurrent messages can be delivered in different orders). It is equivalent to consensus and is the basis for state machine replication.

How It's Best Learned

Compare scenarios: causal delivery allows reordering of concurrent messages, total order does not. Implement a simple total order broadcast using a coordinator that assigns sequence numbers, then note the bottleneck and why consensus is needed for robustness.

Common Misconceptions

Explainer

You already understand the happened-before relation and how it defines a partial order on events: if event A causally precedes event B, every node must see A before B. But what about concurrent events — those with no causal relationship? Causal broadcast lets different nodes deliver concurrent messages in different orders. For many applications this is fine, but consider a replicated bank account where two concurrent operations each deduct from the same balance. If node 1 processes deduction A then B, and node 2 processes B then A, they might diverge — one allows both and the other rejects the second. Total order broadcast eliminates this problem by guaranteeing that all nodes deliver all messages in exactly the same sequence.

The formal definition has two properties: total order (if any two correct processes both deliver messages m1 and m2, they deliver them in the same order) and reliability (if a correct process delivers a message, all correct processes eventually deliver it). These two properties together are surprisingly powerful. If every node starts in the same state and applies the same sequence of operations, they will end in the same state — this is exactly the state machine replication principle that total order broadcast enables.

The simplest implementation uses a single coordinator node that assigns sequence numbers to all messages. Every node sends its messages to the coordinator, which stamps them with increasing numbers and broadcasts them. Nodes deliver messages in sequence number order. This works, but the coordinator is a bottleneck and a single point of failure. If the coordinator crashes, the system stalls until a new one is elected — and electing a new coordinator without losing or reordering messages is itself a consensus problem.

This reveals the deep equivalence: total order broadcast and consensus are computationally equivalent. Given a consensus algorithm, you can build total order broadcast (use consensus to agree on each next message in the sequence). Given total order broadcast, you can solve consensus (broadcast your proposed value; the first one delivered wins). This equivalence means that total order broadcast inherits the impossibility results and performance costs of consensus — it cannot be implemented in a purely asynchronous system with crash failures (FLP impossibility), and practical implementations require either timing assumptions or a leader to make progress. Understanding this equivalence clarifies why strong consistency in distributed systems is fundamentally expensive: it requires solving consensus, whether explicitly or through an equivalent mechanism like total order broadcast.

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → The Distributive Property → Variables and Expressions Review → Introduction to Polynomials → Adding and Subtracting Polynomials → Multiplying Polynomials → Factorial → Permutations → Combinations → Counting Principles: Addition and Multiplication Rules → Introduction to Graph Theory → Propositional Logic Foundations → Logical Equivalences → Boolean Algebra → Boolean Type and Truth Values → Comparison Operators and Boolean Tests → Logical Operators and Boolean Algebra → Boolean Algebra and Fundamental Laws → Logic Gates Fundamentals → Implementing Boolean Functions with Gates → Karnaugh Map Simplification → Combinational Circuit Design → Flip-Flops and Latches → Binary Counters: Design and Analysis → Binary Arithmetic → Fixed-Point Number Representation → Two's Complement Representation → Overflow and Underflow Detection → Binary Adders: Half-Adders and Full-Adders → Full Adder and Carry Propagation → Carry Lookahead Adder Design → Half Adder Circuit Design → Multiplication Circuit Design → Sequential Circuit Design → Registers and Register Files → Instruction Set Architecture (ISA) → Kernel Architecture and OS Structure → System Calls and User/Kernel Mode → Processes and the Process Control Block → Logical Clocks and Event Ordering → Vector Clocks and Capturing Causality → Happened-Before Relation and Causal Ordering → Total Order Broadcast and Strong Consistency

Longest path: 98 steps · 366 total prerequisite topics

Prerequisites (2)

Leads To (1)