Databases: Lesson 03 Data Cache Consistency Maintenance in Mobile and Web Environments
Databases: Lesson 03 Data Cache Consistency Maintenance in Mobile and Web Environments
Data cache maintenance necessity in mobile environment Caching and hoarding the record at the device reduces access latency to negligible
Polling Method
Each cached record copy polled (checked) whenever required The device connects to the server and finds out data record copy at the device become invalid or has been modified at the server If modified or invalidated, then the device requests for the modified data and replaces
Oxford University Press 2007. All rights reserved.
7
11
Stateless asynchronous
Device cache states are not maintained at the server The server advertises invalidation report On receiving an invalidation report, the client requests for or caches the new data record
12
13
14
15
Stateless synchronous
Device cache states are not maintained at the server The server periodically advertises invalidation report The client requests for or caches the data on receiving the invalidation report If no report is received till the end of the period, the client requests for the report
Oxford University Press 2007. All rights reserved.
16
18
19
Stateful asynchronous
Device cache states are maintained at the server The server transmits invalidation report to concerned devices The client requests for new data on receiving the invalidation report and sends its new state after caching new record from the server
Oxford University Press 2007. All rights reserved.
20
21
22
23
24
Stateful synchronous
Device cache states maintained at the server The server periodically transmits invalidation report to the concerned devices
25
Stateful synchronous
The client requests for new data on receiving the invalidation report, and sends its new state after caching the new data. If no report is received till the end of the period, the client requests for the report.
26
29
32
33
35
36
Summary
Four methods of Cache Invalidation based cache consistency maintenance mechanism Stateless asynchronous stateless synchronous stateful asynchronous stateful synchronous mechanisms
Oxford University Press 2007. All rights reserved.
37
Summary
Polling and TTL methods for cache consistency maintenance for data cache Similar methods for Web Cache Power aware method Poll for significant change in CRC
38
End of Lesson 03 Data Cache Consistency Maintenance in Mobile and Web Environments
39