System Design Atlas

Waste collection routes and disposal records

08 / 10Worked example

Bottlenecks and trade-offs

Which measurements distinguish between business waiting times and technical bottlenecks during collection and handover?

The sequence is defined; we now examine its possible bottlenecks. A large synchronisation backlog may indicate a coverage gap or server load. Mass discrepancies concern weighing and assignment records. These causes receive separate investigation lists. The measures below are initial decisions to test; their benefits have yet to be measured.

Starting point Acknowledgement follows durable acceptance of the emptying record.

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.

Trace symptoms to their causes

Diagnostic tree

Mass discrepancySignal
Compare the estimate with the weighed massMeasurement
Records officersResponsible
Receipt unconfirmedSignal
Check the handover recordMeasurement
Receiving facilityResponsible
Event gapSignal
Check device sequence numbersMeasurement
Platform operationsResponsible

Signal, measurement and role remain connected for each cause.

A large synchronisation backlog may indicate a coverage gap or server load. Mass discrepancies concern weighing and assignment records. These causes receive separate investigation lists.

Measure before making changes

SymptomValidationTargeted action
A large synchronisation backlog may indicate a coverage gap or server loadCheck source freshness, the business reason for waiting and processing time separately.Address the evidenced cause first, then retest the same case.
1000 offline reports from one vehicle after reconnectionMeasure the duration of the atomic decision and concurrent access.Move lengthy work outside the commit; preserve the business invariant in the concurrency test.
Stale display despite stored evidenceCompare the authoritative version with the projection version.Rebuild the projection; continue deciding state changes from the authoritative state.

A large synchronisation backlog may indicate a coverage gap or server load

Validation
Check source freshness, the business reason for waiting and processing time separately.
Targeted action
Address the evidenced cause first, then retest the same case.

1000 offline reports from one vehicle after reconnection

Validation
Measure the duration of the atomic decision and concurrent access.
Targeted action
Move lengthy work outside the commit; preserve the business invariant in the concurrency test.

Stale display despite stored evidence

Validation
Compare the authoritative version with the projection version.
Targeted action
Rebuild the projection; continue deciding state changes from the authoritative state.

Mass discrepancies and coverage gaps require different checks

Mass discrepancies and coverage gaps require different checks

Mass discrepancies and coverage gaps require different checks.

A large synchronisation backlog may indicate a coverage gap or server load. Mass discrepancies concern weighing and assignment records. These causes receive separate investigation lists.

A large synchronisation backlog may indicate a coverage gap or server load. Mass discrepancies concern weighing and assignment records. These causes receive separate investigation lists. The exercise specifies the input and expected result.

Alternative considered
Adding compute capacity indiscriminately does not resolve missing business evidence.
Trade-off
Multiple measurement points and separate causes increase the diagnostic effort.
Reassess
Use measurements after the targeted change to decide whether further scaling is needed.

Try it yourself

Name two different causes of delay in this case. Choose a measurement for each and justify the first action.

A hint for your attempt

Record the business reason for waiting, source age and technical compute time separately.

Compare with a possible solution
Case-related diagnosis
A large synchronisation backlog may indicate a coverage gap or server load. Mass discrepancies concern weighing and assignment records. These causes receive separate investigation lists. First distinguish them using their own timestamps and states.
Hotspot
Measure concurrent access and commit duration for 1000 offline reports from one vehicle after reconnection. Move lengthy external work outside the transaction, then repeat the same concurrency test.

Apply to your project

Which similar display could have two different causes in your project?

Next: completion requires an accountable chain of evidence.