System Design Atlas

Mining operations with intermittent connectivity

08 / 10Worked example

Bottlenecks and trade-offs

Which measurements distinguish business waiting time from technical bottlenecks when reconciling underground work orders?

The sequence is defined; now examine its possible bottlenecks. Coverage gaps, local storage shortages and central processing backlogs require separate measurements. A new server does not eliminate a coverage gap. The following measures are initial decisions to test; their benefits have yet to be measured.

Starting point Acknowledge only after durable acceptance.

Assumptions for the example case

A fictional example design for offline documentation of previously authorised routine work, with separate safety procedures. Zone information is marked stale from age 300 seconds; this does not authorise entry or work. All figures and test targets are illustrative assumptions.

Trace symptoms to their causes

Branched diagnostic tree

Device journal fullSignal
Measure free capacityMeasurement
Platform operationsResponsible
Event gapSignal
Check the monotonically increasing event numberMeasurement
Platform operationsResponsible
Revision mismatchSignal
Compare both statesMeasurement
Shift supervisorResponsible

Signal, measurement and responsible role remain connected for each cause.

Coverage gaps, local storage shortages and central processing backlogs require separate measurements. A new server does not eliminate a coverage gap.

Measure before making changes

SymptomValidationTargeted action
Coverage gaps, local storage shortages and central processing backlogs require separate measurementsCheck source freshness, the business reason for waiting and processing time separately.Address the evidenced cause first, then retest the same case.
One gateway uploads 1000 buffered events after reconnectingMeasure 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.

Coverage gaps, local storage shortages and central processing backlogs require separate measurements

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.

One gateway uploads 1000 buffered events after reconnecting

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.

Diagnose connectivity and processing separately

Diagnose connectivity and processing separately

Diagnose connectivity and processing separately.

Coverage gaps, local storage shortages and central processing backlogs require separate measurements. A new server does not eliminate a coverage gap.

Coverage gaps, local storage shortages and central processing backlogs require separate measurements. A new server does not eliminate a coverage gap. 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
Coverage gaps, local storage shortages and central processing backlogs require separate measurements. A new server does not eliminate a coverage gap. First distinguish these causes using their own timestamps and states.
Hotspot
Measure concurrent access and commit duration while one gateway uploads 1000 buffered events after reconnecting. 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, safety authorisations retain their dedicated procedures.