-
How to build a distributed cache (13 messages)
- Posted by: Jen R
- Posted on: August 10 2004 21:28 EDT
Hi, I need to build a distributed cache that's shared by different JVMs. What's the best practice of implementing this? Thanks.Threaded Messages (13)
- Message Queue by Steven LeVander on August 11 2004 08:48 EDT
- How to build a distributed cache by Rob Misek on August 11 2004 10:53 EDT
- How to build a distributed cache by Jose Ramon Huerga Ayuso on August 12 2004 17:35 EDT
- How to build a distributed cache by Cameron Purdy on August 16 2004 10:13 EDT
- How to build a distributed cache by Jose Ramon Huerga Ayuso on August 12 2004 17:35 EDT
- Is your application is a web based applicaiton. by Rathikindi Sreedhar on August 11 2004 11:09 EDT
- JBoss cache by Torsten Greiff on August 12 2004 08:18 EDT
- How to build a distributed cache by Shay Hassidim on August 13 2004 17:59 EDT
- RE: How to build a distributed cache by Iqbal Khan on October 23 2008 12:36 EDT
- Re: How to build a distributed cache by Cameron Purdy on November 03 2006 06:10 EST
- Check out EhCache with Terracotta for Distributed Cache .. by Kunal Bhasin on October 06 2009 11:55 EDT
- distributed caching by user 786 on April 30 2010 02:36 EDT
- Hazelcast - Distributed Cache and more by Talip Ozturk on May 02 2010 11:27 EDT
- ASP.NET Session Storage Issues by user 786 on May 10 2010 03:38 EDT
-
Message Queue[ Go to top ]
- Posted by: Steven LeVander
- Posted on: August 11 2004 08:48 EDT
- in response to Jen R
Have you thought about using a message queue? -
How to build a distributed cache[ Go to top ]
- Posted by: Rob Misek
- Posted on: August 11 2004 10:53 EDT
- in response to Jen R
Hi Jen,
This is by no means an easy task, I would recommend taking a look at Coherence.
Later,
Rob Misek
Tangosol, Inc.
Coherence: It just works. -
How to build a distributed cache[ Go to top ]
- Posted by: Jose Ramon Huerga Ayuso
- Posted on: August 12 2004 17:35 EDT
- in response to Rob Misek
Hi Jen,This is by no means an easy task, I would recommend taking a look at Coherence
Yeah, this is true. The task of building a custom distributed cache is quite difficult. In a cluster with several JVM sharing the workload, you must build a cache system in which no one of this JVM has the total control of the information stored in the cache, because every node can go down or be shutdown, so a distributed cache systems looks more like a P2P system, where all the clones has a piece of information that shares with other nodes, but by no means, it has the total control of the integrity of the information, because all the JVM can be shutdown in every moment.
In the 2001 I worked in a project where we needed to build a custom cache. The cache system had only a few lines of code (maybe less than 200) but if was very difficult to maintain, because the design was not obvious. You must be able to syncronize the changes of the information, but you don't want to saturate the network sending all the time information about changes of every piece of information.
Maybe it could be easier if you adquire a product such as Coherence.
Jose R. Huerga
http://www.terra.es/personal/jrhuerga -
How to build a distributed cache[ Go to top ]
- Posted by: Cameron Purdy
- Posted on: August 16 2004 10:13 EDT
- in response to Jose Ramon Huerga Ayuso
In the 2001 I worked in a project where we needed to build a custom cache. The cache system had only a few lines of code (maybe less than 200) but if was very difficult to maintain, because the design was not obvious. You must be able to syncronize the changes of the information, but you don't want to saturate the network sending all the time information about changes of every piece of information.
Thanks for the plug ;-)
Maybe it could be easier if you adquire a product such as Coherence.
You can download a free evaluation copy from http://www.tangosol.com/download.jsp.
If you have any questions while you are trying it out, just email to support at tangosol dot com.
Peace,
Cameron Purdy
Tangosol, Inc.
Coherence: Shared Memories for J2EE Clusters -
Is your application is a web based applicaiton.[ Go to top ]
- Posted by: Rathikindi Sreedhar
- Posted on: August 11 2004 11:09 EDT
- in response to Jen R
If your application is a wed based and if the information is really small you can store in the common JNDI tree. If it's large you may face some performance issue.
Thanks,
Sreedhar -
JBoss cache[ Go to top ]
- Posted by: Torsten Greiff
- Posted on: August 12 2004 08:18 EDT
- in response to Jen R
You can also have a look at Jboss cache http://www.jboss.org/products/jbosscache -
How to build a distributed cache[ Go to top ]
- Posted by: Shay Hassidim
- Posted on: August 13 2004 17:59 EDT
- in response to Jen R
The effort for building scalable, consistent , clustered, flexible, none intrusive, ultra fast distributed cache to handle huge amount of concurrent users is for sure very complicated and needs special technology and powerful algorithms to handle the memory efficiently. We are relaying on 30 years of research with our product and massive development done for the last 5 years by top professional engineers.
See GigaSpaces Grid Server with its distributed cache that provides MAP API , JavaSpaces API , JDBC API , JMS API and got plugins for Hibernate and JDO.
http://www.gigaspaces.com/docs/doc/gigaspaces_distributed_caching.htm
http://www.gigaspaces.com/docs/doc/hibernate_cache.htm
http://www.gigaspaces.com/docs/doc/gigaspaces_cluster.htm
Best Regards,
Shay
----------------------------------------------------
Shay Hassidim
Product Manager, GigaSpaces Technologies
Email: shay at gigaspaces dot com
Website: http://www.gigaspaces.com -
RE: How to build a distributed cache[ Go to top ]
- Posted by: Iqbal Khan
- Posted on: October 23 2008 12:36 EDT
- in response to Shay Hassidim
I agree with others that developing your own distributed cache is a major undertaking. Additionally, why do it if you can find a good commerical distributed cache. NCache provides native APIs for .NET and Java (without any interoperability). It also provides distributed ASP.NET Session State storage. NCache provides integration for NHibernate as well. Check it out at: http://www.alachisoft.com http://www.alachisoft.com/rp.php?dest=/ncache/nhibernate_index.html -
Re: How to build a distributed cache[ Go to top ]
- Posted by: Cameron Purdy
- Posted on: November 03 2006 06:10 EST
- in response to Jen R
-
Check out EhCache with Terracotta for Distributed Cache ..[ Go to top ]
- Posted by: Kunal Bhasin
- Posted on: October 06 2009 11:55 EDT
- in response to Jen R
You may want to check out EhCache. It's the most widely-deployed open source cache compliant to JSR-107 JCACHE spec. It can be run as a distributed cache in a number of ways, depending on how much scale and availability you need. There's a peer-to-peer replicated mode at one end of the scale continuum. At the other end, there's a high scale, coherent, and persistent mode backed by Terracotta. http://www.terracotta.org/web/display/orgsite/Terracotta+Distributed+Cache+Overview -
distributed caching[ Go to top ]
- Posted by: user 786
- Posted on: April 30 2010 02:36 EDT
- in response to Jen R
NCache is a distributed caching solution for .NET and JAVA. It is easily configured and gives you scalable performance even at peak load times. Creating cache is easy and you have options to create replicated, partitioned or partitioned-replica cache.
Data intensive applications facing slowdown need distributed caching like Ncache to boost up performance. Ncache is downloable from http://www.alachisoft.com/download.html and you try the product for free for 2 months.
-
Hazelcast - Distributed Cache and more[ Go to top ]
- Posted by: Talip Ozturk
- Posted on: May 02 2010 11:27 EDT
- in response to Jen R
Check out Hazelcast, an open source, transactional, distributed caching solution for Java. It is super simple to use; add the hazelcast jar into your classpath and start coding. Hibernate second level cache plugin is also available.
Hazelcast is a little more than a cache: it is distributed map, queue, topic, lock and executor service for Java.
-talip
-
ASP.NET Session Storage Issues[ Go to top ]
- Posted by: user 786
- Posted on: May 10 2010 03:38 EDT
- in response to Jen R
ASP.NET cache has several problems as highlighted above and here:
http://distributedcache.blogspot.com/2010/05/aspnet-session-storage-issues.html
http://distributedcache.blogspot.com/2010/05/aspnet-performance-and-scalability.html
So, it is not recommended for data-intensive and mission-critical applications.