Hierarchical Endpoint and Global Rate Limiter

Asked at Headway · Coding Questions · Difficulty: Medium

Implement a single-process, thread-safe rate limiter. The system receives requests in order, and each request contains a timestamp and an endpoint name.

Loading the problem…