aspose file tools*
The moose likes Distributed Java and the fly likes Distributed Java Caching Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Distributed Java Caching" Watch "Distributed Java Caching" New topic
Author

Distributed Java Caching

Md Fizal
Ranch Hand

Joined: Dec 23, 2002
Posts: 61
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?
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12823
    
    5
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

Joined: Dec 23, 2002
Posts: 61
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
Rancher

Joined: Mar 22, 2000
Posts: 12823
    
    5
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
George Daswani
Greenhorn

Joined: Sep 28, 2005
Posts: 12
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
Anirudh Borkar
Greenhorn

Joined: Feb 21, 2004
Posts: 5
George,

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

Thanks

aborkar
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Distributed Java Caching