Implement Layered Endpoint and Global Rate Limits
Company: Headway
Role: Software Engineer
Category: Software Engineering Fundamentals
Difficulty: medium
Interview Round: Technical Screen
Quick Answer: Design an in-process rolling-window rate limiter that enforces both per-endpoint and backend-wide limits atomically. Examine boundary semantics, concurrent calls, bounded endpoint state, deterministic testing, retry metadata, and the trade-offs of distributed enforcement.