Skip to main content

Hyperbolic Caching: Flexible Caching for Web Applications

Author(s): Blankstein, Aaron; Sen, Siddhartha; Freedman, Michael J

Download
To refer to this page use: http://arks.princeton.edu/ark:/88435/pr1k25d
Full metadata record
DC FieldValueLanguage
dc.contributor.authorBlankstein, Aaron-
dc.contributor.authorSen, Siddhartha-
dc.contributor.authorFreedman, Michael J-
dc.date.accessioned2021-10-08T19:49:16Z-
dc.date.available2021-10-08T19:49:16Z-
dc.date.issued2017en_US
dc.identifier.citationBlankstein, Aaron, Siddhartha Sen, and Michael J. Freedman. "Hyperbolic Caching: Flexible Caching for Web Applications." In USENIX Annual Technical Conference (2017): pp. 499-511.en_US
dc.identifier.urihttps://www.usenix.org/system/files/conference/atc17/atc17-blankstein.pdf-
dc.identifier.urihttp://arks.princeton.edu/ark:/88435/pr1k25d-
dc.description.abstractToday’s web applications rely heavily on caching to reduce latency and backend load, using services like Redis or Memcached that employ inflexible caching algorithms. But the needs of each application vary, and significant performance gains can be achieved with a tailored strategy, e.g., incorporating cost of fetching, expiration time, and so forth. Existing strategies are fundamentally limited, however, because they rely on data structures to maintain a total ordering of the cached items. Inspired by Redis’s use of random sampling for eviction (in lieu of a data structure) and recent theoretical justification for this approach, we design a new caching algorithm for web applications called hyperbolic caching. Unlike prior schemes, hyperbolic caching decays item priorities at variable rates and continuously reorders many items at once. By combining random sampling with lazy evaluation of the hyperbolic priority function, we gain complete flexibility in customizing the function. For example, we describe extensions that incorporate item cost, expiration time, and windowing. We also introduce the notion of a cost class in order to measure the costs and manipulate the priorities of all items belonging to a related group. We design a hyperbolic caching variant for several production systems from leading cloud providers. We implement our scheme in Redis and the Django web framework. Using real and simulated traces, we show that hyperbolic caching reduces miss rates by ~10-20% over competitive baselines tailored to the application, and improves end-toend throughput by ~5-10%.en_US
dc.format.extent499 - 511en_US
dc.language.isoen_USen_US
dc.relation.ispartofUSENIX Annual Technical Conferenceen_US
dc.rightsFinal published version. This is an open access article.en_US
dc.titleHyperbolic Caching: Flexible Caching for Web Applicationsen_US
dc.typeConference Articleen_US
pu.type.symplectichttp://www.symplectic.co.uk/publications/atom-terms/1.0/conference-proceedingen_US

Files in This Item:
File Description SizeFormat 
HyperbolicCaching.pdf1.1 MBAdobe PDFView/Download


Items in OAR@Princeton are protected by copyright, with all rights reserved, unless otherwise indicated.