Refund the Late Payment
Hard About 1 h Katabench Pro
A payment result arrives 31 seconds after the hold expired. The seat has gone, the money has moved, and support hears about it two days later. Give every result one owner.
The full brief is part of Katabench Pro
Pro opens this kata's brief and its grader. To see how the track works first, try Handle Celebrity Fan-out, which is free with an account.
How it is graded
You build the design on a canvas, and Katabench checks the topology against the challenge's design rules.
What it practices
- Sagas and compensation
- Coordinate multi-step work with compensating actions for every completed step.
- Idempotency and deduplication
- Make retries and redeliveries safe with idempotency keys and canonical identity.
- Message queues
- Accept quickly, buffer durably and process asynchronously with background workers.
Related katas
- Reserve Before Payment Medium Pro Customers are charged for stock that vanished. Reserve inventory first, then hand payment work to a durable queue.
- Buffer the Write Spike Hard Pro Protect a database from bursty writes with a durable queue and redundant background workers.
- Claim the Front Row Hard Pro 20,000 claims in ten seconds pile up on a few hundred row locks, and fans buying in other stands time out too. Keep a hot stand from stalling the sale.
- Deduplicate Page Content Hard Pro Hash fetched bytes before expensive parsing so mirrors and alias URLs share one canonical content record.