resilience

Implement Polly v8 resilience pipelines for .NET 10 HTTP clients.

1|Updated Apr 28, 2026
One-click install
npx skills add https://github.com/Trossitec/dotnet-claude-kit --skill resilience-trossitec
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: resilience
Source: https://github.com/Trossitec/dotnet-claude-kit/tree/main/skills/resilience
Command: npx skills add https://github.com/Trossitec/dotnet-claude-kit --skill resilience-trossitec

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you prevent cascading failures and improve availability in .NET 10 systems by implementing correct, production-grade resilience patterns instead of ad-hoc retries or broken circuit breakers.

Core Features & Use Cases

  • Polly v8 Resilience Pipelines for HTTP and beyond: Retry, circuit breaker, timeout, fallback, rate limiting, and hedging using ResiliencePipeline (no Polly v7 Policy APIs).
  • Correct DI integration and composition: Configure via AddResilienceHandler and AddResiliencePipeline, composing strategies in the right order and using per-attempt versus total timeouts.
  • Operational safety and observability: Emphasizes idempotency-aware retries and instrumentation/telemetry for measuring failures, circuit state, and timeouts.

Quick Start

Load the resilience skill to implement Polly v8 retry, timeout, and circuit breaker behavior for your HTTP client using AddResilienceHandler or AddStandardResilienceHandler with sensible total and per-attempt timeouts.

Frequently Asked Questions about resilience

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

FAQPage Schema
How do I add resilience patterns to my .NET HTTP client?

Add resilience patterns to your .NET HTTP client by using `AddResilienceHandler` or `AddStandardResilienceHandler` to configure Polly v8 pipelines, applying retry, circuit breaker, and timeout strategies directly to HTTP client registrations.

What is the correct order for composing Polly v8 resilience strategies?

Correct resilience strategy composition requires ordering strategies properly within `ResiliencePipeline` APIs, using explicit per-attempt versus total timeouts to prevent cascading failures and ensure production-grade operational safety.

Can I use Polly v8 resilience pipelines for non-HTTP operations in .NET?

You can configure non-HTTP resilience pipelines using `AddResiliencePipeline`, enabling hedging, fallback for graceful degradation, rate limiting, and retry logic outside of HTTP client scenarios.

How do I prevent retries from causing cascading outages during transient failures?

Prevent cascading outages by applying idempotency-aware retries alongside circuit breakers and explicit timeouts, ensuring transient failures are isolated rather than amplified across your system.

Does Polly v8 support telemetry and observability for monitoring circuit breaker state?

Polly v8 supports telemetry-friendly behavior for production observability, allowing you to instrument and measure failures, circuit state, and timeouts to monitor resilience pipeline health.