Interview practice
Work through a design the way a strong interview goes: clarify, estimate, sketch the API and data, then the architecture, then go deep and talk trade-offs. Write your own answer for each part before revealing the reference.
These are design exercises, not descriptions of how any company actually builds its systems.
- Intermediate45 minDesign a Rate LimiterDesign a distributed rate limiter for a fleet of API gateways: limiting algorithms, atomic counters in Redis, rule distribution, fail-open behaviour and the accuracy-versus-latency trade-off.Start →
- Beginner45 minDesign a URL ShortenerDesign a service that turns long URLs into short links and redirects billions of clicks quickly: key generation, a read-heavy key-value data path, caching and click analytics.Start →
- Advanced60 minDesign a Notification ServiceDesign a platform that sends email, SMS and push notifications for many internal services: fan-out, user preferences, per-channel queues, provider rate limits and failover, retries and deduplication.Start →