Scale and contention
How many state changes result from the assumed order volume?
The requirements are checked under a concrete, fictitious scale: 300 orders in 4 hours. Mean, peak and contention are considered separately.
Starting point Store a state for each portion.
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.
Throughput and the contended resource
Ticket rate and portion states
The peak rate remains moderate; 900 portions produce 3,600 independent state changes.
Reproducible test profile calculations
- 01
Average load
300 orders in 4 hours300 ÷ 14,400 s = 0.0208 orders/s
For the designThe rate describes the assumed total volume; response time still requires measurement.
- 02
Peak test
20 Orders in 60 s = 0.333 Orders/s300 × 3 portions = 900 portion sequences; 4 transitions each = 3,600 changes in state
For the designThe additional quantity calculation defines a separate check of resource or retention needs.
Test concurrency separately
- Test oracle
- 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.
Use peak load rather than the daily average
Test 20 orders/min separately.
Many guests order at the same time.
Evening peak exceeds daily means.
- Alternative considered
- Daily totals alone do not reveal queues.
- Trade-off
- Load test requires kitchen actions.
- Reassess
- Larger events change the profile.
Terms in this step
- Use peak load rather than the daily average
- Evening peak exceeds daily means.
Try it yourself
Calculate portions and state changes from 300 orders, three portions each and four transitions.
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
- 300 times three is 900 portions.
- Second part of the solution
- 900 times four result in 3,600 changes in state. The test with 20 orders/min shows the peak arrival separately.
Apply to your project
Which corresponding assumption in your project would you check first? Consider this trigger: Larger events change the profile.