Back to problems

Design a Rate Limiter with Variable User Quotas

System Design · xAI · Easy

Design a Rate Limiter That Supports Per-User Quotas System Design Software Engineer High Frequency Problem Statement Create a rate-limiting service in which every user may have an individual token allowance. Rather than applying one universal cap to everyone, such as 100 requests each minute, the system must accommodate users whose quotas differ substantially. For instance: Alex (advanced user): 8,000 tokens per second Standard user: 120 tokens per second Basic-tier user: 15…

Checking your access…