HomeChallengesRepsProblemsLeaderboardTake a challenge

Paid, and given nothing

Every order now has a deadline, and it works. Until Wallet is slow rather than down: its reply arrives after the deadline has already revoked the bundle. The customer is charged for nothing, and the saga ignores the proof.

Advanced30 min on the clock5 graded checks · 100 pointsServices That Fail PolitelyPro
Graded by reading your code against the checklist below.

What you build

  • Cancel the deadline whenever the order finishes another way
  • Ignore a timeout that arrives after the order completed
  • Refund a payment that arrives after the order failed
  • Revoke a bundle granted after the order failed
  • Write a refund consumer that is safe to receive twice

Done means

The deadline is cancelled on every ending, late payments are refunded, late grants revoked, and the refund cannot be applied twice.

How it is graded

Published in full, before you start — every point is one of these and there is nothing else.

  1. The deadline is cancelled when the order ends+15Undoing a step in another service
  2. A timeout after completion is ignored+10Messages arrive twice, late, or never
  3. A payment after failure is refunded+30Undoing a step in another service
  4. A grant after failure is revoked+25Undoing a step in another service
  5. A refund delivered twice is applied once+20Safe to repeat

What it teaches

Safe to repeatintermediate

A request that times out has not necessarily failed — you just did not hear back — so the client retries, and unless the write recognises that it has already happened the customer is charged twice.

The rest of Services That Fail Politely