Java Distributed Cache Solutions

October 30, 2008 – 11:45 pm

I was recently researching architecture of the real-time reporting systems. It easy to understand that database will be a clear bottleneck for any real-time reports. Any query is required to provide a response within 1 sec which should also include a network time.

Many discussions suggest using distrbuted cache solutions add-on for the classical database driven architecture. There are many solutions available in the open source community. The following blog provides a summary of those:

http://www.manageability.org/blog/stuff/distributed-cache-java/view

I recently review Terracotta and didn’t like the claim about “no code change policy”. A multithreaded server that performed well on a single core machine was a disaster when a data lock was replaced with a network wide synchronization mechanism provided by the framework. Also instrumentation spread beyound what I hoped for and scoping the code affected by the integration was a real pain. I would actually prefer a regular cache to that approach. I didn’t put aside the framework yet and will try my new ideas. I’ll keep posted.

Another framework that got good reviews is Apache Java Cache System (JCS). The memory unit was advertised for its speed. I’d like to try it out and curious about its high availability features. The strange thing about this framework is that it didn’t have any updates since 2007.

EHCache (a famous caching solution frequently used with Hibernate ORM framwork), also provides means for the distributed cache. EHCache can be used to cache database interaction as well as to provide general caching mechanisms:

http://ehcache.sourceforge.net/documentation/distributed_design.html

More to come…

No TweetBacks yet. (Be the first to Tweet this post)
Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • TwitThis
  1. 2 Responses to “Java Distributed Cache Solutions”

  2. Since you are on this topic, check out our project Hydra Cache at http//www.hydracache.org. Its an opensource Java implementation of Amazon Dynamo which provides high performance reliable distributed cache with infinite scalability. We are about to reach M2 in a few weeks, the M2 will offer similar functionality provided by Memcached.

    By Nick on Oct 31, 2008

  3. NCache has been the caching solution of choice for various mission critical applications throughout the world since August 2005. Its scalability, high availability and performance are the reasons it has earned the trust of developers, senior IT and management personnel within high profile companies. These companies are involved in a range of endeavors including ecommerce, financial services, health services and airline services.

    The range of features that NCache currently showcases is highly competitive and revolutionary. It supports dynamic clustering, local and remote clients, advanced caching topologies like replicated and mirrored, partitioned and replicated partitioned. It also provides an overflow cache, eviction strategies, read-through and write-through capabilities, cache dependencies, event notifications and object query language facilities. For a complete list of features and details please visit http://www.alachisoft.com/ncache/index.html.

    Download a 60 day trial enterprise/developer version or totally free NCache Express from http://www.alachisoft.com/download.html

    By Kevin Clark on Mar 13, 2009

Post a Comment