System Design Atlas

Predictive machine maintenance

06 / 10Worked example

The overall architecture

How are the responsibility for maintenance findings and external processing distributed among modules and processes?

The local consistency rule determines the maintenance API boundary. Feature and model processing runs separately for deferred work. The modules windowing, model evaluation, examination of findings, maintenance completion structure responsibility within the API; they are not individually operated services. The sensor source feeds a time-ordered measurement store. Feature and model processing reads closed windows and produces suggestions linked to a model revision. The maintenance API manages relational findings, human approvals and work orders. Maintenance staff review findings through the interface, and production planning schedules approved work. Maintenance reports return as domain-reviewed feedback for later model evaluation. This learning case has no control path from the model process to the machine.

Starting point The window and model version identify the finding.

Assumptions for the example case

Own fictitious example design. Fictional suggestions for a single machine based on vibration trends, with human approval of work orders. Measurement windows last 60 seconds and are closed on the left, open on the right; a measurement at exactly 60 seconds belongs in the next window. All figures and test goals are illustrative assumptions.

Runtime components and datastores

Runtime topology · External entities, processes and datastores

Sensor sourceProvides authenticated measurement packages
Production planningtakes over released orders

Maintenance suggestion and work order

Measurement ingestionchecks source and deduplicates measurements
Time-ordered measurement storeMeasurements, gaps and origin
Feature and model processingReads closed windows
Maintenance APIManages findings, approvals and work orders
Relational maintenance storeFinding, decision and maintenance evidence
Maintenance interfaceShows the finding and review result
Sensor source → Measurement ingestionAuthenticated measurement package
Measurement ingestion → Time-ordered measurement storededuplicated measured value with time
Time-ordered measurement store → Feature and model processingClosed window
Feature and model processing → Maintenance APISuggestion with model revision
Maintenance API → Relational maintenance storeFinding and approval committed atomically
Maintenance interface → Maintenance APIhuman decision
Maintenance API → Production planningApproved command

One finding per measurement window and model revision creates at most one work order approved by a human.

The sensor source feeds a time-ordered measurement store. Feature and model processing reads closed windows and produces suggestions linked to a model revision. The maintenance API manages relational findings, human approvals and work orders. Maintenance staff review findings through the interface, and production planning schedules approved work. Maintenance reports return as domain-reviewed feedback for later model evaluation. This learning case has no control path from the model process to the machine.

Domain responsibilities within the API

Interior view · Maintenance API

Finding ingestionDeduplicate proposal per window and revision
Data quality statusEvidence of completeness, gaps and interpolation
ApprovalRecord the human decision and work order exactly once
Maintenance completionLink the maintenance report and review result
Befundannahme → DatenqualitätsstatusDomain call
Datenqualitätsstatus → FreigabeDomain call
Freigabe → WartungsabschlussDomain call

These responsibilities run within the same API process.

The maintenance API contains windowing, model evaluation, finding review and maintenance completion. The diagram shows domain calls between modules within the API process.

Map responsibilities to runtime components

Domain taskRuntimeResponsibility
WindowingMaintenance APIAssigns measurements to fixed time windows and quality characteristics.
Model evaluationMaintenance APICalculates proposals with documented model version.
Finding assessmentMaintenance APIRecords human review and its rationale.
Maintenance completionMaintenance APILinks the work order to the actual maintenance report.
Feature and model processingSeparate background processProcesses stored work and external feedback.
Sensor sourceExternal boundaryProvides or confirms the evidence agreed for this case.

Windowing

Runtime
Maintenance API
Responsibility
Assigns measurements to fixed time windows and quality characteristics.

Model evaluation

Runtime
Maintenance API
Responsibility
Calculates proposals with documented model version.

Finding assessment

Runtime
Maintenance API
Responsibility
Records human review and its rationale.

Maintenance completion

Runtime
Maintenance API
Responsibility
Links the work order to the actual maintenance report.

Feature and model processing

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

Sensor source

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

Computation remains separate from the maintenance core

Computation remains separate from the maintenance core

Computation remains separate from the maintenance core.

A machine finding per measurement window and model revision generates at most one approved maintenance order; a model output alone does not trigger a physical equipment effect.

Measurement windows, model references, findings, and maintenance records must represent the same valid state. Your exercise identifies the input and expected result.

Alternative considered
A separate service for each module would spread the guarantee of at most one approved work order per machine finding, measurement window and model revision across additional network boundaries. A model output alone still triggers no physical equipment effect.
Trade-off
Common schema changes require coordinated releases.
Reassess
Significantly deviating load of feature and model processing or independent responsibility justifies a new runtime boundary.

Try it yourself

Assign windowing, feature and model processing and sensor source to the module, process and external system types. Justify 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
Windowing is a module in maintenance API; feature and model processing is its own process; sensor source is outside.
Storage
Measurement windows, model references, findings and maintenance records hold the authoritative evidence. A machine finding per measurement window and model revision generates at most one approved maintenance order; a model output alone does not trigger a physical equipment effect. The joint transaction protects this connection; external responses remain separate evidence.

Apply to your project

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

Next: A release commit generates a maintenance order.