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
numberinterval
property
scope
property
algorithm
property
burst
property
numberrefillRate
property
numberleakRate
property
numberkeyResolver
property
keyPrefix
property
stringstorage
property
violations
property
queue
property
windows
property
roleLimits
property
Record<string, RateLimitLimiterConfig>roleLimitStrategy
property