System Design Atlas

Warehouse fulfilment and dynamic route planning

02 / 10Worked example

Requirements

Which business rule protects picking order, and how is the agreed limit checked?

The case boundary creates business rules and measurable goals. For picking order E-36, the central invariant is: Open allocations do not exceed the confirmed available stock at the location; route recommendations do not change the quantity commitment. An invariant must apply after each completed operation. Quality objectives, on the other hand, describe an operation to be measured.

Starting point Inventory management and route recommendations have separate responsibilities.

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.

Business guarantee and measurable limit

Guarantee and preconditions

Picking order E-36Confirmed quantity and allocated storage space
Storage location L-36Stock minus open allocations gives available quantity
Route plan W-36Sequence and version without authoritative stock quantities
Exact limitCheck the route plan from 60 s

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

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

Business requirements (functional)

Further reading
Durable commitment
Open allocations do not exceed confirmed stock at the storage location; route recommendations do not change quantity commitments.
Evidence and closure
Release the allocation once after investigation.

Operational goals (non-functional)

Further reading
Local processing
Illustrative target: 95% of local commands complete in under 800 milliseconds during a 15-minute profile at 100 commands/s. External processing and human waiting time are measured separately.
Observable limit
A route plan is marked as requiring rechecking at age 60 seconds and older; confirmed picks remain valid evidence. The boundary test checks its own case rule; it is not yet a measured proof of operation.

Picking requires an allocation and physical evidence

Picking requires an allocation and physical evidence

Picking requires an allocation and physical evidence.

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

A route plan is marked as requiring rechecking at age 60 seconds and older; confirmed picks remain valid evidence. The exercise specifies the input and expected result.

Alternative considered
A response-time target alone leaves invalid business states unchecked.
Trade-off
Strict validation can pause an operation for investigation.
Reassess
Measured processing times or new contracts with a shipping system require a renewed target check.

Try it yourself

Separate the business invariant from the 800-millisecond target. Explain the exact limit in this case.

A hint for your attempt

Completing an operation quickly but incorrectly does not satisfy the business guarantee.

Compare with a possible solution
Business rule
Open allocations do not exceed the confirmed available stock at the location; route recommendations do not change the quantity commitment. The counterexample test checks the permitted state.
Operations and boundary
800 milliseconds apply to 95% local commands in the assumed peak-load profile. A route plan is marked as requiring rechecking at age 60 seconds and older; confirmed picks remain valid evidence.

Apply to your project

Which rule of your project remains binding even with slow processing?

Next: The last piece determines the conflict test.