System Design Atlas

Mining operations with intermittent connectivity

06 / 10Worked example

The overall architecture

How are work-order responsibility and external processing divided between modules and processes?

The local consistency rule determines the structure of the shift work order API. Synchronisation processing handles deferred work in a separate process. Work order allocation, device assignment, revision reconciliation and shift completion are modules within the API. The device, local gateway and durable device journal occupy an offline zone. The shift work order API and relational central datastore sit across an interruptible connection. Synchronisation processing sends assigned revisions to the device and original action records to the central system; acknowledgements identify events accepted durably. The shift supervisor resolves conflicts centrally using both states. The separate safety procedure has no automatic control connection from this documentation application.

Starting point A conflict preserves both the original report and the central state.

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.

Runtime components and datastores

Runtime topology

Offline zone with deviceLocal routine work
Separate safety procedureIndependent responsibility

Offline work documentation

Local device journalMonotonically increasing event numbers
Synchronization processingRevisions out, evidence back
Shift work order APIAllocation and conflict
Relational central datastoreCentral work-order state
Shift supervisor interfaceReconcile both states
Offline zone with device → Local device journalSigned action record
Local device journal → Synchronization processingOriginal sequence of events
Synchronization processing → Shift work order APIEvidence + received revision
Shift work order API → Relational central datastoreAccept durably
Relational central datastore → Synchronization processingAssigned revision
Shift supervisor interface → Shift work order APIConflict resolution

An offline report records an action against the received revision and grants no authorisation.

The device, local gateway and durable device journal occupy an offline zone. The shift work order API and relational central datastore sit across an interruptible connection. Synchronisation processing sends assigned revisions to the device and original action records to the central system; acknowledgements identify events accepted durably. The shift supervisor resolves conflicts centrally using both states. The separate safety procedure has no automatic control connection from this documentation application.

Domain responsibilities within the API

Internal responsibilities

Work order revisionMaintain assigned and central revisions separately
Device eventStore signed action time, receipt time and report
Synchronisation recordAcknowledge the durably accepted event number
Conflict resolutionConfirm both states and the actual outcome

Modules remain within the API process.

The shift work order API contains work order allocation, device assignment, revision reconciliation and shift completion. Show calls between these responsibilities; the modules have no separate server icons.

Map responsibilities to runtime components

Domain taskRuntimeResponsibility
Work order allocationShift work order APILinks the routine work order to its shift and received revision.
Device assignmentShift work order APIChecks the origin and sequence of local reports.
Revision reconciliationShift work order APICompares divergent central and local states.
Shift completionShift work order APILinks the actual outcome to review by the shift supervisor.
Synchronization processingSeparate background processProcesses stored work and external feedback.
Local gatewayExternal boundaryProvides or confirms the evidence agreed for this case.

Work order allocation

Runtime
Shift work order API
Responsibility
Links the routine work order to its shift and received revision.

Device assignment

Runtime
Shift work order API
Responsibility
Checks the origin and sequence of local reports.

Revision reconciliation

Runtime
Shift work order API
Responsibility
Compares divergent central and local states.

Shift completion

Runtime
Shift work order API
Responsibility
Links the actual outcome to review by the shift supervisor.

Synchronization processing

Runtime
Separate background process
Responsibility
Processes stored work and external feedback.

Local gateway

Runtime
External boundary
Responsibility
Provides or confirms the evidence agreed for this case.

The local gateway buffers independently of the central system

The local gateway buffers independently of the central system

The local gateway buffers independently of the central system.

An offline report records a claimed action against the received work order revision; it grants no new safety authorisation or work permission.

Work order revisions, device event sequences, and resolution records must represent the same valid state. Your exercise identifies the input and expected result.

Alternative considered
A separate service for every module would spread the guarantee that offline reports document claimed actions without granting new safety authorisation or work permission across additional network boundaries.
Trade-off
Common schema changes require coordinated releases.
Reassess
A substantially different load or independent ownership for synchronisation processing justifies revisiting process boundaries.

Try it yourself

Classify work order allocation, synchronisation processing and the local gateway as a module, process or external system. Add the authoritative datastore.

A hint for your attempt

A domain responsibility becomes a process only when it has its own execution unit.

Compare with a possible solution
Boundaries
Work order allocation is a module in the shift work order API; synchronisation processing is a separate process; the local gateway is external.
Storage
Work order revisions, device event sequences and resolution records hold the authoritative evidence. An offline report records a claimed action against the received revision; it grants no new safety authorisation or work permission. The shared transaction protects this relationship; external responses remain separate evidence.

Apply to your project

Which planned service boundary would distribute a currently local guarantee across the network?

Next, acknowledge only after durable acceptance.