The customer places the order from the checkout page.
The API checks the order and puts it on the queue, so a slow worker never blocks checkout.
A worker takes the order off the queue and writes it to the database.
Once the order is stored, the worker sends the confirmation email.