Win a copy of Rust Web Development this week in the Other Languages 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Caching in a clustered environment

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We have created a custom cache with expiration logic.
When clustering, each clone has a unique cache instance and there are issues with data synchronization. Example, 1000 users are cached in each clone and a new user is added through 1 clone, clone 1 now has 1001 users and clone 2 has 1000 users.
Has anyone come up with an elegant solution for caching in a clustered/cloned environment?
thanks,
-D
 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Dustin,
Absolutely, Tangosol's Coherence was built for that exact purpose. It allows you to leverage a number of caching strategies in a clustered environment incluing Replicated, Distributed/Partitioned, Near as well as "binding" to an underlying datastore for transparent persistence of cached data. Coherence maintains concurrency of the cached data across the cluster using our cluster-wide locking technology. There are a number of other features including, distributed querying (i.e. searching for objects whose properties match the search criteria), cluster-wide event notification and even grid computing support.
Drop me a line if you would like to discuss this further.
Regards,
Rob Misek
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Dustin Whitte:
We have created a custom cache with expiration logic.
When clustering, each clone has a unique cache instance and there are issues with data synchronization. Example, 1000 users are cached in each clone and a new user is added through 1 clone, clone 1 now has 1001 users and clone 2 has 1000 users.
Has anyone come up with an elegant solution for caching in a clustered/cloned environment?
thanks,
-D


I think the general solution to what you're looking for is described in
this article. As mentioned in the article, Coherence is an excellent off-the-shelf implementation of the pattern.
Kyle
 
Dustin Whitte
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks guys.

I will definitely investigate the Coherence solution to address this issue.

Kyle, the article was exactly what I was looking for and was very useful.

-D
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic