implement-resilience

Apply Resilience4j and CircuitBreakerManager resilience patterns to Firefly Framework services.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/fireflyframework/fireflyframework-claude-skills --skill implement-resilience
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: implement-resilience
Source: https://github.com/fireflyframework/fireflyframework-claude-skills/tree/main/skills/implement-resilience
Command: npx skills add https://github.com/fireflyframework/fireflyframework-claude-skills --skill implement-resilience

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables adding resilience patterns (circuit breakers, retries, rate limiting, and bulkheads) to Firefly Framework services, guarding against outages and cascading failures.

Core Features & Use Cases

  • Resilience4j-based protection for reactive event publishers (EDA) and service clients
  • Custom resilience primitives (AdvancedResilienceManager, CircuitBreakerManager) providing bulkhead, token-bucket rate limiting, adaptive timeout, and load shedding
  • Configuration-driven defaults and observability with health state reporting and status checks

Quick Start

Enable resilience in your Firefly service by configuring the EDA and client patterns and wrapping publishers and clients with the provided resilience decorators.

Frequently Asked Questions about implement-resilience

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

FAQPage Schema
How do I add circuit breakers and retry logic to Firefly framework services?

You can add circuit breakers and retry logic to Firefly services by applying Resilience4j decorators to reactive event publishers and wrapping clients with a custom CircuitBreakerManager. This guards against outages and cascading failures using configuration-driven defaults.

What resilience patterns are available for reactive event-driven architectures in Firefly?

Resilience patterns for Firefly EDA include Resilience4j-based circuit breakers and retries for reactive publishers. These runtime decorators enable automatic activation to protect event flows against downstream service failures.

Can I apply rate limiting and bulkhead isolation to both rest and reactive client paths?

Yes, Firefly's custom CircuitBreakerManager applies token-bucket rate limiting, bulkhead isolation, and adaptive timeout across both rest and reactive paths. This prevents resource exhaustion and load shedding automatically.

Does Firefly provide health observability for circuit breaker state and resilience status?

Firefly provides resilience health observability through health state reporting and status checks. Configuration-driven defaults activate these monitors automatically, enabling real-time visibility into circuit breaker and bulkhead states.

When should I configure bulkhead and adaptive timeout patterns for microservices?

You should configure bulkhead and adaptive timeout patterns when microservices face cascading failure risks or resource exhaustion. Firefly's AdvancedResilienceManager applies load shedding to isolate failures and prevent system-wide outages.