Deepak and Deepa - Consistency - and - Replication
Deepak and Deepa - Consistency - and - Replication
By
Deepa Jandhyala
Deepak Chinavle
Introduction
• A sequentially consistent data store. (P3 and P4 see the same order)
• A data store that is not sequentially consistent. (P3 and P4 don’t see
the same order of events)
• Note, it doesn’t matter, when the events actually took place
• It does matter if all processes see them in the same order
Linearizability and Sequential Consistency
x = 1; y = 1; z = 1;
print (y, z); print (x, z); print (x, y);
Conditions:
- An acquire access of a synchronization variable is not
allowed to perform with respect to a process until all updates
to the guarded shared data have been performed with
respect to that process.
– Examples:
• DNS
– Single naming authority per zone
– “lazy” propagation of updates
• WWW
– No write-write conflicts
– Usually acceptable to serve slightly out-of-date
pages from a cache
Eventual Consistency
• The principle of a mobile user accessing different replicas of a
distributed database.
Example:
-replicated mailboxes with
on-demand propagation
of updates
FIFO propagation of
updates by each process
Example:
No guarantee that x at L2 has the same - s/w library
value as x at L1 at the time W(x1) completed
Negative examples:
- updates of Web pages
- changes of passwords
At each server:
•Count of accesses
for each file
•Originating clients
Messages sent Update (and possibly fetch update later) Poll and update
Response time at
Immediate (or fetch-update time) Fetch-update time
client