Skip to main content
hard

Cloudflare Rate Limiter

Also known as: Rate Limiter Models

Cloudflare Rate Limiter (Part 1: Fixed Window) RateLimiter(max_requests, window_seconds) - allow(timestamp) -> bool

Implement fixed window, sliding window, token bucket, and compound (burst+sustained) rate limiting. Each part changes the underlying model and adds a trap.

Design

Meet Coco

Coco is an AI study partner, not a person. She listens while you explain your code, asks what a line does and never hands you the fix. Typing with Coco is free when you sign in, up to a daily limit. Talking with her out loud comes with the $79 pack. Anyone can open the editor and run their code.

1Fixed Windowmedium
2Part 2
3Part 3
4Part 4

Each locked part opens in the editor once the part before it passes.