Package Overview
Polly v8 is distributed across multiple NuGet packages:Polly.Core
Core abstractions and built-in resilience strategies
Polly.Extensions
Dependency injection and telemetry support
Polly.RateLimiting
Integration with System.Threading.RateLimiting APIs
Polly.Testing
Testing utilities for resilience pipelines
Polly.Core
The core package provides the fundamental abstractions and built-in resilience strategies including Retry, Circuit Breaker, Hedging, Timeout, Chaos, and Fallback.Minimum Requirements: .NET Standard 2.0, .NET Framework 4.6.2+, .NET 6+, .NET 8+
Target Frameworks
Polly.Core supports multiple target frameworks:- .NET 8.0+
- .NET 6.0+
- .NET Standard 2.0
- .NET Framework 4.7.2
- .NET Framework 4.6.2
For .NET 8.0 and later, Polly.Core is AOT (Ahead-of-Time) compatible, making it suitable for native compilation scenarios.
Polly.Extensions
Provides integration with Microsoft.Extensions.DependencyInjection for managing resilience pipelines and adds telemetry support with built-in logging and metrics.Polly.RateLimiting
Integrates Polly with .NET’sSystem.Threading.RateLimiting APIs, providing concurrency limiters and sliding window rate limiters.
Polly.Testing
Provides utilities for testing resilience pipelines, allowing you to assert on pipeline composition and strategy configuration.Complete Installation
For a full-featured installation with all capabilities, install bothPolly.Core and Polly.Extensions:
Legacy Polly Package
ThePolly package (without .Core suffix) contains the legacy v7 API. If you’re starting a new project, use the v8 packages listed above.
For migration from v7 to v8, see the migration guide.