Upstash · Method
Ratelimit.slidingWindow
Upstash Python Rate Limit provides fixed-window, sliding-window, and token-bucket algorithms. Sliding window reduces boundary bursts but costs more and is an approximation.
Last updated
Syntax
SlidingWindow(max_requests=10, window=10)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
Fixed WindowToken BucketRatelimitupstash_redis.Redis