Deduplicate Webhook Deliveries
Medium About 20 min Katabench Pro
Select each new webhook event once, even when the same event is replayed inside a batch.
The full brief is part of Katabench Pro
Pro opens this kata's brief, its starter code and its grader. To see how the track works first, try Block Private Hosts (SSRF), which is free.
How it is graded
Functional tests and adversarial payloads both have to pass before the solution is accepted.
What it practices
- Idempotency and deduplication
- Make retries and redeliveries safe with idempotency keys and canonical identity.
Related katas
- Test the Transfer Ledger Hard Free You're given a correct transfer ledger. Write stateful tests that prove transfers are atomic and idempotent.
- 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.
- Make Payment Idempotent Medium Pro Queue redelivery is charging customers twice. Give every payment worker the same durable idempotency ledger and provider path.
- Deduplicate Page Content Hard Pro Hash fetched bytes before expensive parsing so mirrors and alias URLs share one canonical content record.