Skip to main content
RateLimit defines gateway-level rate limiting with configurable identifiers. Frontline executes RateLimit policies and delegates counter state to rate limiting, so policy execution uses the same distributed counters as API and Frontline rate-limit checks.

Fields

int64
Maximum number of requests allowed in the time window.
int64
Time window in milliseconds. For example, limit: 100 with window_ms: 60000 means 100 requests per minute.
RateLimitIdentifier[]
Ordered list of 1 to 5 sources that form the rate limit key. Each unique combination of resolved values gets its own counter with the same limit and window.
RateLimitIdentifier
deprecated
Deprecated single-source form. Frontline still reads it from policies stored before compound identifiers existed; the API normalizes all writes to identifiers.

Examples

Identifier sources