Professional Documents
Culture Documents
Client - Centric Consistency Models
Client - Centric Consistency Models
Client - Centric Consistency Models
Introduction
n
The models weve talked about have system wide consistency for systems where concurrent processes may be updating the data store. Now, lets assume that there arent simultaneous updates to the data store, or that when they happen they can be easily resolved, and that most operations involve reading data.
Introduction (contd)
n
Eventual Consistency
If no updates take place for a long enough period time, all replicas will gradually (i.e., eventually) become consistent.
n
Basic Architecture
n n
How well does eventually consistent (EC) work for mobile clients? Client-centric is for this. Consistent for a single client.
Goal: Show how we can perhaps avoid system wide consistency by concentrating on what specific clients want, instead of what should be maintained by servers.
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. Sequence (a) satisfies monotonic read consistency, but sequence (b) does not.
Example
n
A write operation by a process on a data item x is completed before any successive write operation on x by the same process (all write operations are propagated to all replicas in order). Sequence (a) satisfies monotonic write consistency, but sequence (b) does not
Read-Your-Writes Consistency
n
The effect of a write operation by a process on data item x will always be seen by a successive read operation on x by the same process. Examples for missing this consistency
We change a web page but we still get the old version from the cache we have to push reload n We change the password but the propagation takes
n
Graphical Representation
n
Sequence (a) satisfies read-your-writes consistency, but sequence (b) does not
Writes-Follow-Reads Consistency
n
A write operation by a process on a data item x following a previous read operation on x by the same process is guaranteed to take place on the same or a more recent value of x than that which was read. Examples for missing this consistency
n
Graphical Representation
n
Sequence (a) satisfies read-your-writes consistency, but sequence (b) does not
Thank You