project · Level 2 · 25 min
Implement a deduplication layer: given a key (e.g. request id), only allow one in-flight request per key; others wait or get the same promise.
In-memory. Async/await.
Code for dedupe and a test scenario.
Ask clarifying questions, discuss tradeoffs, and get feedback.
Simulate an engineering interview.
The AI will ask questions about your approach, tradeoffs, and design.