Question bank › Low-Level Design
Lld Low-Level Design Medium

Adaptive Multi-Tier Rate Limiter

Design a library for an API Gateway that manages rate limiting across different dimensions: IP, UserID, and API Key. The system must support pluggable algorithms (Token Bucket, Sliding Window) and provide a 'graceful degradation' mode where it switches to a local in-memory cache if the centralized Redis store becomes unresponsive. The design should allow developers to define hierarchical rules (e.g., a global limit per IP and a stricter limit per specific endpoint).

Key concepts

strategy patterndecorator patternconcurrency

Practise this out loud — free

Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.

🎙 Practise this question now
Part of InterviewLab's verified interview question bank. We show the prompt and concepts to practise with — never a copy-paste solution.