Abstract
In recent years, application server technology has become very popular for building complex but mission-critical systems such as Web-based E-Commerce applications. However, the resulting solutions tend to suffer from serious performance and scalability bottlenecks, because of their distributed nature and their various software layers. This paper deals with the problem by presenting an approach about transparently caching results of a service interface’s read-only methods on the client side. Cache consistency is provided by a descriptive cache invalidation model which may be specified by an application programmer. As the cache layer is transparent to the server as well as to the client code, it can be integrated with relatively low effort even in systems that have already been implemented.
Experimental results show that the approach is very effective in improving a server’s response times and its transactional throughput. Roughly speaking, the overhead for cache maintenance is small when compared to the cost for method invocations on the server side. The cache’s performance improvements are dominated by the fraction of read method invocations and the cache hit rate. Our experiments are based on a realistic four-tier E-commerce Web site scenario and site user behaviour is emulated in an authentic way. By inserting our cache, the maximum user request throughput of the web application could be more than doubled while its response time (such as perceived by a web client) was kept at a very low level.
Moreover, the cache can be smoothly integrated with traditional caching strategies acting on other system tiers (e.g. caching of dynamic Web pages on a Web server). The presented approach as well as the related implementation are not restricted to application server scenarios but may be applied to any kind of interface-based software layers.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Similar content being viewed by others
References
Anton, J., Jacobs, L., Liu, Y., Parker, J., Zeng, Z., Zhong, T.: Web caching for database applications with oracle Web cache. In: Proceedings of the ACM SIGMOD Conference, Madison, Wisconsin, USA, June 2002. ACM Press, New York (2002)
Apache Group. The Torque framework of the Apache DB project, http://db.apache.org/torque
Candan, K.S., Li, W.-S., Luo, Q., Hsiung, W.-P., Agrawal, D.: Enabling dynamic content caching for database-driven web sites. In: Proceedings of the ACM SIGMOD Conference, Santa Barbara, California, USA, May 2001, ACM Press, New York (2001)
Cecchet, E., Chanda, A., Elnikety, S., Marguerite, J., Zwaenepoel, W.: A comparison of software architecturs for E-business applications. Technical Report TR02- 389, Rice University (2001)
Cecchet, E., Marguerite, J., Zwaenepoel, W.: Performance and scalability of EJB applications. In: Proceedings of the OOPSLA Conference, Seattle,Washington, USA, November 2002, ACM Press, New York (2002)
Datta, A., Dutta, K., Thomas, H., VanderMeer, D.: A comparative study of alternative middle tier caching solutions to support dynamic Web content acceleration. In: Proceedings of the 27th VLDB Conference, Rome, Italy, August 2001. Morgan Kaufmann, San Francisco (2001)
Degenaro, L., Iyengar, A., Lipkind, I., Rouvellou, I.: A middleware system which intelligently caches query results. In: Coulson, G., Sventek, J. (eds.) Middleware 2000. LNCS, vol. 1795, pp. 24–44. Springer, Heidelberg (2000)
ESI – edge side includes (2002), http://www.esi.org
Excelon. Javlin – the EJB data cache manager (2002), http://www.exln.com/products/javlin
Kemper, A., Kilger, C., Moerkotte, G.: Function materialization in object bases. In: Proceedings of the ACM SIGMOD Conference, Denver, Colorado, USA, May 1991. ACM Press, New York (1991)
Kounev, S., Buchmann, A.: Improving data access of J2EE applications by exploiting asynchronous messaging and caching services. In: Proceedings of the 28th VLDB Conference, Hong Kong, China, August 2002, Morgan Kaufmann, San Francisco (2002)
Li, W.-S., Hsiung, W.-P., Kalshnikov, D.V., Sion, R., Po, O., Agrawal, D., Candan, K.S.: Issues and evaluations of caching solutions for web application acceleration. In: Proceedings of the 28th VLDB Conference, Hong Kong, China, August 2002, Morgan Kaufmann, San Francisco (2002)
Luo, Q., Krishnamurthy, S., Mohan, C., Pirahesh, H., Woo, H., Lindsay, B.G., Naughton, J.F.: Middle tier database caching for E-business. In: Proceedings of the ACM SIGMOD Conference, Madison, Wisconsin, USA, June 2002. ACM Press, New York (2002)
Luo, Q., Naughton, J.F.: Form based proxy caching for database-backed Web sites. In: Proceedings of the 27th VLDB Conference, Rome, Italy, August 2001, Morgan Kaufmann, San Francisco (2001)
Marinescu, F.: EJB Design Patterns. Wiley, USA (2002)
Mohan, C.: Chaching technologies for Web applications, Tutorial at VLDB Conference, Rome, Italy (2001), http://www.almaden.ibm.com/u/mohan/Caching_VLDB2001.pdf
EJB performance analysis (2000), http://objectbridge.sourceforge.net/performance/ejb-performance-analysis.html
Persistence Software. Dynamai – a technical white paper (2001), http://www.persistence.com/products
Persistence Software. Persistence benchmark – extreme EJB performance with PowerTier (2001), http://www.persistence.com/products
The RUBiS project (2002), http://rubis.objectweb.org
Spider Software. Accelarting content delivery: The challenges of dynamic content, white paper (2001), http://www.spidercache.com
Times Ten Team. Mid-tier caching: The TimesTen approach. In: Proceedings of the ACM SIGMOD Conference, Madison, Wisconsin, USA. ACM Press, New York (June 2002)
XCache Technologies. XCache – a dynamic content Web cache, http://www.xcache.com
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2003 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Pfeifer, D., Jakschitsch, H. (2003). Method-Based Caching in Multi-tiered Server Applications. In: Meersman, R., Tari, Z., Schmidt, D.C. (eds) On The Move to Meaningful Internet Systems 2003: CoopIS, DOA, and ODBASE. OTM 2003. Lecture Notes in Computer Science, vol 2888. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-39964-3_83
Download citation
DOI: https://doi.org/10.1007/978-3-540-39964-3_83
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-20498-5
Online ISBN: 978-3-540-39964-3
eBook Packages: Springer Book Archive