System Design Atlas

Building digital twin with controlled equipment actions

06 / 10Worked example

The overall architecture

The controller remains outside the twin. Which boundaries preserve this responsibility?

The platform knows only reported effects.

Starting point Only evidence permits terminal effect states.

Assumptions for the example case

A fictional laboratory setup with a ventilation demonstrator. Local hardware limits operate independently; this example replaces neither building automation nor a safety function. All quantities, thresholds and operational targets in this design are illustrative assumptions.

Digital twin with local control limits

Digital twin with local control limits

Model-maintenance and operations interfaceAuthenticated authorisation
Digital twin APIModel + authorisation
Relational order datastoreProposals + commands
Telemetry adapterMeasurement ingestion
Time-series datastoreM-42
Simulation workerNo physical effect
Actuation workerSend S-42
ControllerHardware limit
Model-maintenance and operations interface → Twin APIModel + control authorisation
Twin API → Relational command datastoreProposal + S-42 + response
Controller → Telemetry adapterM-42
Telemetry adapter → Time-series datastoreMeasurement + timestamp
Relational command datastore → Simulation workerRead model
Time-series datastore → Simulation workerRead measurements
Simulation worker → Relational command datastoreProposal only
Relational command datastore → Actuation workerCommitted S-42
Actuation worker → ControllerSetpoint 60 %
Controller → Twin APIConfirmation

Simulation writes proposals only; the actuation worker sends committed commands; hardware limits remain independently enforced outside the platform.

The API, simulation, telemetry adapter and actuation worker are processes. Two datastores serve different domain purposes; the external controller enforces hardware limits.

Responsibilities within the application

Twin modules

Model mappingComponent + sensor
Measurement managementAge + Quality
SimulationProposals
Control authorisationBoundaries
Effect reconciliationEvidence

Mapping, measurement management, simulation, control authorisation and effect reconciliation remain separate.

Internal modules: model mapping connects components and sensors; measurement management shows age and quality; simulation calculates proposals without physical effects; control authorisation binds approved proposals to limits; effect reconciliation compares commands with controller confirmations. The architecture assigns these responsibilities to processes and datastores.

Runtime components and authoritative data

Runtime boundary
Model-maintenance and operations interface → twin API → relational command datastore. External controller → telemetry adapter → time-series datastore. The simulation worker reads the model and time series and writes proposals only. The actuation worker reads committed commands and sends them to the controller; responses enter through the same command datastore. Hardware limits remain explicitly outside the platform.
Module responsibilities
Model mapping: connects components and sensors. Measurement management: shows age and quality. Simulation: calculates proposals without physical effects. Control authorisation: binds an approved proposal to limits. Effect reconciliation: compares commands with controller confirmations.

The controller remains outside the digital twin.

The controller remains outside the digital twin.

The control worker crosses the external boundary with versioned commands.

The platform knows only reported effects.

The simulation performs calculations; the actuation worker transports committed commands. The time-series store holds measurements; the relational data store holds approvals, the inbox, and commands.

Alternative considered
Showing the controller as an internal module conceals independent failures.
Trade-off
Reconciliation must account for the external protocol.
Reassess
New systems may need their own adapters.

Try it yourself

Place simulation and the actuation worker within the architecture; name both datastores.

A hint for your attempt

The platform knows only reported effects.

Compare with a possible solution
Processes
Simulation computes proposals; the actuation worker transmits committed commands.
Storage
The time-series datastore holds measurements; the relational datastore holds authorisations, inbox records and commands.

Apply to your project

What is the equivalent of an external controller boundary in your project?

Step 7: response loss leads back to the same command. Which evidence resolves the effect?