Spring / Resilience4j Interview questions
What is the Cache module in Resilience4j?
The Cache module wraps a function call so that a previously computed result for the same input is returned directly, skipping the actual call entirely on a cache hit.
It's built on top of the JSR-107 (JCache) specification, so it needs an actual JCache provider - such as Ehcache - configured underneath; Resilience4j itself only supplies the decorator that checks and populates that cache around the call.
It's a narrower tool than a general application cache: it's meant for caching the outcome of a specific resilience-wrapped operation, not for general-purpose data caching across an application, and it has seen less active development than modules like CircuitBreaker and Retry.
More Related questions...