How to solve data synchronization ? 2004-05-19 - By Scott Pumer
Back Edward,
There may be better ways but the way we tackled this problem recently was to create an NIS share (directory share generally for unix) on an accessible machine. Once we created the share we created a mount point, such as /share/myApp, on each of the servers in the cluster. That way when reading or writing the mount point (/share/myApp) from any of the servers they are actually accessing the shared mount. Do take care to synchronize file access if concurrent access is required.
Other ideas include - BLOBs in a central database - LDAP server if the data is primarily readonly and potentially benefits from hierarchical data storage. - Some kind of script/process that copies the file to all the other servers each time a new file is written locally - many-to-many star pattern of communication
Cheers, Scott
Edward King wrote:
> I have two server and they contains same content in every server,and > to have reached load balance by hardware.When user ask a > request,hardware will distribute this user's request to one > server,this request is read data or write data,If write data,then it > will write some data in certain directory of this server.My question > is that how another server also write same content in same directory > of another server? If J2EE provide this synchronization method? > Any idea will be appreciated! > Best regards, > Edward > =========================================================================== > To unsubscribe, send email to listserv@(protected) and include in the > body of the message "signoff J2EE-INTEREST". For general help, send > email to listserv@(protected) and include in the body of the message > "help". >
=========================================================================== To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help".
|
|