Unit 1 of 14 · about 4 hours · explain

Leader-follower, multi-leader and leaderless replication

The Systems unit on replication, quorums and consensus vocabulary named the pieces. Here the new work is turning each topology into an operation path and finding exactly where writes can diverge.

You'll be able to

  • Trace a write and its acknowledgement through each of the three replication topologies.
  • Choose write authority, read routing and conflict handling for a disconnected client.
  • Explain why a coordinator in a leaderless store is not an ordering leader.

Covers

Leader-follower replicationMulti-leader replication vocabularyLeaderless replication vocabulary
1

Read

In this order, only the parts listed

0 of 1 done

  1. DDIA, 2nd edition: the three replication architecturesDDIA 2e - Chapter 6 Replication and Chapter 10 Consistency Sections

    Chapter 6, Replication: Single-Leader Replication, pp. 198 to 200; Multi-Leader Replication through Sync Engines and Local-First Software, pp. 215 to 222; Leaderless Replication, pp. 229 to 230

    Review the single-leader path from Systems briefly. Read the multi-leader topology and local-first discussion closely; stop before Dealing with Conflicting Writes.

2

Focus on

  • Separate write authority from network shape. Several shard leaders are not several leaders for the same key.
  • An asynchronously connected multi-leader store can acknowledge conflicting writes independently. It needs both dissemination and a conflict policy.
  • A leaderless coordinator gathers replica responses. That role alone does not impose a common write order.
  • Loop suppression and dependency ordering are different jobs. Deduplicating a forwarded update does not ensure that its prerequisite has arrived.
Common mistakes · 3
  • Calling all-to-all forwarding leaderless when each node independently orders and accepts local writes as a leader.
  • Assuming an extra replica improves write availability when the acknowledgement rule still waits for every replica.
  • Treating a topology diagram as a durability or freshness contract.
3

Try it yourself

Closed-book, before checking anything

Draw three local replicas and two clients, with a partition separating one replica from the others. For each topology, trace two writes to the same key and a subsequent read on each side. Mark who may acknowledge, which replicas hold each version, and which read outcomes depend on an as-yet-unspecified conflict or quorum rule. Do not give a topology a consistency label until those rules are stated.
4

Quiz yourself

Answer first, then mark it. Missed ones go to Review.

0 got · 0 missed

  1. 1.Does a client contacting only one coordinator imply single-leader replication?Answer

    No. The coordinator may fan out to interchangeable replicas without assigning a common order. Write authority and ordering, not the client connection count, distinguish the designs.

  2. 2.Can a disconnected multi-leader replica accept edits without proving that they preserve a global uniqueness constraint?Answer

    Yes, but accepting edits independently does not enforce unrestricted global uniqueness. The design needs coordination, preallocated disjoint authority, or an explicit conflict outcome.

  3. 3.Why can an insert and a dependent update arrive in the wrong order in an all-to-all topology?Answer

    They can travel over different links with different delays. Redundant paths do not themselves carry or enforce the dependency.

You're done when

Your three path diagrams identify every acknowledgement and divergent version, and you can state which missing policy prevents predicting a read result.

Only when you can do this without notes.

Leads to

Notes

Resources · 1 for this unit, 15 more in the section

Also in this section