Skip to content
masterclass Buddy

Arcjet · Concept

Sliding window

Arcjet's sliding window rule limits a client's requests during a moving time interval. Set the interval, request maximum, 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.

Subscribe
  • fixed window rate limit
  • token bucket rate limit
  • characteristics
  • Mode.LIVE
  • Mode.DRY_RUN

Source: Rate limiting reference for Node.js | Arcjet Docs. Checked 2026-11-03.