System Design Atlas
Application system

Grocery orders with store inventory and substitutions

Order groceries from a store, pick the stock actually available and bill permitted substitutions transparently.

Follow the design
An order container with an oat drink pack, a permitted replacement pack and a hand scanner in front of a food shelf.

Business workflow

Customers choose a store, order packaged items and approve specific substitutes. Store staff assemble the order, confirm the items actually picked and hand it over after payment is confirmed. Customer service and platform operations can trace unresolved stock movements and payments.

These questions are answered by the case

  • Ordering packaged piece goods with strictly positive integer cent prices for collection from exactly one store.
  • Atomic store allocation, picking, pre-approved substitutes and physically confirmed restocking.
  • Charging the positive frozen final amount at pickup and reconciling lost payment responses.
  • Ordered inventory movements, authorisations and initial operational checks.

These questions remain open

  • Free goods, fully discounted baskets, goods sold by weight, deposits, discounts and age verification.
  • Delivery logistics and shipping.
  • Dynamic store change and automatic refund processing.
  • Multiple payment providers or a separate warehouse.
  1. Determine purchases

    Select and order store, items, quantities and permitted replacement items.

  2. Commodity assembled

    Examine original and released replacement items, scan them and form the final basket.

  3. Pay and pick up

    collect final amount, confirm payment, record handovers and clarify open cases.

Workflow with tasks and outcomes

Domain subsystems and their interactions

The order connects item selection and substitution approvals with picking, payment and handover. Store availability and cases requiring review support this process.

User interfaceCustomer and store interfaces

Customers choose the store, packaged items and permitted substitutes. The store team picks the goods and hands them over after confirmed payment; customer service and platform operations handle unresolved cases. This worked example uses only positive integer prices in cents.

Requests and receive feedback
Ordering and pickingDomain subsystems
  • Ordering and picking

    Brings together selection, allocation, pick and completion.

    Described in the design
  • Store availability

    Leads shelf forecasting and open online allocations.

    Described in the design
  • Substitution rules

    Checks allowed alternatives against items, quantity and price.

    Described in the design
  • Payment and handover

    Takes over frozen basket, payment status and single handover.

    Described in the design
  • Cases requiring review

    Continues open goods and payment transactions with responsible roles.

    Described in the design
Customers submit item selections and substitution approvals to the ordering system. It checks store availability and substitution rules, then passes the final basket to payment and handover. Review cases return documented decisions to the order.

Tasks in the ordering system

The Ordering and picking application is central. Its responsibilities connect orders, store availability, substitution rules, payment and handover, and cases requiring review.

Ordering and picking

Brings together selection, allocation, pick and completion.

Store availability

Provides forecast and manages online allocations against the known status.

Substitution rules

Checks previously allowed items, quantities and price limits.

Payment and handover

Freezes the final basket, waits for a confirmed charge and records the single handover.

Cases requiring review

Connects open merchandise and payment transactions with store team, customer service and platform operations.

Practical examples

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.