New advertisers: 50% off your first month with code FIRSTMONTHSee slots
giuseppe-trisciuoglio avatar

Spring Boot Resilience4j

Fault-tolerance annotations for Spring Boot 3.x covering circuit breakers, retries, rate limiters, bulkheads, time limiters, and fallbacks.

skills.sh installs
4K
GitHub stars
372
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers circuit breaker, retry, rate limiter, bulkhead, time limiter, and fallback patterns for calls to external services
  • Includes Maven and Gradle dependency setup, application.yml configuration examples, and stacked-annotation combinations on a single method
  • Supports semaphore bulkheads for synchronous methods and thread-pool bulkheads for CompletableFuture methods
  • Designed for Spring Boot 3.x services that need to prevent cascading failures from downstream dependencies

Install

$ npx -y skills add giuseppe-trisciuoglio/developer-kit --skill spring-boot-resilience4j -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Spring Boot Resilience4j Patterns

Overview

Provides Resilience4j patterns (circuit breaker, retry, rate limiter, bulkhead, time limiter, fallback) for Spring Boot 3.x fault tolerance with configuration and testing workflows.

When to Use

  • Implementing fault tolerance and preventing cascading failures
  • Adding circuit breakers, retry logic, or rate limiting to service calls
  • Handling transient failures with exponential backoff
  • Protecting services from overload and resource exhaustion
  • Combining multiple patterns for comprehensive resilience

Instructions

1. Setup and Dependencies

Add Resilience4j dependencies to your project. For Maven, add to pom.xml:

<dependency>
    <groupId>io.github.resilience4j</groupId>
    <artifactId>resilience4j-spring-boot3</artifactId>
    <version>2.2.0</version> // Use latest stable version
</dependency>
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-aop</artifactId>
</dependency>
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-actuator</artifactId>
</dependency>

For Gradle, add to build.gradle:

Details

Repository
github.com/giuseppe-trisciuoglio/developer-kit
Categories
Java & JVM, Backend & APIs
First seen
May 16, 2026

More from giuseppe-trisciuoglio/developer-kit

All 95

Similar to Spring Boot Resilience4j

More Java & JVM