You're a software engineer on a growing B2B SaaS platform. Last week, a single client's automated sync job consumed 40% of your API capacity for three hours, causing elevated latency and timeout errors for other clients. The engineering team has been asked to fix this before it happens again.
Build a rate-limiting middleware layer that sits between incoming requests and API handlers, enforcing configurable limits before requests reach application logic. This is a proof-of-concept — focus on engineering judgment and trade-offs, not production polish. You have 30 minutes for the build phase.
Requirements:
Constraints:
AI usage guidance:
Demonstrate the ability to design and implement a middleware component that solves a real-world API reliability problem within a constrained timeframe.
Show engineering judgment about trade-offs when building with deliberate infrastructure constraints — what works now, what breaks at scale, and what the migration path looks like.
Articulate known failure modes honestly rather than ignoring them — engineers who own systems in production need to know what will break before it breaks.
Communicate technical decisions clearly in writing and on video for an async, remote team that can't ask follow-up questions.
Show how you collaborate with AI coding tools — directing, evaluating, and iterating on AI-generated output rather than accepting it uncritically.
On this page