Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Distributed Java Caching

 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I'm looking for an open source distributed Java caching library which can perform cache objects across VM and across servers. Any recommendations please?
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That is a pretty broad requirement. I don't know of any exact match. You might find the following intersting:

The Java JSR 107 API for caching
The "WhirlyCache" project - an in memory cache.

If I had to meet those requirements I would consider using a JavaSpace / Whirlycache combination.
Bill
 
Md Fizal
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you. Just to confirm, WhirlyCache in itself does not provide caching feature across VMs/Servers, right?
 
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As I understand it, you are correct, WhirlyCache designed for a single VM. I would suggest you look into JavaSpaces as a method of sharing objects across multiple Java VMs.
Probably the approach to take depends on how "expensive" it is to generate your objects from scratch versus retrieval from a cache. Also how many parameters are involved in matching a cached objects, because spaces have some capabilities for matching multiple parameters.
An interesting problem!
Bill
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are many types of caching solutions out there..

Are you talking about the simpler replicated cache? (same data replicated to multiple machines (or different VM's)?

if so - check out Jboss Cache

Are you talking about a cache whose max size limit grows as the number of nodes (and VM's grow) increases? - Then you are talking about a partitioned cache - Check out Tangosol's Coherence
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
George,

do you know of an open source partitioned cache project whose performance comes close to Coherence?

Thanks

aborkar
 
He repaced his skull with glass. So you can see his brain. Kinda like this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!