Back to problems

Distributed Rate Limiter with Lua Details

System Design · Apple · Medium

Requirements Create a rate-limiting system that operates in a distributed environment. Functional requirements: Rate limits must be applicable to a user, IP address, API key, or service principal. Limits need to be configurable for individual endpoints or customer/service tiers. Requests handled by different application instances must receive a consistent throttling or rejection outcome. Callers should receive an explicit permit-or-reject result along with sufficient…

Checking your access…