Arcjet · Function
slidingWindow
slidingWindow limits each client to a maximum number of requests during a moving time interval. Configure the interval length, request limit, enforcement mode, and optional client characteristics.
Last updated
Syntax
slidingWindow({ mode?: "LIVE" | "DRY_RUN", characteristics?: string[], interval: number, max: number })In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
fixedWindowtokenBucketcharacteristicsmodeintervalmax