Overview of Polly resilience policies
mainPolly is a .NET library designed for resilience and transient-fault-handling. It allows you to define and express various resilience strategies in a fluent and thread-safe manner. Supported policies include:
- Retry: Re-attempting an operation when it fails.
- Circuit Breaker: Temporarily stopping operations to prevent system overload when a failure threshold is met.
- Timeout: Ensuring an operation does not run longer than a specified duration.
- Rate-limiting: Controlling the rate of operations to prevent overwhelming a resource.
- Hedging: Running multiple concurrent operations and taking the result of the fastest one.
- Fallback: Providing a default or alternative response when an operation fails.