• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Distributed Java Caching

 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
George,

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

Thanks

aborkar
 
I found a beautiful pie. And a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic