Yuriy Toropov wrote: > Suppose I want to write a distributed application, which have data > distributed among multiple servers. > A client connects to a local server and tries to access data, if it is not > there, remote server should be checked.
That is not exactly what ECP does. ECP is for data that are stored only on a remote server. They are temporarily cached on the local server. > How can I do this with global mapping (other options are welcomed as well) > transparent to the client application without writing specialized Cache' code > for remote server lookup code? No mapping, just replication. > Ignore for now that Cache 5 does not have class mappings and imagine that > the same class definitions are deployed at both local and remote servers. I > am looking for a way to seamlessly access data on both servers with all > possible replication syncing and caching done by a database. Is it possible in > Cache'? You could replicate your database to each local server. > Another concern is performance. Majority of data being accessed resides on > the local server With replication all data would reside on every local server. Based on what you described, it would perform well. > and remote server should be checked only if data are not > found locally. Can Cache' handle this? You need to explain how and why it would be on the remote server. What is that application here?
