Skip to main content
Pick one per limiter. Switching algorithms for the same namespace + identifier starts a new counter — they don’t share state. Default is fixed-window.

Fixed Window

Discrete windows. Fast. Can allow 2× at the boundary.

Sliding Window

Exact timestamps. No cliff.

Token Bucket

Start full. Spend tokens. They refill over the duration.

Leaky Bucket

Fill the bucket. It leaks at a constant rate. Overflow rejects.