Make Payment Idempotent
Medium About 35 min Katabench Pro
Queue redelivery is charging customers twice. Give every payment worker the same durable idempotency ledger and provider path.
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.
What it practices
- Idempotency and deduplication
- Make retries and redeliveries safe with idempotency keys and canonical identity.
Related katas
- Deduplicate Discovered URLs Medium Pro Canonicalize every discovered link and claim it in one shared seen-URL ledger before it can re-enter the frontier.
- Deduplicate Page Content Hard Pro Hash fetched bytes before expensive parsing so mirrors and alias URLs share one canonical content record.
- Operate the Reliable Checkout Hard Pro Synthesize redundant checkout, idempotent payment, reliable order events, managed secrets, and correlated telemetry.
- Operate the Web Crawler Hard Pro Synthesize durable discovery, partitioned ownership, polite fetching, content identity, replayable indexing, quarantine, secrets, and telemetry.