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 work documentation
An offline report records an action against the received revision and grants no authorisation.
Domain responsibilities within the API
Internal responsibilities
Modules remain within the API process.
Map responsibilities to runtime components
| Domain task | Runtime | Responsibility |
|---|---|---|
| Work order allocation | Shift work order API | Links the routine work order to its shift and received revision. |
| Device assignment | Shift work order API | Checks the origin and sequence of local reports. |
| Revision reconciliation | Shift work order API | Compares divergent central and local states. |
| Shift completion | Shift work order API | Links the actual outcome to review by the shift supervisor. |
| Synchronization processing | Separate background process | Processes stored work and external feedback. |
| Local gateway | External boundary | Provides 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.
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?