Here is a simple table to help determine the basic information you should consider for all Polly Policies you configure
Policy | |||
---|---|---|---|
CircuitBreaker | Exception Type | Exception Count Allowed | Time period |
Retry | Exception Type | Retry Count | Retry Delays |
Timeout | Timeout Time | Will it be Pessimistic? (avoid) | |
Bulkhead Isolation | maxParallelization | maxQueuingActions | onRejection |
Cache | CacheProvider | Length/Policy | |
Fallback | Exception Type | With Retry? | Default action |
If (and only if?) you would want one policy to handle failures of another (such as a Fallback
after a Timeout
, or deciding if requests that Timeout
should be counted toward a CircuitBreaker
), the order that you Policy .Wrap
them will be important