System Design Atlas

Warehouse fulfilment and dynamic route planning

06 / 10Worked example

The overall architecture

How are the responsibility for the picking order and the external processing divided between modules and processes?

The local consistency rule defines the boundaries of the warehouse API. Route and shipping processing runs separately for deferred work. The modules Quantity allocation, route recommendation, proof of pick, stock clarification structure responsibility within the API; they are not individually operated services. Order planning writes need to warehouse API. Relational stock at the storage location and allocations form the atomic promise limit. An own route-planning process reads a snapshot and provides only recommendations to the picking. Scanner confirmations are sent directly to the warehouse API and generate pick records; the route-planning process must neither replace nor correct them. Transit processing shall transmit the orders provided to the external shipping system and receive receipts. The diagram contrast between dashed suggestion path and binding set path is essential.

Starting point Stock and open allocations change together.

Assumptions for the example case

Own fictitious example design. A warehouse with integer quantities, manual picking and a heuristic route recommendation. A route plan is marked as requiring rechecking at age 60 seconds and older; confirmed picks remain valid evidence. All figures and test goals are illustrative assumptions.

Runtime components and datastores

Runtime topology

Order planningRequirements and quantities
Shipping systemAcknowledge the staged shipment

Warehouse fulfilment

Warehouse APIatomic commitments
Stock by location and allocationsAuthoritative relational data store
Route plannerRecommendation from Snapshot only
Scanner pathwayEvidence of actual removal
Dispatch operationsSend staged orders
Order planning → Warehouse APIRequirements
Warehouse API → Stock by location and allocationsatomic allocation
Stock by location and allocations → Route plannerSnapshot without Commitment
Scanner pathway → Warehouse APIPick record
Warehouse API → Dispatch operationsStaged order
Dispatch operations → Shipping systemHandover and receipt

Open allocations do not exceed available stock at the location; routes do not change commitments.

Order planning submits demand to the warehouse API. Relational stock by location and allocations form the atomic quantity-commitment boundary. A separate route planner reads a snapshot and gives pickers recommendations only. Scanner confirmations go directly to the warehouse API and create pick records; route planning cannot replace or correct them. Shipping processing sends prepared orders to the external shipping system and receives acknowledgements. The diagram distinguishes the dashed recommendation path from the binding quantity path.

Domain responsibilities within the API

Inner modules

Quantity commitmentReserve all required item quantities atomically
Pick recordConfirm the actual amount in the place once
Shortage investigationphysical deviation without fictitious removal
Shipping handoffLink the staged shipment and acknowledgement

Modules group responsibilities within the API process.

Warehouse API contains quantity allocation, route recommendation, proof of collection, stock clarification. Domain-level call relationships show; modules do not have separate server icons.

Map responsibilities to runtime components

Domain taskRuntimeResponsibility
Allocation of quantitiesWarehouse APIAllocates item quantities against authoritative stock at the storage location.
Route recommendationWarehouse APIRecommends a sequence without changing quantities.
Proof of collectionWarehouse APIRecords the actual pick against the storage location and order.
Stock clarificationWarehouse APIConnects missing amounts and corrections with physical evidence.
Route and shipping processingSeparate background processProcesses stored work and external feedback.
Shipping systemExternal boundaryProvides or confirms the evidence agreed for this case.

Allocation of quantities

Runtime
Warehouse API
Responsibility
Allocates item quantities against authoritative stock at the storage location.

Route recommendation

Runtime
Warehouse API
Responsibility
Recommends a sequence without changing quantities.

Proof of collection

Runtime
Warehouse API
Responsibility
Records the actual pick against the storage location and order.

Stock clarification

Runtime
Warehouse API
Responsibility
Connects missing amounts and corrections with physical evidence.

Route and shipping processing

Runtime
Separate background process
Responsibility
Processes stored work and external feedback.

Shipping system

Runtime
External boundary
Responsibility
Provides or confirms the evidence agreed for this case.

The route planner must not write authoritative quantities

The route planner must not write authoritative quantities

The route planner must not write authoritative quantities.

Open allocations do not exceed confirmed stock at the storage location; route recommendations do not change quantity commitments.

Stock at storage locations, allocations, picks, and handovers must represent the same valid state. Your exercise identifies the input and expected result.

Alternative considered
A separate service for each module distributes the promise "Open allocations do not exceed the confirmed available stock at the location; route recommendations do not change the quantity commitment." to additional network boundaries.
Trade-off
Common schema changes require coordinated releases.
Reassess
Significantly deviating burden of route and shipping processing or independent responsibility justifies a new runtime boundary.

Try it yourself

Assign quantity allocation, route and shipping processing, and the shipping system to module, process and external system types. Justify the authoritative data store.

A hint for your attempt

A domain responsibility becomes a process only when it has its own execution unit.

Compare with a possible solution
Boundaries
Quantity allocation is a module in warehouse API; route and shipping processing is its own process; shipping system is outside.
Storage
Inventory by location, allocations, picks and handovers hold the authoritative evidence. Open allocations do not exceed the confirmed available stock at the location; route recommendations do not change the quantity commitment. The joint transaction protects this connection; external responses remain separate evidence.

Apply to your project

Which planned service boundary would distribute a currently local guarantee across the network?

Next, scan repetition delivers the same pick record.