Pergunta de entrevista da empresa Amazon

Design a rate limiter for an API that supports millions of requests per second.

Resposta da entrevista

Sigiloso

4 de jun. de 2025

I discussed using a token bucket or leaky bucket algorithm to manage traffic, combined with Redis for distributed state management and time-based sliding windows. I walked through the trade-offs between latency, consistency, and fault tolerance.