Skip to main content
Version: 1.x

RateLimitLimiterConfig

RateLimitLimiterConfig​

Core limiter configuration used by plugin and directives.

Signature
interface RateLimitLimiterConfig {
maxRequests?: number;
interval?: DurationLike;
scope?: RateLimitScope | RateLimitScope[];
algorithm?: RateLimitAlgorithmType;
burst?: number;
refillRate?: number;
leakRate?: number;
keyResolver?: RateLimitKeyResolver;
keyPrefix?: string;
storage?: RateLimitStorageConfig;
violations?: ViolationOptions;
queue?: RateLimitQueueOptions;
windows?: RateLimitWindowConfig[];
roleLimits?: Record<string, RateLimitLimiterConfig>;
roleLimitStrategy?: RateLimitRoleLimitStrategy;
}

maxRequests​

property
number

interval​

property

scope​

algorithm​

burst​

property
number

refillRate​

property
number

leakRate​

property
number

keyResolver​

keyPrefix​

property
string

storage​

violations​

queue​

windows​

roleLimits​

property
Record<string, RateLimitLimiterConfig>

roleLimitStrategy​