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
Warehouse fulfilment
Open allocations do not exceed available stock at the location; routes do not change commitments.
Domain responsibilities within the API
Inner modules
Modules group responsibilities within the API process.
Map responsibilities to runtime components
| Domain task | Runtime | Responsibility |
|---|---|---|
| Allocation of quantities | Warehouse API | Allocates item quantities against authoritative stock at the storage location. |
| Route recommendation | Warehouse API | Recommends a sequence without changing quantities. |
| Proof of collection | Warehouse API | Records the actual pick against the storage location and order. |
| Stock clarification | Warehouse API | Connects missing amounts and corrections with physical evidence. |
| Route and shipping processing | Separate background process | Processes stored work and external feedback. |
| Shipping system | External boundary | Provides 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.
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?