Read-your-write consistency
The most common way to scale the reads hitting a distributed data store is by adding Read Replicas. These replicas handle all the reads of the systems freeing up the Master to deal with the writes. Although Replicas do help us scale, it brings a new set of problems; and in this essay, we discuss one such issue, called “Read-your-write” consistency, and look at possible solutions. In a Master-Replica setup, the Writes happening on the Master take some time to reach the Replica. This delay in propagation is called Replication Lag. If a client has made a Write and is immediately trying to read the written item, this read may go to the Read Replica that is yet to sync with the Master. When the client issues the Read on a Replica that has yet to receive the write, it leads to an undesirable behavior wherein the client will see the old value (or null) and think that the write it made was lost. Read-Your-Writes consistency states that the system guarantees that, once an item has been updated,
Read-Your-Writes Consistency Read-Your-Writes Consistency Arpit Bhayani engineering, databases, and systems. always building. The most common way to scale the reads hitting a distributed data store is by adding Read Replicas . These replicas handle all the reads of the systems freeing up the Master to deal with the writes. Although Replicas do help us scale, it brings a new set of problems; and in this essay, we discuss one such issue, called “Read-your-write” consistency, and look at possible solutions. The Problem In a Master-Replica setup, the Writes happening on the Master take some time t
related reading
- Chain Replication for Supporting High Throughput and Availabilitycs.cornell.edu
- A Distributed Systems Reading Listferd.ca
- Everything I know about good system designseangoedecke.com
- Chain Replication for Supporting High Throughput and Availabilitypdos.csail.mit.edu
- How to do distributed locking - Martin Kleppmann's blogmartin.kleppmann.com
- Replication - Database Manual - MongoDB Docsmongodb.com
- learning-notes/books/designing-data-intensive-applications.md at master · keyvanakbary/learning-notes · GitHubgithub.com
- Scaling Replicated State Machines with Compartmentalizationmwhittaker.github.io
- Consistency model - Wikipediaen.wikipedia.org
- An Overview of Distributed PostgreSQL... | Crunchy Data Blogcrunchydata.com
- Let’s take a crack at understanding distributed consensuspreethikasireddy.com
- Lecture 4: Primary-Backup Replicationyoutube.com