System Design Atlas

Grocery orders with store inventory and substitutions

09 / 10Worked example

Operations and security

Who closes an open process with what proof?

The company must recognize which order is currently waiting for goods, payment knowledge or a human action. The roles are already introduced at a glance. The store team clarifies physical goods, the customer service open payments and handovers, the platform operations technical processing. A working list connects the open state with a reasoned next step.

Starting point The measurement points from step 8 require responsible roles and recognizable termination conditions.

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.

Signals lead to owned work queues

Work List · Signal, role, action and proof of completion

E-17 open for at least 120 sSignal
Responsible
Customer serviceRole
is:
Compare provider referenceAction
Recorded
Confirmed / definitively rejected / still openCompletion
Continue to be open → Work List
Restocking unresolvedSignal
Responsible
Store teamRole
is:
Examination and scanning of goodsAction
Recorded
Restocking or disposal documentedCompletion
Feed sequence gapSignal
Responsible
Platform operationsRole
is:
Reconcile source and sequence watermarkAction
Recorded
Common snapshot verified; commitments permitted againCompletion

An open state ends only with the required evidence. “Still open” returns visibly to the same work queue.

Worklists combine an open signal with a responsible role, concrete examination and completed or resubmission.

Authorisations and evidence

Access and payment feedback
Customers only read their own orders. Store members handle only assigned stores; the API checks this limit for each command. Payment feedbacks shall be authenticated, checked against order, payment instruction, positive frozen amount and EUR and shall be accepted permanently before receipt. Deviating values do not generate handover authorisation. Card information remains with the payment service; the application stores only required references and payment states. Logs contain order reference, operation and result, but no card details or full payment messages. The customer service may document clarification, but only assume a success with proof.

Restoration and open operational arrangements

Reconciliation before charging or handover again
After restoring a backup, first reconcile external payment instructions and actual handovers; an older local state may omit effects already completed. Block new charges and handovers for affected orders while reconciliation is open. A recovery exercise tests this exact case. Agree on on-call responsibility, maximum retention, recovery time and permitted data loss before live operation; this initial version makes no such commitment. At 120 seconds the investigation list begins; that does not mean a person has already resolved the case.

Case decision and verification approach

Paid order without handover

Keep the case open at customer service until the issue is documented or handed over to a separate refund process.

A paid purchase remains in the market after a technical or physical problem.

Money and goods both need documented resolution. The test keeps paid-but-not-handed-over orders visible and blocks a second charge and automatic stock increases.

Alternative considered
An automatic abort after Timer ignores the already completed charge.
Trade-off
Manual work is still required.
Reassess
Frequency and processing time create a separate reimbursement function.

Terms in this step

Review list
It combines an open state with responsible role, next examination and proof of completion.
Completion evidence
A documented external result, a physical action or a joint inventory comparison closes the respective case.

Try it yourself

Identify the responsible role and evidence of resolution for an unknown charge, unresolved restocking and a feed gap.

A hint for your attempt

Technical restart and domain resolution can be different work.

Compare with a possible solution
Unknown charge
Customer service requires the confirmed provider status for the same payment instruction; an unknown result remains open.
Unresolved restocking
The store team needs physical evidence of restocking or disposal; a cancellation request alone is insufficient.
Feed Gap
Platform operations needs evidence of a reconciled common snapshot and sequence watermark before new commitments are permitted.

Apply to your project

What open states do you need in your system a work list with owner?

Step 10 combines architecture and test plan to form a feasible first end-to-end path.