degradation-circuit-breaking

Design bounded degradation behavior with timeouts, circuit breakers, and bulkheads.

4|Updated May 16, 2026
One-click install
npx skills add https://github.com/machenjie/rd-skills --skill degradation-circuit-breaking
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: degradation-circuit-breaking
Source: https://github.com/machenjie/rd-skills/tree/main/src/foundation/capabilities/degradation-circuit-breaking
Command: npx skills add https://github.com/machenjie/rd-skills --skill degradation-circuit-breaking

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It prevents outages and cascading failures by designing bounded, observable degradation behavior when dependencies time out, error, or slow down, so core user journeys stay protected.

Core Features & Use Cases

  • Timeouts and bounded retries: Enforces explicit connection and read timeouts and retries that are capped, jittered, and restricted to safe/idempotent operations.
  • Circuit breakers and bulkheads: Configures failure thresholds to trip and recover safely while isolating downstream dependencies to avoid exhausting shared capacity.
  • Fallback and fail-open vs fail-closed: Defines product-approved fallback behaviors (including stale-data limits) and explicit security/correctness decisions for each dependency.
  • Chaos-tested, observable degradation: Ensures fallback paths are verified with fault injection and that circuit/fallback/timeout events are emitted as metrics and structured logs.

Quick Start

Use the degradation-circuit-breaking capability to produce a resilience plan for your service’s external dependencies, including timeouts, bounded retry rules, circuit breaker thresholds, bulkhead isolation, approved fallback behavior, and required observability signals.

Frequently Asked Questions about degradation-circuit-breaking

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

FAQPage Schema
How do I prevent microservice dependency failures from cascading into core outages?

Circuit breakers stop cascading failures by tripping at customized failure thresholds, isolating downstream dependencies via bulkheads, and defining fail-open vs fail-closed behaviors. This bounded, observable degradation keeps core user journeys running when external APIs or microservices fail.

What is the best way to configure timeouts and retries for external API dependencies?

Configuring timeouts and retries requires explicit connection_timeout and read_timeout values, plus bounded, jittered retries restricted to safe, idempotent operations. This prevents retry storms and shared capacity exhaustion when downstream services slow down or error.

When should I use fail-open vs fail-closed decisions for service dependencies?

Use fail-open vs fail-closed decisions when defining explicit security and correctness behaviors for each dependency. Fail-open maintains availability during outages, while fail-closed prioritizes data integrity, requiring product-approved fallback behaviors and staleness limits to guide the choice.

How do I design bulkhead isolation sizing for microservice resilience?

Designing bulkhead isolation sizing involves isolating downstream dependencies to avoid exhausting shared capacity. You configure bounded thread or connection pools per dependency, ensuring that a slow or failing service does not consume resources needed by core flows.

Can I use chaos engineering to verify circuit breaker fallback paths?

Yes, you can use chaos engineering to verify circuit breaker fallback paths through fault injection. Chaos testing ensures that fallback behaviors, staleness limits, and circuit recovery mechanisms actually work under simulated dependency failures and timeouts.

How do I add observability metrics for circuit breaker and timeout events?

Adding observability metrics requires emitting structured logs and metrics for circuit, fallback, and timeout events. You instrument degradation behavior so that dependency failures, trip thresholds, and recovery events are fully visible and auditable during incidents.