Polly

screenshot of Polly

Polly is a .NET resilience and transient-fault-handling library that allows developers to express policies such as Retry, Circuit Breaker, Timeout, Bulkhead Isolation, and Fallback in a fluent and thread-safe manner. From version 6.0.1, Polly targets .NET Standard 1.1 and 2.0+.

Overview

Polly is a .NET resilience and transient-fault-handling library that offers developers the ability to implement resilience strategies such as Retry, Circuit Breaker, Hedging, Timeout, Rate Limiter, and Fallback in a fluent and thread-safe manner. The library is a member of the .NET Foundation and provides users with various strategies to enhance the fault-tolerance and reliability of their applications.

Features

  • Retry: Automatically retries operations in case of transient faults.
  • Circuit Breaker: Breaks the circuit to prevent overloading a struggling system.
  • Hedging: Deals with high-latency or at-risk operations by issuing parallel requests.
  • Timeout: Ensures operations complete within a specified timeframe.
  • Rate Limiter: Controls the rate at which operations are executed.
  • Fallback: Provides a fallback mechanism in case of failures.