Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Caching in a clustered environment

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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
    Bookmark Topic Watch Topic
  • New Topic