Interview Q&A / System Design

INTERVIEW Q&A · 70 QUESTIONS

System Design interview questions

Caching, scaling, databases and classic design problems for beginners.

  1. How would you design a rate limiter?

    A rate limiter caps how many requests a client can make in a time window, for example 100 per minute per user, and rejects extras with HTTP 429. Common algorithms are token bucket (allows short bursts), fixed window, sliding window log and sliding window counter. In a distributed system the counters live in a shared store like Redis and are updated atomically.

    AdvancedIn-depth4 min read