Cianplan

Level 2: Data · L2.2 Replication

Leaders and followers

Explain single-leader replication, sync vs async and failover.

12 min · Pro

What you take away

  • One leader takes all writes and streams its change log to followers, which apply it in order.

And 3 more inside the class, in Pro.

How the class is laid out

  1. The problem
  2. The simple version
  3. What the leader sends, and when it waits
  4. Failover is where the interesting failures live
  5. Check your understanding