• 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:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Server Cache Synchonisation Protocol.  RSS feed

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I want to write a java program/use a protocol to synchonise cache on the three servers that we use in production.
I want the solution work in this way:
if any change occurs in the data of one server cache, it should broadcast the change to the remaining two servers. Depending upon the state these servers have their cache in, caches should be updated.

I did some google on this and found out that there is a protocol Server Cache Synchonisation Protocol- SCSP RFC 2334. At this point, I am not very sure as to how this can be used. I dont have any backgroung in Internet Engineering so I am at a slight disadvantage.
What other options do I have? Can I use IP Multicasting for this purpose? Can I use any class/es from java.net?
Please help. Thanks in advance for replying.
 
soudamini.s shirkhedkar
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
pls respond guys!!
 
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Google again for "java distributed cache" and use an established product.

This sounds as simple as broadcasting changes, but you also have to handle one server that starts later than the others, or maybe you stop and restart one server in a cluster. It needs a "full refresh" mode, too.

I thought I needed destributed caches once, but used a database instead. My particular case was ok with the difference in performance.
 
soudamini.s shirkhedkar
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your help. Will try doing it this way.

Best,
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!