System Design Atlas

Restaurant orders between service and kitchen

02 / 10Worked example

Business rules and operational targets

How does the system show different progress of the portions of an order?

The system boundary leads to a domain rule: Each portion has exactly one current preparation state and at most one handover record. Cancellation after preparation starts preserves the work already underway. Local entry becomes a kitchen order only after kitchen acceptance. An operational objective describes a measurable property and starts as a test assumption.

Starting point Display recorded and kitchen-accepted orders separately.

Assumptions for the example case

Our fictional example design covers one restaurant with table service, individual ordered portions, explicit kitchen acceptance, cancellation before preparation starts and recorded handover. Quantities and quality goals are illustrative test assumptions. Cash-register regulations, payment processing, automated allergen safety and delivery logistics are outside the scope.

Rules governing the result

Acceptance, state and handover gates

Acceptance gateConcrete ticket content
Start gatePortion accepted
Handover gatefertig + no handover record
Antwort fehlt → KüchenteamReconcile K-131 through a status query

A local entry remains a pending submission; starting and cancelling use the portion state, and handover follows fertig.

The soup is ready while the main course is still being prepared. Store a state for each portion so service staff can see the actual progress.

Business requirements (functional)

Further reading
Invariant
Each portion has exactly one current preparation state and at most one handover record. Cancellation after preparation starts preserves the work already underway. Local entry becomes a kitchen order only after kitchen acceptance.
Boundary test
At a transmission age of 29,999 ms, the order remains pending. At 30,000 and 30,001 ms, flag it for investigation. This flag neither confirms kitchen acceptance nor starts a second portion.
Unresolved outcome
The kitchen accepts K-131, but the terminal loses the response. The terminal keeps transmission unconfirmed and queries the same order. Pressing Send again creates no additional soup or main-course portions.

Quality goals (non-functional)

Further reading
Local acceptance
Illustrative target: 95% of local administration commands within 800 ms under a peak profile of 20 orders in 60 s = 0.333 orders/s. Measure external execution and media transfer separately.
Traceability
Every rejected or open operation shows its reason, latest evidenced state and responsible role. Check this in a sample after the failure from step 7.

Track portions individually

Track portions individually

Store a state for each portion.

The soup is ready while the main course is still being prepared.

Service can detect actual progress.

Alternative considered
An order status conceals partial progress.
Trade-off
More states appear in the display.
Reassess
Serving courses requires an additional coordinated release.

Terms in this step

Track portions individually
Service can detect actual progress.

Try it yourself

P-131 is finished, P-132 is running. Draw the permissible order status and the next service action.

A hint for your attempt

Use the specific entities and conditions from this step. The two solution parts distinguish the decision from its evidenced outcome.

Compare with a possible solution
First part of the solution
The portions keep their individual states: fertig (ready) and in_zubereitung (being prepared).
Second part of the solution
Service staff can collect the soup and confirm its handover once; the main course remains in the kitchen workflow.

Apply to your project

Which corresponding assumption in your project would you check first? Consider this trigger: Serving courses requires an additional coordinated release.

Step 3 tests peak load separately from the daily average.