Upstash · Method
Ratelimit.fixedWindow
Upstash’s Python rate-limit SDK provides Fixed Window, Sliding Window, and Token Bucket algorithms. Each algorithm makes a different trade-off between simplicity, accuracy, storage, and burst handling.
Last updated
Syntax
Ratelimit(redis=Redis.from_env(), limiter=FixedWindow(max_requests=10, window=10))In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
RatelimitFixedWindowSlidingWindowTokenBucketlimitResponse