Many distributed database applications need to replicate data to improve data availability and query response time. The two-phase-commit protocol guarantees mutual consistency of replicated data but does not provide good performance. Lazy replication has been used as an alternative solution. In this case, mutual consistency is relaxed and the concept of freshness is used to measure the deviation between replica copies. In this paper we present a framework for lazy replication and focus on a special replication scheme called lazy master. In this scheme the common update propagation strategy used is deferred update propagation and works as follows: changes on a primary copy are first commited at the master node, afterwards the secondary copy is updated in a separate transaction at the slave node. We propose strategies based on what we call immediate update propagation. With immediate update propagation, updates to a primary copy are propagated towards a secondary copy as soon as they occur at the master node without waiting for the commitment of the update transaction. We study the behavior of these strategies and show that immediate update propagation may improve freshness with respect to the deferred approach.
[1]
Gustavo Alonso,et al.
Partitioned data objects in distributed databases
,
2005,
Distributed and Parallel Databases.
[2]
Oddvar Risnes,et al.
Extending Logging for Database Snapshot Refresh
,
1987,
VLDB.
[3]
Hector Garcia-Molina,et al.
Database Support for Efficiently Maintaining Derived Data
,
1996,
EDBT.
[4]
Matthias Nicola,et al.
Improving Performance in Replicated Databases through Relaxed Coherency
,
1995,
VLDB.
[5]
Rafael Alonso,et al.
Data caching issues in an information retrieval system
,
1990,
TODS.
[6]
Miron Livny,et al.
Data caching tradeoffs in client-server DBMS architectures
,
1991,
SIGMOD '91.
[7]
Charles W. Kaufman,et al.
Using History Information to Process Delayed Database Updates
,
1986,
VLDB.
[8]
Pierangela Samarati,et al.
Independent updates and incremental agreement in replicated databases
,
1995,
Distributed and Parallel Databases.