System Design Atlas

Water leak detection and repair orders

03 / 10Worked example

Scale and contention

What load results from replaying one hour of measurements?

The requirements are tested under a concrete, fictitious scale: 2,000 measuring stations with 1 value/min. Mean, peak and contention are considered separately.

Starting point Reset the three-reading sequence after an invalid minute.

Assumptions for the example case

This fictional worked design assumes a bounded metering zone, minute-by-minute flow readings, manual confirmation of findings and one active repair order per confirmed finding. Numbers and quality targets are illustrative test assumptions. Automatic valve control, full hydraulic simulation and drinking water quality assessment are outside scope.

Throughput and the contended resource

Normal traffic and reconnection burst

2,000 ÷ 60 = 33.33 Values/s2,000 × 60 ÷ 60 = 2000/s2,000 × 1,440 = 2,880,000/day
20.00
Threshold not exceeded
20.0120.0120.01V-111

Normal traffic reaches 33.33 readings/s; after reconnection, ingestion rises to 2,000 readings/s.

One hour of measurements accumulates. Test 2,000 readings/s as the catch-up profile. Catch-up traffic exceeds the normal rate of 33.33 readings/s.

Reproducible test profile calculations

  1. 01

    Average load

    2,000 measuring stations with 1 value/min

    2,000 ÷ 60 s = 33.33 values/s

    For the designThe rate describes the assumed total volume; response time still requires measurement.

  2. 02

    Peak test

    After reconnection, 2,000 × 60 readings in 60 s = 2,000 readings/s

    2,000 × 1,440 = 2,880,000 values/day

    For the designThe additional quantity calculation defines a separate check of resource or retention needs.

Test concurrency separately

Test oracle
Two control room operators confirm the same finding and start R-111 concurrently. Either commit order creates one work order; the second request reads the existing assignment.

Size catch-up delivery

Size catch-up delivery

Test 2,000 measurements/s as a catch-up profile.

One hour of measurement data is collected.

Catch-up traffic exceeds the normal rate of 33.33 readings/s.

Alternative considered
Testing only the normal rate underestimates restart load.
Trade-off
Buffers require capacity.
Reassess
Longer connectivity outages become common.

Terms in this step

Size catch-up delivery
Catch-up traffic exceeds the normal rate of 33.33 readings/s.

Try it yourself

Calculate the normal rate and the rate for replaying one hour of measurements in one minute.

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
2,000 stations divided by 60 seconds gives 33.33 readings/s.
Second part of the solution
2,000 × 60 readings divided by 60 seconds gives 2,000 readings/s during catch-up; this profile needs a separate restart test.

Apply to your project

Which corresponding assumption in your project would you check first? Consider this trigger: Longer connectivity outages become common.

Step 4 examines: deduplicate the sequence.