Circuit Breaker Patterns

Community

Enhance system resilience.

Authordoanchienthangdev
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses the critical problem of cascading failures in distributed systems by implementing robust circuit breaker patterns, ensuring that temporary service outages do not bring down the entire application.

Core Features & Use Cases

  • Circuit Breaker States: Manages 'Closed', 'Open', and 'Half-Open' states to control traffic flow to failing services.
  • Resilience Patterns: Integrates with Retry, Timeout, Bulkhead, and Fallback strategies for comprehensive fault tolerance.
  • Implementation Examples: Provides code snippets for Resilience4j (Java) and Opossum (Node.js) to demonstrate practical application.
  • Use Case: In a microservices architecture, if the 'user-service' becomes unresponsive, the circuit breaker will open, preventing further requests and allowing a fallback mechanism (e.g., serving cached data) to gracefully degrade the user experience instead of causing a complete application failure.

Quick Start

Implement a circuit breaker for the 'userService' with a 50% failure threshold and a 30-second wait duration in the open state.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: Circuit Breaker Patterns
Download link: https://github.com/doanchienthangdev/omgkit/archive/main.zip#circuit-breaker-patterns

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.