All labs
Failure Lab · Easy

Duplicate orders

An e-commerce checkout service is charging customers twice for the same order. The queue, the consumer, and the payment provider all log success — yet two charges go through.

Symptom · The 'duplicates delivered' counter ticks up steadily as the simulation runs.

Goal: Eliminate duplicate deliveries while still processing orders.
Hint: Visibility timeout must comfortably exceed processing time.
checkout-apiorders · t0Consumers
checkout-api
every 1100ms
orders
0
Visible0
In-flight0
payment-worker-1
idle
payment-worker-2
idle
Knobs
8t

Hidden after receive

14t

How long work takes

Pending
0
In-flight
0
Delivered
0
Duplicates
0
Avg wait
0.0t
Avg rc
0.00
Empty polls
0
DLQ
0