polly-resilience

Community

Build robust .NET HTTP resilience pipelines

AuthorFaysilAlshareef
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Many .NET applications fail unpredictably when downstream services are slow, rate-limited, or intermittently unavailable; this Skill provides patterns and guidance to make calls resilient and observable so services degrade gracefully instead of failing catastrophically.

Core Features & Use Cases

  • Standard HTTP Resilience: Apply a sensible default pipeline to HTTP clients to get retry, circuit breaker, and timeout behavior out of the box.
  • Custom and Named Pipelines: Create per-backend pipelines with custom retry strategies, jitter, circuit breaker thresholds, timeouts, fallback logic, hedging, and typed results.
  • Non-HTTP Support: Apply retry and timeout pipelines to database calls, message handling, or other I/O operations via ResiliencePipeline and DI.
  • Use Case: Protect an Orders API client with an exponential-backoff retry plus circuit breaker and a per-attempt timeout, and provide a fallback for degraded responses while emitting telemetry for monitoring.

Quick Start

Add a named HTTP client, apply AddStandardResilienceHandler for defaults, and customize a pipeline with AddResilienceHandler to configure retry, circuit breaker, timeout, and optional fallback strategies.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: polly-resilience
Download link: https://github.com/FaysilAlshareef/dotnet-ai-kit/archive/main.zip#polly-resilience

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.