spring-boot-resilience4j

Installation
Summary

Fault tolerance and resilience patterns for Spring Boot microservices using Resilience4j.

  • Provides six core patterns: circuit breaker, retry with exponential backoff, rate limiter, bulkhead (semaphore and thread pool), time limiter, and fallback mechanisms
  • Annotation-based integration with Spring Boot 3.x AOP; patterns can be stacked on single methods for comprehensive fault tolerance
  • Includes configuration examples for all patterns in YAML, with health indicator and Actuator endpoint integration for monitoring circuit breaker states and metrics
  • Best practices cover idempotent retries, appropriate failure thresholds, constructor injection, and graceful degradation through fallback methods
SKILL.md

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:

Related skills

More from giuseppe-trisciuoglio/developer-kit

Installs
904
GitHub Stars
246
First Seen
Feb 3, 2026