In this lesson · topic 7 of 7
Topic 7
Check the failover and lag cases
3 min read
Predict first
Predict first
Predict first
Take away
- Replication copies data to survive failures and to spread reads. It does not spread writes.
- Asynchronous, semi-synchronous and synchronous replication trade write speed against lost writes and stale reads.
- Lag is a window. Inside it, read-your-writes and monotonic reads keep one user’s view sensible, at some cost in leader load.
Sources
- Martin Kleppmann, Designing Data-Intensive Applications, O’Reilly, 2017. Chapter 5 covers replication, lag and failover.
- Douglas Terry, Alan Demers, Karin Petersen, Mike Spreitzer, Marvin Theimer, and Brent Welch, Session Guarantees for Weakly Consistent Replicated Data, Parallel and Distributed Information Systems, 1994.
- The PostgreSQL project, Synchronous replication in the high availability documentation, a worked example of the acknowledgement choices.
- Werner Vogels, Eventually Consistent, Communications of the ACM, 2009.