Provides fault tolerance patterns for Spring Boot 3.x using Resilience4j. Use when implementing circuit breakers, handling service failures, adding retry logic…
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 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:
don't have the plugin yet? install it then click "run inline in claude" again.