79469483

Date: 2025-02-26 11:15:01
Score: 1
Natty:
Report link

From https://github.com/resilience4j/resilience4j/issues/2064 :

We calculate refresh periods from the limiter construction time https://github.com/resilience4j/resilience4j/blob/master/resilience4j-ratelimiter/src/main/java/io/github/resilience4j/ratelimiter/internal/AtomicRateLimiter.java#L66

If you need to do it from the first request, I'd suggest creating rate limiters lazily just before the first request.

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Eric Bonnot