service
Checkout Orchestrator

Checkout Orchestrator

Runs the checkout saga. Reserves inventory, authorizes payment and creates the order, coordinating the steps that turn a checked-out cart into a confirmed order.

Service

Overview

The Checkout Orchestrator is the brain of the Checkout System. Once the Checkout APICheckout APIServicev1.0.0The entry point to the Checkout System. Receives the checkout command from the Shopping domain and starts the checkout f...Subscribescheckout-cartOwnerordering-platformMapRepoView docs hands it a checkout, it runs the checkout saga step by step:

  1. Reserve inventory — sends Reserve InventoryReserve InventoryCommandv1.0.0Command to reserve stock for the items in a checked-out cart. Ownerordering-platformSchemaMapView docs to hold stock for the cart’s items.
  2. Authorize payment — sends Authorize PaymentAuthorize PaymentCommandv1.0.0Command to authorize payment for the total of a checked-out cart. Ownerordering-platformSchemaMapView docs to authorize the order total.
  3. Create the order — sends Create OrderCreate OrderCommandv1.0.0Command to create a new order from a checked-out cart. Ownerordering-platformSchemaMapView docs to the Order Management SystemOrder Management SystemSystemv1.0.0Internal system that is the source of truth for orders. It creates orders, tracks their lifecycle, and publishes events ...Ownerordering-platformMapView docs.

If any step fails, the orchestrator compensates the earlier steps (releasing the reservation, voiding the authorization) so the customer is never left in an inconsistent state.

Sends 3 messages

Reserve inventory, authorize payment, create order

Responsibilities

AreaDescription
InventoryReserves stock via Reserve InventoryReserve InventoryCommandv1.0.0Command to reserve stock for the items in a checked-out cart. Ownerordering-platformSchemaMapView docs.
PaymentAuthorizes the order total via Authorize PaymentAuthorize PaymentCommandv1.0.0Command to authorize payment for the total of a checked-out cart. Ownerordering-platformSchemaMapView docs.
Order creationCreates the order via Create OrderCreate OrderCommandv1.0.0Command to create a new order from a checked-out cart. Ownerordering-platformSchemaMapView docs against the Order Management SystemOrder Management SystemSystemv1.0.0Internal system that is the source of truth for orders. It creates orders, tracks their lifecycle, and publishes events ...Ownerordering-platformMapView docs.
CompensationRolls back earlier steps if a later step fails.

Architecture diagram

Messages for this service

Sends messages (3)

Quickly find the message you need by searching for the name, type, or summary.
NameVersionTypeSummary
Reserve Inventory
v1.0.0commandCommand to reserve stock for the items in a checked-out cart.
Authorize Payment
v1.0.0commandCommand to authorize payment for the total of a checked-out cart.
Create Order
v1.0.0commandCommand to create a new order from a checked-out cart.

Receives messages (0)

Quickly find the message you need by searching for the name, type, or summary.
NameVersionTypeSummary
No messages found
Event-driven architecture documentation: Acme Inc