RateLimitStrategy Type

Strategy for rate limiting

Union cases

Union case Description

FixedWindow

Full Usage: FixedWindow

Fixed window: Resets counter at fixed intervals

SlidingWindow

Full Usage: SlidingWindow

Sliding window: More accurate, considers requests in the last N seconds

TokenBucket refillRate

Full Usage: TokenBucket refillRate

Parameters:
    refillRate : float

Token bucket: Allows bursts up to bucket capacity

refillRate : float

Instance members

Instance member Description

this.IsFixedWindow

Full Usage: this.IsFixedWindow

Returns: bool
Returns: bool

this.IsSlidingWindow

Full Usage: this.IsSlidingWindow

Returns: bool
Returns: bool

this.IsTokenBucket

Full Usage: this.IsTokenBucket

Returns: bool
Returns: bool