dotnet-resilience

Implement Polly v8 resilience pipelines for .NET HTTP clients.

71|10|Updated Feb 11, 2026
One-click install
npx skills add https://github.com/wshaddix/dotnet-skills --skill dotnet-resilience-wshaddix
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-resilience
Source: https://github.com/wshaddix/dotnet-skills/tree/main/skills/dotnet-resilience
Command: npx skills add https://github.com/wshaddix/dotnet-skills --skill dotnet-resilience-wshaddix

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers implement fault tolerance patterns in .NET applications, ensuring services remain available and responsive even when dependencies fail.

Core Features & Use Cases

  • Standard Resilience Pipeline: Easily configure retry, circuit breaker, and timeout policies for HTTP clients using Microsoft.Extensions.Http.Resilience.
  • Custom Pipelines: Define complex, multi-stage resilience strategies for various scenarios like database interactions or external API calls.
  • Use Case: Protect your application from transient network issues or slow downstream services by automatically retrying failed requests or temporarily blocking calls to an unhealthy service.

Quick Start

Add the standard resilience handler to your HTTP client configuration in your .NET application.

Frequently Asked Questions about dotnet-resilience

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement circuit breaker and retry patterns in .NET?

You can implement circuit breaker and retry patterns in .NET by configuring resilience pipelines using Polly v8 and Microsoft.Extensions.Http.Resilience, which automatically handles transient failures for HTTP clients.

What is the best way to add fault tolerance to .NET HTTP clients?

The best way to add fault tolerance to .NET HTTP clients is by adding a standard resilience handler to your HTTP client configuration, enabling retries, circuit breakers, and total timeouts through dependency injection.

Can I use Polly v8 for non-HTTP scenarios like database interactions?

Yes, Polly v8 supports custom pipeline composition for non-HTTP scenarios, allowing you to define complex, multi-stage resilience strategies for database interactions and external API calls.

How does .NET resilience pipeline telemetry work?

.NET resilience pipelines emit telemetry via System.Diagnostics, allowing you to monitor the behavior of retries, circuit breakers, and timeouts within your application's observability stack.

Does Microsoft.Extensions.Http.Resilience support rate limiting and attempt timeouts?

Yes, Microsoft.Extensions.Http.Resilience supports standard resilience pipelines that include rate limiting, total timeouts, retries, circuit breakers, and attempt timeouts for HTTP clients.