Updates RateLimiterResponse to include retryAfter. This value represents the earliest possible time this request with this complexity would succeed. If the number of tokens requested exceeds the capacity then retryAfter = Infinity
[x] Open issue to add retryAfter to other rate limiters
Adds tests for the SlidingWindowLog rate limiter
Implements the SlidingWindowLog rate limiter to match the spec in #67 with the addition of retryAfter
[x] add ability to instantiate limiter
Type of Change
Please delete options that are not relevant.
[x] New feature (non-breaking change which adds functionality)
Summary
RateLimiterResponse
to includeretryAfter
. This value represents the earliest possible time this request with this complexity would succeed. If the number oftokens
requested exceeds thecapacity
thenretryAfter = Infinity
retryAfter
to other rate limitersSlidingWindowLog
rate limiterSlidingWindowLog
rate limiter to match the spec in #67 with the addition ofretryAfter
Type of Change
Please delete options that are not relevant.
Issues
Evidence