System Design Atlas

Restaurant orders between service and kitchen

08 / 10Worked example

Investigating bottlenecks

Which measurement distinguishes a kitchen backlog from transmission delay?

The failure sequence shows where load and retries interact. The diagnostic plan treats measured waiting time, processing duration and business conflicts separately.

Starting point Query the existing K-131.

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.

Diagnose the limiting resource

Test the state channel and domain races separately

20 tickets/minPeak
Channel ageMeasure distribution
Start versus cancelP-131
State conflictWinner + Clarification

Backlogs explain delayed displays; start/cancel conflicts are visible domain decisions on the portion state record.

Dishes wait despite a fast API. Measure time until preparation starts separately from transmission. This makes the staffing bottleneck visible in the workflow.

From signal to action

SignalValidationReaction
Distinguish workflow backlogsDishes wait despite a fast API.Measure time until preparation starts separately from transmission.
Conflicts on the shared entityStarting and cancelling P-131 compete from angenommen. Cancellation first produces storniert and a conflict on start; start first produces in_zubereitung and a cancellation issue to resolve. Neither order may hide the portion or its work.Count expected conflicts separately from technical errors.
Peak test profile exceeded20 Orders in 60 s = 0.333 Orders/sNew stations change the kitchen process.

Distinguish workflow backlogs

Validation
Dishes wait despite a fast API.
Reaction
Measure time until preparation starts separately from transmission.

Conflicts on the shared entity

Validation
Starting and cancelling P-131 compete from angenommen. Cancellation first produces storniert and a conflict on start; start first produces in_zubereitung and a cancellation issue to resolve. Neither order may hide the portion or its work.
Reaction
Count expected conflicts separately from technical errors.

Peak test profile exceeded

Validation
20 Orders in 60 s = 0.333 Orders/s
Reaction
New stations change the kitchen process.

Distinguish workflow backlogs

Distinguish workflow backlogs

Measure time until preparation starts separately from transmission.

Dishes wait despite a fast API.

The staffing bottleneck becomes visible in the workflow.

Alternative considered
More servers don’t cook soup.
Trade-off
Data shall not be used as an unfounded performance evaluation.
Reassess
New stations change the kitchen process.

Terms in this step

Distinguish workflow backlogs
The staffing bottleneck becomes visible in the workflow.

Try it yourself

The API is fast, but preparation starts late. Which interval do you measure, and who can act?

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
Record time from kitchen acceptance to start of preparation separately from transmission latency.
Second part of the solution
The kitchen team and restaurant management investigate backlogs and station workflow; more API capacity does not speed up preparation.

Apply to your project

Which corresponding assumption in your project would you check first? Consider this trigger: New stations change the kitchen workflow.

Step 9 assigns responsibility for exceptions.