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…
More Headway interview questions
- Fix the Bug in LogEntry Timestamp Parsing (Missing float)
- Count Complete Journeys in a Toll Log
- Catch Speeders from Toll Logs
- Obstacle Course Run Analytics (Personal Best, Best-of-Bests, Monte Carlo)
- Implement Fixed-Window Rate Limiter (Global + Per-Endpoint)
- Two-Team Turn-Based Battle Simulator