TitleTransactional Consistency and Automatic Management in an Application Data Cache
Publication TypeConference Paper
Year of Publication2010
AuthorsPorts DRK, Clements AT, Zhang I, Madden S, Liskov B
Conference NameSymposium on Operating Systems Design and Implementation (OSDI '10)
Date or Month PublishedOctober
Conference LocationVancouver, BC, Canada

Distributed in-memory application data caches like memcached are a popular solution for scaling database-driven web sites. These systems are easy to add to existing deployments, and increase performance significantly by reducing load on both the database and application servers. Unfortunately, such caches do not integrate well with the database or the application. They cannot maintain transactional consistency across the entire system, violating the isolation properties of the underlying database. They leave the application responsible for locating data in the cache and keeping it up to date, a frequent source of application complexity and programming errors.

Addressing both of these problems, we introduce a transactional cache, TxCache, with a simple programming model. TxCache ensures that any data seen within a transaction, whether it comes from the cache or the database, reflects a slightly stale but consistent snapshot of the database. TxCache makes it easy to add caching to an application by simply designating functions as cacheable; it automatically caches their results, and invalidates the cached data as the underlying database changes. Our experiments found that adding TxCache increased the throughput of a web application by up to 5.2x, only slightly less than a non-transactional cache, showing that consistency does not have to come at the price of performance.

Downloadshttp://drkp.net/papers/txcache-osdi10.pdf PDF
Citation Keyports10:_trans_consis_autom_manag_applic_data_cache