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.