This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes Server Cache Synchonisation Protocol. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Server Cache Synchonisation Protocol." Watch "Server Cache Synchonisation Protocol." New topic
Author

Server Cache Synchonisation Protocol.

soudamini.s shirkhedkar
Greenhorn

Joined: Nov 29, 2005
Posts: 9
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

Joined: Nov 29, 2005
Posts: 9
pls respond guys!!
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
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.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
soudamini.s shirkhedkar
Greenhorn

Joined: Nov 29, 2005
Posts: 9
Thanks for your help. Will try doing it this way.

Best,
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Server Cache Synchonisation Protocol.