A Trigger-Based Middleware Cache for ORMs

Abstract : Caching is an important technique in scaling storage for high-traffic web applications. Usually, building caching mechanisms involves significant effort from the application developer to maintain and invalidate data in the cache. In this work we present CacheGenie, a caching middleware which makes it easy for web application developers to use caching mechanisms in their applications. CacheGenie provides high-level caching abstractions for common query patterns in web applications based on Object-RelationalMapping (ORM) frameworks. Using these abstractions, the developer does not have to worry about managing the cache (e.g., insertion and deletion) or maintaining consistency (e.g., invalidation or updates) when writing application code.We design and implement CacheGenie in the popular Django web application framework, with PostgreSQL as the database backend and memcached as the caching layer. To automatically invalidate or update cached data, we use triggers inside the database. CacheGenie requires no modifications to PostgreSQL or memcached. To evaluate our prototype, we port several Pinax web applications to use our caching abstractions. Our results show that it takes little effort for application developers to use CacheGenie, and that CacheGenie improves throughput by 2-2.5× for read-mostly workloads in Pinax.
Type de document :
Communication dans un congrès
Fabio Kon; Anne-Marie Kermarrec. 12th International Middleware Conference (MIDDLEWARE), Dec 2011, Lisbon, Portugal. Springer, Lecture Notes in Computer Science, LNCS-7049, pp.329-349, 2011, Middleware 2011. 〈10.1007/978-3-642-25821-3_17〉
Liste complète des métadonnées

Littérature citée [21 références]  Voir  Masquer  Télécharger

https://hal.inria.fr/hal-01597769
Contributeur : Hal Ifip <>
Soumis le : jeudi 28 septembre 2017 - 17:11:48
Dernière modification le : jeudi 28 septembre 2017 - 17:16:50
Document(s) archivé(s) le : vendredi 29 décembre 2017 - 15:54:12

Fichier

978-3-642-25821-3_17_Chapter.p...
Fichiers produits par l'(les) auteur(s)

Licence


Distributed under a Creative Commons Paternité 4.0 International License

Identifiants

Citation

Priya Gupta, Nickolai Zeldovich, Samuel Madden. A Trigger-Based Middleware Cache for ORMs. Fabio Kon; Anne-Marie Kermarrec. 12th International Middleware Conference (MIDDLEWARE), Dec 2011, Lisbon, Portugal. Springer, Lecture Notes in Computer Science, LNCS-7049, pp.329-349, 2011, Middleware 2011. 〈10.1007/978-3-642-25821-3_17〉. 〈hal-01597769〉

Partager

Métriques

Consultations de la notice

47

Téléchargements de fichiers

26