resilience-patterns

Implement circuit breakers, retries, bulkheads, and fallbacks for distributed services.

1|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/Prathmesh2000/cursor_agent-orchestrator --skill resilience-patterns-prathmesh2000
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: resilience-patterns
Source: https://github.com/Prathmesh2000/cursor_agent-orchestrator/tree/main/agent-system/skills/resilience-patterns
Command: npx skills add https://github.com/Prathmesh2000/cursor_agent-orchestrator --skill resilience-patterns-prathmesh2000

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams design and implement resilience in distributed systems to prevent cascading failures and improve service availability.

Core Features & Use Cases

  • Circuit Breaker: prevent endless calls to failing dependencies and fail fast.
  • Retry with Backoff: automatically retry transient failures with exponential backoff and jitter.
  • Bulkhead Isolation: cap concurrent calls per dependency to protect system health.
  • Fallback & Degradation: provide graceful degradation when a dependency is unavailable.
  • Health & Observability: integrate with health checks and metrics to detect and respond to issues.

Quick Start

Identify a dependency prone to faults and implement a resilience pattern around its calls to improve overall reliability.

Frequently Asked Questions about resilience-patterns

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

FAQPage Schema
How do I prevent cascading failures in microservices when external dependencies go down?

Retry transient failures in distributed services using exponential backoff with jitter. This resilience pattern spaces out retry attempts to prevent overwhelming recovering dependencies and minimizes downtime impact.

What is bulkhead isolation and when do I need it for distributed systems?

Bulkhead isolation is a resilience strategy that caps concurrent calls per dependency to protect system health. You need it when one slow or failing external service should not exhaust threads or connections needed by other healthy services.

How to implement timeout budgets and fallback degradation for fault-tolerant services?

Implement timeout budgets by setting strict limits on external dependency calls, and provide fallback degradation to return graceful default responses. These fault-tolerance strategies ensure distributed services remain responsive when dependencies are unavailable.

Can I integrate circuit breaker and retry patterns with existing health checks and metrics?

Yes, resilience patterns like circuit breaking and retry backoff can integrate with health checks and metrics. This observability integration helps detect dependency issues early and allows automated systems to respond to failures effectively.

When should I not use a circuit breaker pattern in microservices?

You should avoid circuit breaker patterns when dependencies are highly reliable or when failing fast is unacceptable. If operations are idempotent and require guaranteed eventual consistency, alternative resilience strategies may be more appropriate.