Implement Primary-Replica Replication

replication log and read-your-writes

Challenge 3 of Partitioning & ReplicationAdvanced~60 min

Keep copies of your data in sync: write through a primary and a replication log, apply it to a replica, reason about replication lag, guarantee read-your-writes, and fail over by promoting a replica, and losing the writes that never replicated.

5 steps

  1. 1The Replication Log
  2. 2Applying to the Replica
  3. 3Replication Lag
  4. 4Read-Your-Writes
  5. 5Failover
Start step 1