Caching Dynamic Web Content: Designing and Analysing an Aspect-Oriented Solution
Caching dynamic web content is an effective approach to reduce Internet latency and server load. An ideal caching solution is one that can be added transparently by the developers and provides complete consistency of the cached documents, while minimizing false cache invalidations. In this paper, the authors design and implement AutoWebCache, a middleware system for adding caching of dynamic content transparently to J2EE server-side applications having a backend database. For this purpose, they first present the principles involved in caching dynamic web content, including their logic to ensure consistency of the cached entries. Thereafter, they demonstrate the use of Aspect-Oriented (AOP) techniques to implement our system, showing how AOP provides modularity and transparency to the entire process.