Code RoomWebhook delivery system decomposition
MediumPrep Room Coding #4482

Webhook delivery system decomposition

Vibe & agenticAlgorithms & data structuresMid–Senior~18 min

You need to build an outbound webhook delivery system: when domain events occur, your service POSTs signed payloads to customer-registered URLs with retries and a dead-letter queue. You want an AI agent to build most of it in Java. How do you break this into pieces, what do you keep versus delegate, and where do the human checkpoints go?

Implement
webhook_attempt_offsets(base_delay_seconds: int, cap_delay_seconds: int, max_attempts: int) → list[int]
Examples
in[2,60,5]out[0,2,6,14,30]
in[10,30,4]out[0,10,30,60]
in[5,5,3]out[0,5,10]
What a strong answer looks like

Treat the AI’s output as a draft to verify, not an answer to trust. Name the specific flaw and the input that triggers it, say how you’d catch it (tests, edge cases, reading critically), and how you’d re-prompt or decompose to get it right.

0:00 of about 18 min

Vibe & agentic: describe the solution in plain language (or narrate it) and the coach grades your approach.

Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.