resilience

Implement Polly v8 resilience pipelines for HTTP and non-HTTP operations.

Updated Apr 27, 2026
One-click install
npx skills add https://github.com/shahdanish/vibepos --skill resilience-shahdanish
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: resilience
Source: https://github.com/shahdanish/vibepos/tree/main/skills/resilience
Command: npx skills add https://github.com/shahdanish/vibepos --skill resilience-shahdanish

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It prevents production incidents caused by transient failures, slow dependencies, and cascading outages by guiding you to implement robust resilience patterns in .NET using Polly v8.

Core Features & Use Cases

  • HTTP client resilience with DI: Use standardized or custom resilience handlers for outbound calls to external APIs.
  • Composable resilience pipelines: Build pipelines that combine retry, circuit breaker, timeout, fallback, rate limiting, and hedging in the correct order.
  • Telemetry-ready monitoring: Enable metrics so you can observe retries, circuit breaker state, and timeouts via Polly v8/OpenTelemetry.
  • Non-HTTP resilience for databases and messaging: Apply retry and timeout pipelines to EF Core/database operations and other non-HTTP work.

Quick Start

Use the resilience skill to configure Polly v8 resilience for your HttpClient in Program.cs by adding a standard resilience handler for retries, circuit breaking, and timeouts.

Frequently Asked Questions about resilience

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

FAQPage Schema
How do I implement resilience patterns in .NET using Polly v8?

Add resilience to .NET HttpClient calls through dependency injection using Microsoft.Extensions.Http.Resilience. Configure standard or custom resilience handlers in Program.cs to apply retry, circuit breaking, and timeout policies to outbound external API requests.

Can I apply Polly v8 resilience pipelines to non-HTTP operations like databases?

Apply Polly v8 resilience pipelines to non-HTTP operations by configuring named ResiliencePipeline registrations. Use these pipelines to add retry and timeout protection to EF Core database operations, messaging systems, and other non-HTTP workloads.

How do I monitor circuit breaker state and retry metrics in .NET?

Monitor circuit breaker state and retry metrics by enabling telemetry instrumentation in Polly v8. The resilience pipelines integrate with OpenTelemetry, allowing you to observe metrics for retries, timeouts, and circuit breaker transitions during runtime.

What is the correct order to compose Polly v8 resilience strategies?

Composing Polly v8 resilience strategies requires combining retry, circuit breaker, timeout, fallback, rate limiting, and hedging in the correct sequence within a ResiliencePipeline. Proper ordering ensures applications handle transient faults and latency spikes effectively without cascading outages.

Does Microsoft.Extensions.Http.Resilience support hedging and rate limiting for .NET apps?

Microsoft.Extensions.Http.Resilience supports composable resilience pipelines including hedging and rate limiting. Configuring these strategies with Polly v8 hardens .NET applications by preventing production incidents caused by slow dependencies and cascading failures.