Skip to content

Latest commit

 

History

History
5 lines (3 loc) · 874 Bytes

README.md

File metadata and controls

5 lines (3 loc) · 874 Bytes

This sample illustrates how an app can use the Polly library with the Scaleout.Client library to fail over to a second, backup cluster of ScaleOut StateServer hosts.

The sample provides a generic PollyClient class. Once instantiated, cache accesses should be wrapped by the PollyClient.DoScaleoutRequest() method. The PollyClient implements a CircuitBreaker and Fallback policy to temporarily redirect requests to a backup store in the event of a connectivity problem. After a specified duration, an attempt will be made to use primary store again.

Users will typically want to use GeoServer DR in conjunction with this approach so the backup store has copies of all objects from the primary cluster.