Skip to content
Chaos Lab

Challenge 7 · intermediate · Online shop

The double charge

Checkouts call the payments provider with a 1-second timeout and one retry, which the team added after last month's brownout. At 15 seconds the provider starts losing replies: the charge goes through, but for one charge in five the answer never reaches the shop, so the shop waits out its timeout.

Get duplicate charges down to at most 1 per 1,000 checkouts, while at least 98.5% of checkouts succeed and no more than 15 in 1,000 customers are charged for a checkout that failed.

ready00:00 / 01:30Success · 10 s–p99 · 10 s–Breakeroff

Goal · measured 00:30–01:30

0 changes · par 2
  • Duplicate charges ≤ 1.0 per 1,000 checkoutsnot measured yet
  • Checkouts succeed ≥ 98.5%not measured yet
  • Charged, but the checkout failed ≤ 15.0 per 1,000 checkoutsnot measured yet

This is a simulation. Its numbers come from a model of a typical system, not from measuring real servers. The same link and seed always give the same run. How the Chaos Lab works.