Spring / Resilience4j Interview questions
What is Resilience4j?
Resilience4j is a lightweight fault-tolerance library for Java 8 and above, built around functional programming rather than the class-heavy wrapper style of its predecessor, Netflix Hystrix.
Instead of forcing every protected call through a dedicated command class, it decorates plain Supplier, Function, Runnable, or CompletionStage instances, so existing code needs only minimal changes to gain resilience behavior.
It ships as a set of small, independent modules - CircuitBreaker, Retry, RateLimiter, Bulkhead, TimeLimiter, and Cache - so a project only pulls in the patterns it actually needs instead of one monolithic dependency.
It's widely used in Spring Boot microservices to guard calls to other services, databases, or third-party APIs against cascading failures.
More Related questions...