Fulfilment and shipping
How stock reservation, warehouse packing and carrier handoff work after an order is completed.
FulfilmentDomainv1.0.0FulfilmentThe Fulfilment domain gets a confirmed order to the customer. It reserves stock, picks and packs orders in the warehouse...Ownerfulfilment-platformDiagramOpen docs gets confirmed orders to customers. It owns the operational handoff from stock reservation through warehouse work and carrier delivery.
System context map
Inventory System
Inventory SystemSystemv1.0.0Inventory SystemInternal system that tracks stock and reserves it for orders. It is the source of truth for available inventory and conf...Ownerfulfilment-platformDiagramOpen docs owns Inventory DatabaseContainerv1.0.0Inventory DatabasePostgreSQL database that is the system of record for stock levels and reservations.Ownerfulfilment-platformDiagramOpen docs. Inventory ServiceServicev1.0.0Inventory ServiceThe system of record for stock. Reserves and releases inventory, serves stock-level queries, and publishes events when s...Publishesinventory-reserved, inventory-unavailableSubscribesreserve-inventory, release-inventory +2Ownerfulfilment-platformDiagramRepositoryOpen docs handles Reserve InventoryCommandv1.0.0Reserve InventoryCommand to reserve stock for the items in a checked-out cart. Ownerordering-platformSchemaDiagramOpen docs, Release InventoryCommandv1.0.0Release InventoryCommand to release a previously held inventory reservation. Ownerfulfilment-platformSchemaDiagramOpen docs and Get Stock LevelQueryv1.0.0Get Stock LevelQuery to fetch the current available stock level for a product. Ownerfulfilment-platformSchemaDiagramOpen docs.
It publishes Inventory ReservedEventv1.0.0Inventory ReservedPublished when stock has been successfully reserved for an order. Ownerfulfilment-platformSchemaDiagramOpen docs or Inventory UnavailableEventv1.0.0Inventory UnavailablePublished when stock could not be reserved for an order. Ownerfulfilment-platformSchemaDiagramOpen docs during checkout.
Warehouse System
Warehouse SystemSystemv1.0.0Warehouse SystemInternal system that picks and packs orders in the warehouse. It reacts to completed orders, organises picking, and sign...Ownerfulfilment-platformDiagramOpen docs owns picking and packing in Warehouse DatabaseContainerv1.0.0Warehouse DatabasePostgreSQL database that stores picking jobs and their status.Ownerfulfilment-platformDiagramOpen docs. Warehouse ServiceServicev1.0.0Warehouse ServiceOrchestrates picking and packing in the warehouse. It reacts to completed orders, creates picking jobs, and signals when...Publishesorder-ready-for-shippingSubscribesorder-completedOwnerfulfilment-platformDiagramRepositoryOpen docs reacts to Order CompletedEventv1.0.0Order CompletedPublished when an order has been fulfilled and completed. Ownerordering-platformSchemaDiagramOpen docs and publishes Order Ready For ShippingEventv1.0.0Order Ready For ShippingPublished when a packed order is ready to be handed to a carrier for shipping. Ownerfulfilment-platformSchemaDiagramOpen docs.
Picking WorkerServicev1.0.0Picking WorkerWorks through picking jobs on the warehouse floor and signals when an order has been picked and packed. Publishesorder-packedOwnerfulfilment-platformDiagramRepositoryOpen docs handles packing work and publishes Order PackedEventv1.0.0Order PackedPublished when an order has been picked and packed in the warehouse. Ownerfulfilment-platformSchemaDiagramOpen docs.
Shipping System and Carrier
Shipping SystemSystemv1.0.0Shipping SystemInternal system that hands packed orders to carriers. It reacts to ready-for-shipping orders and creates shipments with ...Ownerfulfilment-platformDiagramOpen docs creates shipments through Create ShipmentCommandv1.0.0Create ShipmentCommand to create a shipment with a carrier for a packed order. Ownerfulfilment-platformSchemaDiagramOpen docs. CarrierSystemv1.0.0CarrierExternal carrier that delivers shipments to customers. It accepts shipment requests and reports delivery progress back. Ownerfulfilment-platformDiagramOpen docs is the external delivery provider and reports Shipment CreatedEventv1.0.0Shipment CreatedPublished by the carrier when a shipment has been created and dispatched. Ownerfulfilment-platformSchemaDiagramOpen docs, Shipment DeliveredEventv1.0.0Shipment DeliveredPublished by the carrier when a shipment has been delivered to the customer. Ownerfulfilment-platformSchemaDiagramOpen docs or Shipment FailedEventv1.0.0Shipment FailedPublished by the carrier when a shipment could not be delivered. Ownerfulfilment-platformSchemaDiagramOpen docs.
Boundary with Ordering
Ordering decides that an order exists. Fulfilment decides whether and how it can be delivered. Keep these lifecycles separate so cancellation, refunds and shipment exceptions can be handled independently.