Skip to content

MediumScenarioClassic design problems

Design a rate limiter for an API gateway.

What a good answer covers

Use per-client counters with token bucket or sliding window stored in a fast shared store such as Redis, enforce at the gateway, return 429 with Retry-After, support rule configuration and handle store failure with an open or closed policy.

More on Classic design problems

Flashcards for this topic