skip to main content
10.1145/2677832.2677837acmotherconferencesArticle/Chapter ViewAbstractPublication PagesinternetwareConference Proceedingsconference-collections
Article

EasyCache: a transparent in-memory data caching approach for internetware

Authors Info & Claims
Published:17 November 2014Publication History

ABSTRACT

Developers usually use in-memory data caching system like Hazelcast with the application server to offload the backend database for scaling Internetware. Unfortunately, such caches do not integrate well with the database or the application. Developers need to take a large effort to rewrite the existing data access logic and manually manage the caching data. In this paper, we present EasyCache, a novel data caching approach, which provides transparent cache pre-loading, accessing and consistency maintenance to relieve developers of the burden of cache using and management. First, EasyCache translates each row of data in the existing database table into application cached object to pre-load cache data. Second, EasyCache allows applications to access the data cache using SQL statements and translates them into key/value based cache operations. Finally, EasyCache provides asynchronous/synchronous strategies to persist the cache data changes into the backend database. We design and implement EasyCache as a JDBC driver with Hazelcast as the caching layer. To evaluate our prototype, a detailed set of experiments were performed using the TPC-W benchmark. In the experiments, the only programming effort with EasyCache is point the application to the EasyCache JDBC driver. In contrast, when using Hazelcast as a traditional application-level caching system, we need to modify the TPC-W code over 2000 lines for 15 man days. Our experiments also show that, compared to a system with no cache and with query result cache, using EasyCache leads to up to 692× and 77× performance improvement respectively.

References

  1. Ozsu M, Valduriez P. Principles of Distributed Database Systems. New York: Springer, 2011. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. Tewari, R., Dahlin, M., Vin, H.M., Kay, J.S. 1999. Design considerations for distributed caching on the Internet. In Proceedings of the 19th IEEE International Conference on Distributed Computing Systems. ICDCS '99. IEEE Computer Society, Washington, DC, USA, 273-284. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. Podlipnig, S. and Böszörmenyi, L. 2003. A survey of Web cache replacement strategies. ACM Comput. Surv. 35, 4 (December 2003), 374-398. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. Bornhövd, C., Altinel, M., Mohan, C., Pirahesh, H., Reinwald, B. 2004. Adaptive database caching with DBCache. IEEE Data Eng. Bull. 27(2), 11–18.Google ScholarGoogle Scholar
  5. Larson, P.-A, Goldstein, J., Zhou, J. 2004. MTCache: transparent mid-tier database caching in SQL server. In Proceedings of the 20th International Conference on Data Engineering. ICDE '04, Boston, MA, 177-188. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. Garrod, C., Manjhi, A., Ailamaki, A., Maggs, B., Mowry, T., Olston, C., Tomasic, A. 2008. Scalable query result caching for web applications. Proc. VLDB Endow. 1, 1 (August 2008), 550-561. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. S. Ghandeharizadeh, J. Yap, and S. Barahmand. 2012. COSAR-CQN: An Application Transparent Approach to Cache Consistency. In Proceedings of the 21st International Conference on Software Engineering and Data Engineering, LA, California, June 27-29.Google ScholarGoogle Scholar
  8. Amiri, K., Park, S., Tewari, R., Padmanabhan, S. 2003. DBProxy: A dynamic data cache for web applications. In Proceedings of the 19th International Conference on Data Engineering. ICDE '03, 821–831.Google ScholarGoogle ScholarCross RefCross Ref
  9. Gupta, P., Zeldovich, N., Madden, M. 2011. A trigger-based middleware cache for ORMs. In Proceedings of the 12th ACM/IFIP/USENIX international conference on Middleware. Middleware'11, Fabio Kon and Anne-Marie Kermarrec (Eds.). Springer-Verlag, Berlin, Heidelberg, 329-349. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. Sivasubramanian, S., Pierre, G., van Steen, M., Alonso, G. 2006. GlobeCBC: Content-blind result caching for dynamicWeb applications. Technical Report IR-CS-022, Vrije Universiteit,Amsterdam, Netherlands (June 2006).Google ScholarGoogle Scholar
  11. Amiri, K., Park, S., Tewari, R., Padmanabhan, S. 2003. Scalable template-based query containment checking for web semantic caches. In Proceedings of the 19th International Conference on Data Engineering. ICDE '03, 493–504.Google ScholarGoogle ScholarCross RefCross Ref
  12. Degenaro, L., Iyengar, A., Lipkind, I., Rouvellou, I. 2000. A Middleware System Which Intelligently Caches Query Results. In Coulson, G., Sventek, J. (eds.) Middleware 2000. LNCS, vol. 1795, Springer, Heidelberg, 24–44. Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. Kristian F. D. Rietveld and Harry A. G. Wijshoff. 2013. To cache or not to cache: a trade-off analysis for locally cached database systems. In Proceedings of the ACM International Conference on Computing Frontiers. CF '13, ACM, New York, NY, USA, Article 31, 8 pages. Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. Zhang, W., Wang, S., Wang, W., Zhong, H. 2011. Bench4Q: A QoS-Oriented E-Commerce Benchmark. In Proceedings of the 35th Annual Computer Software and Applications Conference. COMPSAC '11, 38-47. Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. García, D.F., and García, J. 2003. TPC-W E-Commerce Benchmark Evaluation, Computer, 36, 2 (February 2003), 42-48. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. EasyCache: a transparent in-memory data caching approach for internetware

      Recommendations

      Comments

      Login options

      Check if you have access through your login credentials or your institution to get full access on this article.

      Sign in
      • Published in

        cover image ACM Other conferences
        Internetware '14: Proceedings of the 6th Asia-Pacific Symposium on Internetware
        November 2014
        152 pages
        ISBN:9781450333030
        DOI:10.1145/2677832
        • General Chairs:
        • Hong Mei,
        • Jian Lv,
        • Program Chairs:
        • Minghui Zhou,
        • Charles Zhang

        Copyright © 2014 ACM

        Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

        Publisher

        Association for Computing Machinery

        New York, NY, United States

        Publication History

        • Published: 17 November 2014

        Permissions

        Request permissions about this article.

        Request Permissions

        Check for updates

        Qualifiers

        • Article

        Acceptance Rates

        Overall Acceptance Rate55of111submissions,50%

      PDF Format

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader