resilience-patterns

Implement circuit breakers, retries, timeouts, and bulkheads for distributed systems.

1|1|Updated Jan 3, 2026
One-click install
npx skills add https://github.com/layeddie/ai-rules --skill resilience-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: resilience-patterns
Source: https://github.com/layeddie/ai-rules/tree/main/skills/resilience-patterns
Command: npx skills add https://github.com/layeddie/ai-rules --skill resilience-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Resilience patterns help design fault-tolerant systems by providing circuit breakers, retry strategies, timeouts, bulkheads, and graceful degradation.

Core Features & Use Cases

  • Circuit breakers to isolate failing services and prevent cascading failures.
  • Exponential backoff retries with jitter to handle transient errors.
  • Timeout handling to avoid hanging requests.
  • Bulkhead patterns to cap resource usage and maintain service availability.
  • Graceful degradation strategies to preserve partial functionality during outages.
  • Real-world scenarios include external API calls, network issues, and partial system failures.

Quick Start

Configure a circuit breaker and exponential backoff retry policy, then wrap external calls with the pattern in your service.

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 distributed systems?

To prevent cascading failures in distributed systems, apply circuit breaker patterns to isolate failing services and stop downstream requests, maintaining overall system stability during partial outages.

What is exponential backoff with jitter for retrying transient errors?

Exponential backoff with jitter spaces out retry attempts for transient errors using progressively increasing delays plus randomized timing, preventing synchronized request surges that could overwhelm recovering network resources.

How do I configure a circuit breaker and retry policy for external API calls?

Configure a circuit breaker and exponential backoff retry policy with your desired thresholds, then wrap external API calls with the pattern in your service to handle network issues and failures.

When do I need bulkhead patterns and graceful degradation?

You need bulkhead patterns and graceful degradation during partial system outages to cap resource usage, maintain service availability, and preserve partial functionality when external dependencies fail.

Does this resilience approach provide observability and alert-ready state tracking?

This resilience approach provides observability and alert-ready state tracking by monitoring circuit breaker states, timeout events, and recovery metrics to satisfy operational detection and isolation requirements.

What is the best way to handle timeouts and avoid hanging requests in microservices?

The best way to handle timeouts and avoid hanging requests in microservices is implementing timeout handling alongside bulkheads to cap resource usage and quickly fail overworked network connections.