Spring / Resilience4j Interview questions
What is a RateLimiter in Resilience4j?
A RateLimiter caps how many calls are allowed to proceed within a fixed time window, rejecting or delaying calls beyond that limit rather than letting demand spike freely against a dependency.
It's configured with limitForPeriod (how many calls are permitted per window), limitRefreshPeriod (how long each window lasts), and timeoutDuration (how long a call waits for a permit before failing with a RequestNotPermitted exception).
It's typically used to respect a third-party API's rate limits, or to protect an internal service from being overwhelmed by a sudden burst of traffic.
More Related questions...