System Design Atlas

Waste collection routes and disposal records

03 / 10Worked example

Scale estimates

What loads do the average, test peak and hotspot describe for the collection route?

The guarantee for collection route T-38 is tested at an explicitly assumed scale. There are 48000 events over 8 operating hours. A test peak of 100 events per second and the hotspot of 1000 offline reports from one vehicle after reconnection test different properties from the average load.

Starting point Planned mass and actual accepted mass remain separate.

Assumptions for the example case

Original fictional example design. A municipal collection service for non-hazardous waste uses its own operational records and confirmed handovers. The illustrative load limit is 10000 kg; additional planned loading is allowed only if total mass remains ≤ 10000 kg. All figures and test targets are illustrative assumptions.

Baseline load, peak load and domain hotspot

Daily load, peak and hotspot

48,000 / 8 h
100/s after reconnection
9,800 + 200 = 10,000 kg

The three quantities require separate tests.

Daily-load bar: 48000 events over 8 h. Peak column: 100/s. Hotspot detail: 1000 offline reports from one vehicle after reconnection. These are separate load views, rather than successive process stages.

Reproducible test profile calculations

  1. 01

    Average event rate

    1.66667 events/s

    48000 ÷ (8 × 3600 seconds)

    For the designBase load for device synchronisation; long business waiting times are not included.

  2. 02

    Assumed test peak

    100 events/s

    100 × 900 seconds = 90000 events in the 15-minute test

    For the designThis deliberately higher test load checks response time and backlog. It is an assumption, rather than a peak measured in production.

  3. 03

    Raw data per day

    46.88 MiB/day

    48000 × 1024 bytes ÷ 1048576

    For the designMetadata budget for route assignments, bin-emptying events and handover records. Document contents, indexes, replicas and backups require additional storage.

  4. 04

    Domain hotspot

    1000 offline reports from one vehicle after reconnection

    Separate concurrency or ordering test for the same business identity.

    For the designTwo devices report the same route-and-bin work order: in either order, exactly one emptying is accepted. Conflicting content creates an investigation case instead of a second emptying.

Reconnection determines peak processing load

Reconnection determines peak processing load

Reconnection determines peak processing load.

1000 offline reports from one vehicle after reconnection

An average of 1.66667 events/s says little about 1000 offline reports from one vehicle after reconnection. The exercise specifies the input and expected result.

Alternative considered
A test with only 1.66667 events/s does not capture the concentrated contention.
Trade-off
The separate hotspot profile requires controlled ordering in addition to the 90000-event test.
Reassess
Measured real peaks above 100 events/s change the load profile.

Try it yourself

Calculate mean rate and number of events in the 15-minute peak test. In addition, explain what the hotspot test proves.

A hint for your attempt

Convert operating hours into seconds first; the peak test lasts 900 seconds.

Compare with a possible solution
Calculation
48000 ÷ (8 × 3600) = 1.66667 events/s. 100 × 900 = 90000 events.
Domain hotspot
Two devices report the same route-and-bin work order: in either order, exactly one emptying is accepted. Conflicting content creates an investigation case instead of a second emptying. The average rate alone cannot verify this guarantee.

Apply to your project

Which individual object concentrates more load than the daily average suggests in the collection and handover workflow?

Next: a device event identifies its route and bin.