Skip to content
Katabench
Try free

Reserve Before Payment

Medium About 35 min Katabench Pro

Customers are charged for stock that vanished. Reserve inventory first, then hand payment work to a durable queue.

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 Cache the Hot Path, 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.

System Design Studio →

What it practices

Sagas and compensation
Coordinate multi-step work with compensating actions for every completed step.
Message queues
Accept quickly, buffer durably and process asynchronously with background workers.

Related katas