STEP 1 OF 10 · ENQUEUE
Checkout hands off the charge
The checkout API puts a job on the queue: { job: 7, action: "charge", order: 42, amount: 499 }. It answers the customer right away instead of waiting on the payment work.
The queue now owns the job. Its promise is simple: it will keep handing the job out until someone confirms it is done.
Why it matters. Queues let the front door stay fast and let slow work retry later. That retry promise is also where duplicates come from.