FrontendBackendone regionPOST /ordersenqueuedeliverwriteafter 3 triesnotifyWeb appcheckout pagePlace order1APIvalidates2Order queueWorkersthree replicas3OrdersDead lettersNEWkept for 14 daysEmailconfirmation4
One order, from checkout to confirmation.
  1. The customer places the order from the checkout page.

  2. The API checks the order and puts it on the queue, so a slow worker never blocks checkout.

  3. A worker takes the order off the queue and writes it to the database.

  4. Once the order is stored, the worker sends the confirmation email.