circuit-breaker

Implement circuit breaker logic to isolate failing services and trigger fallbacks.

Updated Jun 5, 2026
One-click install
npx skills add https://github.com/hung-phan/system-skills --skill circuit-breaker-hung-phan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: circuit-breaker
Source: https://github.com/hung-phan/system-skills/tree/main/skills/system-review/references/reliability/circuit-breaker
Command: npx skills add https://github.com/hung-phan/system-skills --skill circuit-breaker-hung-phan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires resilience4j, polly, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a framework for implementing circuit breaker logic to prevent cascading failures in your service architecture, improving system resilience.

Core Features & Use Cases

  • Prevent Cascading Failures: Implement a circuit breaker that can automatically detect and isolate failing services, preventing their failure from spreading to other components.
  • Service Resilience: Ensure that your services can recover from outages and continue to operate without impacting the overall system.
  • Use Case: Use the circuit breaker Skill to detect failures in a critical downstream service and automatically route traffic to a fallback or a secondary service to maintain service availability.

Quick Start

Run the circuit breaker script to set up a circuit breaker for the 'billing-service'.

Frequently Asked Questions about circuit-breaker

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

FAQPage Schema
How do I prevent cascading failures in my service architecture?

Circuit breaker logic prevents cascading failures by automatically detecting and isolating failing services in your architecture. It stops downstream outages from spreading to other components by triggering fallbacks or redirecting traffic when failure thresholds are met.

How does a circuit breaker handle failing downstream services?

A circuit breaker handles failing services by monitoring error rates and automatically isolating them when failures occur. Once isolated, it triggers configured fallbacks or routes traffic to secondary services to maintain overall system availability.

Can I use Resilience4j or Polly to implement dependency isolation?

Yes, this Skill leverages Resilience4j and Polly as dependencies to implement dependency isolation. They provide the underlying framework needed to monitor service topology and configure the circuit breaker logic required for resilience engineering.

What do I need to configure before setting up a circuit breaker?

Before setting up a circuit breaker, you need a robust understanding of your system's topology and dependency relationships. Configuring it appropriately requires mapping how your services interact to accurately isolate failing components and trigger fallbacks.

When should I not use a circuit breaker for service resilience?

You should not use a circuit breaker if you lack a clear understanding of your system's topology and dependency relationships. Without mapping these interactions, you cannot appropriately configure the isolation logic or define meaningful fallbacks for failing services.