Order Management System
Internal system that is the source of truth for orders. It creates orders, tracks their lifecycle, and publishes events as orders are created, completed and cancelled.
Overview
The Order Management System owns the order at Acme Inc. It accepts the Create OrderCreate OrderCommandv1.0.0Command to create a new order from a checked-out cart.
Ownerordering-platformSchemaMapView docs command from the Checkout SystemCheckout SystemSystemv1.0.0Internal system that orchestrates checkout. When a cart is checked out it reserves inventory, authorizes payment, and as...Ownerordering-platformMapView docs, persists orders in the Order DatabaseOrder DatabaseContainerv1.0.0PostgreSQL database that is the system of record for orders and their items.MapView docs, and serves order lookups via Get OrderGet OrderQueryv1.0.0Query to fetch a single order by its identifier.
Ownerordering-platformSchemaMapView docs. As an order moves through its lifecycle it publishes Order CreatedOrder CreatedEventv1.0.0Published when a new order has been created.
Ownerordering-platformSchemaMapView docs, Order CompletedOrder CompletedEventv1.0.0Published when an order has been fulfilled and completed.
Ownerordering-platformSchemaMapView docs and Order CancelledOrder CancelledEventv1.0.0Published when an order has been cancelled.
Ownerordering-platformSchemaMapView docs events for the rest of the business to react to.
Context Diagram
How this system relates to the other systems around it.
Resource Diagram
The services, data stores and messages that make up this system.
What’s inside
| Component | Type | Responsibility |
|---|---|---|
| Order ServiceOrder ServiceServicev1.0.0 | Service | Creates, cancels and serves orders, and publishes order lifecycle events. |
| Order DatabaseOrder DatabaseContainerv1.0.0 | Data store | PostgreSQL system of record for orders and their items. |
Messages this system publishes
- Order CreatedOrder CreatedEventv1.0.0Published when a new order has been created. Ownerordering-platformSchemaMapView docs — a new order has been created.
- Order CompletedOrder CompletedEventv1.0.0Published when an order has been fulfilled and completed. Ownerordering-platformSchemaMapView docs — an order has been fulfilled and completed.
- Order CancelledOrder CancelledEventv1.0.0Published when an order has been cancelled. Ownerordering-platformSchemaMapView docs — an order has been cancelled.