NCache 4.4 - Online Documentation

Synchronization Mode

 
There are two synchronization modes for a client cahe.
 
  • Optimistic
  • Pessimistic
 
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 client node IP under Client Nodes in Cache Explorer. Client specific settings in tabbed view shown in right pane.
 
  • Go to Settings tab and select any one option Optimistic or Pessimistic from 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