How Can a Distributed Database Guarantee Read Your Writes Consistency

Definition: RYW (Read-Your-Writes) consistency is achieved when the system guarantees that, once a record has been updated, any attempt to read the record will return the updated value. … Let R = the number of nodes that must send back the same value of a unit of data for it to be accepted as read by the system.

How do you ensure consistency in a distributed database?

  1. First is to take the lock before writing anything to the database or caching system. This ensures read and write lock. This includes master server as well. …
  2. Secondly, if replication fails then there is the added complex layer of rollovers. This ensures that data is consistent if not then it is not applied.

What is a consistency guarantee?

“If a process reads the value of a data item x, any successive read operation on x by that process will always return that same value or a more recent value.” Monotonic read consistency guarantees that after a process reads a value of data item x at time t, it will never see the older value of that data item.

James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest