The order that charged twice
Everything works until a network call fails at the worst moment. Break a checkout on purpose, add the patterns that protect it, and see what each one costs.
Everything works until a network call fails at the worst moment. Break a checkout on purpose, add the patterns that protect it, and see what each one costs.
t = 0 ms Choose what to break, then run the order.
Shipments
The same 1,000 orders, with and without your patterns.
A small deterministic engine runs in your browser: same inputs, same result, nothing scripted per scenario.
A retry after a timeout repeats an action that may have already happened. Without a key, the safe-looking fix is what charges twice.
Brokers and relays deliver at least once. Exactly-once effects come from consumers that recognise repeats.
Saving and publishing are two operations. A crash between them leaves systems that disagree, with no error anywhere.
Distributed transactions don't exist here. Failure paths need their own design, including what the customer sees meanwhile.
Parking a message unblocks everyone else, but someone still has to own it.
Each one adds latency, storage or moving parts. Add the ones your failure modes justify, and measure the cost.