Home

resilience4jspringboot

Resilience4jspringboot is a module in the resilience4j ecosystem that provides Spring Boot support for resilience4j's fault-tolerance capabilities. It enables automatic configuration and a Spring-friendly programming model, allowing developers to apply circuit breakers, retries, bulkheads, rate limiters, and time limiters in Spring Boot applications with minimal boilerplate.

The module integrates with Spring Boot through auto-configuration, Spring annotations, and Spring Boot properties. Developers can

Under the hood, resilience4jspringboot wires resilience4j components into Spring beans, typically via proxies, to intercept method

The project targets compatibility with supported Spring Boot versions and resilience4j releases. It is commonly used

declare
resilience
patterns
using
annotations
such
as
@CircuitBreaker,
@Retry,
@Bulkhead,
@TimeLimiter,
and
@RateLimiter,
and
configure
instance-level
behavior
via
application.properties
or
application.yaml
under
resilience4j.*
keys.
It
is
designed
to
work
alongside
Spring
Boot's
metrics
and
health
tooling,
providing
visibility
into
resilience
behavior.
invocations
and
apply
the
configured
policies.
It
also
provides
metrics
and
health
indicators
through
Spring's
actuator
and
Micrometer
integration,
enabling
monitoring
of
fault-tolerance
behavior.
to
implement
resilient
service-to-service
calls
in
microservices
or
modular
applications,
balancing
reliability
with
throughput
while
maintaining
a
declarative,
centralized
configuration
model.
It
relies
on
the
resilience4j
core
library
and
complements
it
by
adapting
features
to
the
Spring
Boot
ecosystem
rather
than
replacing
core
functionality.