Object-Oriented Programming · Amazon · Medium
Requirements Design a rate-limiting component with this API: The method must decide whether a request from the specified user is accepted. Before implementing it, clarify the missing policy choices, including the duration of the time window, the request limit, whether the window is fixed or sliding, whether the rate is expressed per second or per minute, and how much bursting is permitted. Also explain how memory usage grows and how expired state is removed. Examples With a…
Checking your access…