next up previous contents
Next: Storing Shared State Up: The Relay System Previous: Eventual Consistency

Relay Caches

The Relay cache acts as a middleman between the client application and the Relay system. The cache is a Java object that must be instantiated by client applications. When instantiated, the Relay cache object connects to a Relay server, starts a Listener thread, and registers the client application as an observer of the cache's data.

A major advantage to having the Relay cache as part of the client-side application is that it brings caching policies and behavior to the client machine. The Relay cache is downloaded with the client application, allowing a developer to change its implementation once for all clients.

The responsibilities of the Relay cache include:

  1. storing shared state,
  2. providing a view of shared state,
  3. forwarding client-side updates to the Relay server,
  4. processing received updates, and
  5. notifying client applications when cached data has changed.




Carmine F. Greco
Wed Mar 26 23:44:38 EST 1997