spring-boot-resilience4j

Implement Resilience4j circuit breakers, retries, and rate limiters in Spring Boot.

Updated Mar 2, 2026
One-click install
npx skills add https://github.com/MassimilianoPili/claude-code-config --skill spring-boot-resilience4j-massimilianopili
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: spring-boot-resilience4j
Source: https://github.com/MassimilianoPili/claude-code-config/tree/main/skills/spring-boot-resilience4j
Command: npx skills add https://github.com/MassimilianoPili/claude-code-config --skill spring-boot-resilience4j-massimilianopili

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers implement fault tolerance and resilience patterns in Spring Boot applications, preventing cascading failures and improving application stability.

Core Features & Use Cases

  • Circuit Breaker: Prevents repeated calls to failing services.
  • Retry: Automatically retries transient failures.
  • Rate Limiter: Controls the rate of requests to protect services.
  • Bulkhead: Isolates failures to prevent thread pool exhaustion.
  • Time Limiter: Enforces timeouts on operations.
  • Use Case: In a microservices architecture, when one service becomes unavailable, this Skill ensures that other services can gracefully degrade, retry operations, or return fallback data instead of crashing.

Quick Start

Add the Resilience4j dependencies to your Spring Boot project and apply the @CircuitBreaker annotation to methods calling external services.

Frequently Asked Questions about spring-boot-resilience4j

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

FAQPage Schema
How do I prevent cascading failures in Spring Boot microservices?

To prevent cascading failures in Spring Boot microservices, apply fault tolerance patterns like circuit breakers and bulkheads using Resilience4j. This isolates failing services and stops failures from propagating across your architecture.

What is the best way to configure a circuit breaker in a Spring Boot application?

The best way to configure a circuit breaker in Spring Boot is adding Resilience4j dependencies and applying the @CircuitBreaker annotation to methods calling external services. This prevents repeated calls to failing downstream components.

How do I automatically retry transient failures in Spring Boot?

To automatically retry transient failures in Spring Boot, use the Resilience4j retry pattern. It intercepts failing operations and re-executes them automatically, improving stability when temporary network or service issues occur.

Do I need Spring Boot Actuator to monitor Resilience4j circuit breakers?

Yes, you need Spring Boot Actuator and AOP for seamless integration and monitoring of Resilience4j circuit breakers. Actuator exposes the endpoints required to observe circuit breaker states and metrics.

Can Resilience4j isolate thread pool exhaustion in microservices?

Yes, Resilience4j can isolate thread pool exhaustion in microservices using the Bulkhead pattern. Bulkheads restrict the number of concurrent calls to a service, preventing thread exhaustion from taking down the entire application.

How do I enforce timeouts on external service calls in Spring Boot?

To enforce timeouts on external service calls in Spring Boot, implement the Resilience4j Time Limiter pattern. It enforces strict time limits on operations, ensuring your application drops calls that exceed the configured duration.