Package dev.relism.flash.ext.limiter.strategy
package dev.relism.flash.ext.limiter.strategy
-
ClassesClassDescriptionFixed-window rate limit: allows up to
LimitConfig.limit()requests per window ofLimitConfig.windowMs()milliseconds.Sliding-window counter rate limit: approximates a true sliding window by interpolating between the previous fixed window's count and the current window's count.Token-bucket rate limit: tokens refill continuously at a rate oflimit / windowMstokens per millisecond, up to a maximum oflimittokens.