System Design Atlas

Grocery orders with store inventory and substitutions

01 / 10Worked example

Purpose and boundary

What commitment can the system give when ordering, and which only when assembling?

Basic assumptions determine which purchase we design and which responsibility the system assumes. We accompany the order B-17 from store 17 with the technical identifier filiale-17. The original pack of oat drink A-10 costs 200 cents and contains one liter. As a replacement, exactly the pack A-11 with also one litre and a strictly positive integer cent price up to a maximum of 220 cents is allowed. These identifiers connect the following technical views. A displayed pack is an inventory forecast; the store team later confirms the actual goods found.

Starting point A predicted pack meets parallel store sales.

Assumptions for the example case

Own example design for pick-up from a store and packaged piece goods with strictly positive integer cent prices. Free and fully discounted baskets are outside the case. Replacement items are specifically allowed in advance; the final positive amount arises from goods actually provided and is collected on collection. Figures and target values are illustrative design assumptions.

The store connects shelves and online order

B-17 · a branch connects shelf, online ordering and collection

Customers/clientsSelect filiale-17, A-10 and A-11
Store teamConfirms picking, restocking and handover

System boundary · Ordering system

Ordering and pickingManages allocation, substitution checking, final basket, payment and cases requiring review
Inventory managementProvides branch movements
Payment serviceConfirms payment effects
  1. 01Customers/clients → Ordering systemB-17, filiale-17, articles and permitted replacements
  2. 02Ordering system → Store teamPicking task
  3. 03Store team → Ordering systemGoods actually picked / handover
  4. 04Inventory management → Ordering systemStore stock movements
  5. 05Ordering system → Payment serviceCharge the final amount
  6. 06Payment service → Ordering systemConfirmed result
Customer service Handling of sewage cases Platform operations Monitoring of processing

The system boundary separates inventory forecast, physically confirmed goods and the confirmed payment effect.

The ordering system connects order and store team with inventory management and payment service. Customer service and platform operations handle open processes.

The worked example

Limits of collection
A store will execute the entire order. Only packaged piece goods with strictly positive integer cent prices clearly keep quantities and price limits; free goods and completely discounted baskets are outside the case. Substitute items that are specifically permitted in advance give the store team a verifiable framework. The collection ends with a documented handover after confirmed payment. A purchase with shipping or weight goods requires further contracts.

Case decision and verification approach

Concrete substitution approval

Concrete allowed items with quantity and price limits.

The customer wants oat drink and entrusts the store team with the selection of a released alternative.

Each package provided should be traceable to the consent of the customer. The test rejects a cheap but unauthorized replacement.

Alternative considered
An open category like similar product requires additional rules on ingredients and pack sizes.
Trade-off
Despite similar shelf goods, a order line can be omitted.
Reassess
Many omitted order lines despite acceptable alternatives justify a separate design of active queries.

Terms in this step

Stock forecast
Availability calculated from known store movements and open online allocations; the store team confirms the pack actually found.
Substitution approval
The customer allows in advance a concrete substitute item with quantity and positive price limit in whole cents.

Try it yourself

Assign online allocation, actual pack and confirmed payment each to a responsible body. Explain what the order accepts.

A hint for your attempt

A stored number and a physically found article are different proofs.

Compare with a possible solution
Online allocation
The ordering system is responsible for the online allocation against the known state.
Actual package
The store team confirms the pack actually picked. Order acceptance confirms the picking task under the visible substitution rules.
Confirmed payment
The payment service confirms the collection; the ordering system assigns the confirmation to the final purchase.

Apply to your project

Where do your system plan and actual execution differ?

Step 2 translates these three proofs into testable requirements.