Application resilience in microservices is achieved by combining several complementary patterns that each protect the system from a different type of failure.
Resilience4j in a Spring Boot application can combine all of these on a single method — a bulkhead-limited thread pool, a circuit breaker tracking failures, a retry policy with backoff, and a fallback method, all layered together around a single external call.
# Resilience4j: one configuration file for all resilience patterns
resilience4j:
circuitbreaker:
instances:
inventory:
failure-rate-threshold: 50
wait-duration-in-open-state: 30s
retry:
instances:
inventory:
max-attempts: 3
wait-duration: 500ms
enable-exponential-backoff: true
bulkhead:
instances:
inventory:
max-concurrent-calls: 25
ratelimiter:
instances:
inventory:
limit-for-period: 100
limit-refresh-period: 1s
timelimiter:
instances:
inventory:
timeout-duration: 2s
// Applied with annotations: @CircuitBreaker, @Retry, @Bulkhead,
// @RateLimiter and @TimeLimiter, each with name = "inventory"A concise interview answer is
For application resilience I'd combine Circuit Breakers to stop calling a failing dependency, Retry with backoff for transient issues, Bulkheads to isolate resources per dependency, and Fallback methods so the user gets a degraded response instead of a hard failure. Used together, typically via Resilience4j in a Spring Boot app, they cover the different ways a dependency can fail.
Last updated: 11 November 2026
Previous question: What are the ways microservices communicate with each other?