liveBook · Manning

Polly

Polly is a .NET resilience library for defining policies that handle transient faults and control behaviors such as retries, timeouts, circuit breakers, and fallbacks.

How 2 Manning books explain it

ASP.NET Core in Action, 3e

Polly is a .NET resilience library for defining policies that handle faults and control retries, timeouts, circuit breakers, and related behaviors.

How it is used
Handles transient failures when .NET applications call remote HTTP APIs through HttpClient.
How deep it goes
Explains package setup, handler-pipeline integration, retry timing, supported errors, and policy trade-offs without detailing Polly internals.
Examples
Uses an ExchangeRatesClient with three delayed retries and a PolicyHttpMessageHandler flow diagram.
What you can do after
Operate/configure Polly through AddTransientHttpErrorPolicy() to retry selected transient HTTP failures automatically.

Read how ASP.NET Core in Action, 3e explains Polly →

.NET in Action, Second Edition

Polly is a .NET resilience library for expressing policies such as retries, circuit breakers, timeouts, and fallbacks.

How it is used
Applies resilience policies to HTTP requests and other operations that need handling beyond EF Core’s built-in retries.
How deep it goes
Builds and registers retry policies, explains back-off and alternatives, then surveys timeouts, fallbacks, circuit breakers, bulkheads, and rate limiting.
Examples
Uses an XKCD API client, mocked HTTP handler, transient errors, HTTP 429 responses, and exponential retry delays.
What you can do after
Apply it via Microsoft.Extensions.Http.Polly to configure, customize, and test resilience policies for HttpClient operations.

Read how .NET in Action, Second Edition explains Polly →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.