liveBook · Manning

Chapter 8: Replication

What you will learn in chapter 8 of Think Distributed Systems

The chapter introduces redundancy as a way to preserve durable promises when components can fail.

After this chapter you will be able to

What it builds on

Section by section

Introduction

The chapter introduces redundancy as a way to preserve durable promises when components can fail.

Key terms: durability, committed transaction, ACID guarantees, theoretical system model, practical system model, Crash-Stop, Crash-Recovery, single point of failure, redundancy

8.1 Redundancy

The section defines redundancy as duplication plus coordination, then uses a replicated logic gate to show how it improves reliability while explaining its less straightforward effect on scalability.

Key terms: redundancy, duplication, coordination, replication, static redundancy, dynamic redundancy, logic gate, majority gate, majority vote, single point of failure

8.2 Thinking about replication and consistency

The section uses a library’s copies and editions of one book to show why replication and consistency depend on how we define an item and decide which copies count as equivalent.

Key terms: logical item, physical item, replication, edition, identity, equivalence, oneness, sameness

8.3 Replication

This section defines replication and explains how replication transparency balances the illusion of one object against consistency, availability, and latency.

Key terms: replication, logical object, physical objects, replicas, replication transparency, consistency, availability, latency

8.4 The mechanics of replication

This section introduces why replicating changing state is harder than replicating static or stateless components, and uses a counter to explain monotonicity.

Key terms: stateless components, stateful components, load-balance, key-value store, partitioning, propagate, monotonicity, increment, reset

8.4.1 System model

This section sets out the component, network, and failure assumptions used to reason about replication and network partitions.

Key terms: concurrent components, messages, point-to-point communication links, network partitions, partially synchronous, Crash-Stop failure, Omission failure, Crash-Recovery failure, unreliable network, network partition

8.4.2 Replication lag

This section explains why replicas inevitably lag behind changes, why that lag matters, and how failures can add to it.

Key terms: replication lag, inherent replication lag, replication transparency, imposed replication lag, network partitions, component failures

8.4.3 Synchronous vs. asynchronous replication

This section contrasts when operations complete under synchronous and asynchronous replication and explains a hybrid approach that waits for a quorum.

Key terms: synchronous replication, asynchronous replication, acknowledgments, foreground, background, immediate consistency, latency, availability, hybrid strategy, quorum

8.4.4 State-based vs. log-based replication

This section contrasts replicating a system’s current state with replicating the operations that produce it, under a deterministic state-machine assumption.

Key terms: state-based replication, log-based replication, current state, sequence of operations, deterministic state machine, start state, same operations, same order

8.4.5 Single-leader, multileader, and leaderless systems

This section compares replication configurations by who can accept operations, the conflicts they create, and how replication lag affects reads from followers.

Key terms: single-leader, multileader, leaderless, leader, follower, single point of failure, conflict resolution, last write wins, conflict-free replicated data types (CRDTs), replication lag

8.5 Summary

This summary connects redundancy and replication to reliability, then recaps the consistency tradeoffs and two ways to propagate replicas.

Where this is used later

Concepts explained in this chapter

← Chapter 7: Partitioning Chapter 9: Consistency →

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.