resilience-patterns

Implement circuit breakers, retries, bulkheads, fallbacks, and timeouts for external dependencies.

Updated Feb 3, 2026
One-click install
npx skills add https://github.com/dhruvinrsoni/agentskills-garden --skill resilience-patterns-dhruvinrsoni
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: resilience-patterns
Source: https://github.com/dhruvinrsoni/agentskills-garden/tree/main/skills/30-implementation/resilience-patterns
Command: npx skills add https://github.com/dhruvinrsoni/agentskills-garden --skill resilience-patterns-dhruvinrsoni

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill ensures your applications remain available and functional even when external services or dependencies experience failures, preventing cascading outages and improving user experience.

Core Features & Use Cases

  • Graceful Degradation: Implements patterns to handle failures without crashing.
  • Dependency Resilience: Manages failures in APIs, databases, and third-party services.
  • Use Case: An e-commerce site uses this skill to ensure users can still browse products and see cached information even if the inventory or payment service is temporarily down.

Quick Start

Apply the resilience-patterns skill to protect the 'user-profile-api' dependency with a circuit breaker and retry logic.

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 when external dependencies go down?

Prevent cascading failures by implementing circuit breakers, bulkhead isolation, and fallback chains to isolate dependency faults and provide alternative responses. This ensures system stability when external services become unavailable.

What is the best way to handle transient failures in distributed systems?

Handle transient failures using retries with exponential backoff and jitter. This approach spaces out repeated requests to manage service unavailability and performance degradation without overwhelming the struggling dependency.

How do circuit breakers and fallback chains work for API fault tolerance?

Circuit breakers monitor API calls and trip when failures exceed a threshold, stopping further requests. Fallback chains then execute to provide cached or default alternative responses, ensuring graceful degradation.

Can I use bulkhead isolation to manage performance degradation in microservices?

Yes, bulkhead isolation partitions resources for individual microservice dependencies. This confines performance degradation to a single partition, preventing resource exhaustion from crashing the entire distributed system.

When do I need timeout management for external dependency interactions?

You need timeout management when external dependencies experience latency or performance degradation. Setting strict timeout limits prevents thread blocking, ensuring your application remains responsive during upstream delays.