Concurrency Models

Windows Server AppFabric Caching
WSAF Caching provides both optimistic and pessimistic locking models.
ScaleOut StateServer

ScaleOut APIs also provide both optimistic and pessimistic locking models. There are several key usage differences that are covered in more detail in the Migration section’s Locking topic:

  • Instead of throwing an exception in the event of a pessimistic lock collision, the ScaleOut NamedCache API can optionally block the caller and perform retries on your behalf if a collision occurs.
  • Pessimistic lock handles are managed transparently by the NamedCache API and do not need to be managed by the client application.
  • Optimistic lock version information is stored and automatically updated directly in your objects when the IOptimisticConcurrencyVersionHolder interface is implemented in your classes.