Skip to main content
A checkout API calls Payments and an orders database. A slow answer makes the API try again while the first try is still charging, so the dashboards stay green while some customers pay twice.

What to watch

Every call that finishes at Payments charges a card. The API gives Payments 300ms, then tries again while the first try is still running, and that one charges too. Open Can you break it? and ask that nobody pays twice. Push the load to 3x and it is broken with no faults at all, while the error chart barely moves.

What it is made of

Under load

Measured by running this design through the simulator at multiples of its own offered rate of 100 requests a second. Twenty seconds of simulated time, one fixed seed, so the same numbers come out every time.
This design holds 300 requests a second with 0% errors. At 400 it is losing 19% of them.

Open this example

Load Checkout and payments from the Examples menu and drag the traffic slider yourself.