Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Distributed Java Caching

 
Md Fizal
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?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13062
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
Rancher
Posts: 13062
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
 
George Daswani
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
 
Anirudh Borkar
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic