NCache 4.6 - Online Documentation

Synchronization Mode

There are two synchronization modes for a client cache.
Optimistic Synchronization
In optimistic mode, application fetches data from client cache despite the fact that data is updated or not. It assumes that data is newer in client cache. In optimistic synchronization, updates are propagated to the client cache using event notifications.
Pessimistic Synchronization
Pessimistic mode is used when applications are handling sensitive data. On data fetch request, if data is found in client cache, its version is matched with item on remote cache. If both versions are same, then item is returned otherwise updated item is fetched from remote cache and is updated back to client cache.
These modes can be configured as follows:
Using NCache Manager
  • Click on a client node IP under Client Nodes in Cache Explorer. Client specific settings open in a tab in right pane.
  • Go to the Settings tab and select one option, either Optimistic or Pessimistic from the Sync Mode Drop Down list.
  • Click on Enable Client Cache option in the right click menu. Client cache becomes disabled for all the client nodes, currently listed under Client nodes in Cache Explorer. Grey square sign on client node indicates a disabled client cache.
  • Right click on cache name in Cache Explorer and select Apply Configuration option.
See Also