Lesson 20: Strategic Domain-Driven Design in IIoT & Telemetry Architectures
←→

Lesson 20: Strategic Domain-Driven Design in IIoT & Telemetry Architectures

Industrial control systems (ICS) and industrial IoT platforms encompass vast, heterogeneous problem domains. Within a single industrial manufacturing plant, software systems must simultaneously interface with hard real-time programmable logic controllers (PLCs), parse proprietary fieldbus registers, store petabyte-scale historical time series, execute regulatory alarm rationalization, and render responsive, high-performance web graphics for plant operators.

Traditional industrial software engineering frequently succumbs to the Monolithic Canonical Model Trap: attempting to construct a single universal database schema, object hierarchy, or software class model that represents every physical transducer, control loop, business metric, and user interface widget across the enterprise.

As formalized by Vlad Khononov (2022) in Learning Domain-Driven Design, such universal models inevitably collapse into a fragile, unmaintainable "Big Ball of Mud". Applying Strategic Domain-Driven Design (Strategic DDD) decomposes the sprawling industrial problem space into autonomous Subdomains and isolates software implementations within explicit Bounded Contexts governed by rigorous integration contracts (Koltsova et al., 2026).


1. Physical Reality & Field Equipment (Prerequisites)

On the physical plant floor, industrial operations are executed by multi-vendor automation hardware and managed by distinct operational disciplines with fundamentally incompatible mental models:

  1. The Operational Technology (OT) Field Reality:
  1. The Supervisory & Control Room Reality:
  1. The Information Technology (IT) & Enterprise Data Reality:

The organizational and physical dichotomy between centralized supervisory operations and localized field diagnostic maintenance is illustrated in Figure 20.1:

Centralized Process Operations Dispatch Center

Photo Unavailable

Search: "Centralized Process Operations Dispatch Center"


(a) Centralized Process Operations Dispatch Center
Field Engineering Diagnostic & Calibration Station

Photo Unavailable

Search: "Field Engineering Diagnostic & Calibration Station"


(b) Field Engineering Diagnostic & Calibration Station
Figure 20.1: Diverse Industrial Personas and Operating Realities: (a) Centralized supervisory control room focused on cognitive situational awareness and holistic unit management; (b) Field engineering calibration environment focused on low-level register addressing and physical loop integrity.

2. The "Big Ball of Mud" Anti-Pattern in Industrial SCADA

When software architects attempt to merge these disparate physical realities into a single "universal" industrial object model, the architecture degrades into a Big Ball of Mud (Khononov, 2022).

The Semantic Overlap Trap

In an industrial plant, different engineering domains use identical vocabulary to signify completely different concepts:

Why Canonical Enterprise Models Fail

Attempting to create a single IndustrialTag class that incorporates PLC register offsets, engineering unit conversions, historical compression flags, alarm rationalization deadbands, user permissions, and SVG rendering coordinates produces a bloated, highly coupled monstrosity. First, it introduces fragile coupling: modifying a field in the HMI rendering logic forces recompilation of the PLC communication driver and triggers migration scripts on the historical database. Second, it induces cognitive overload, as developers cannot understand or modify any single subsystem without grasping the totality of the entire enterprise system. Finally, it destroys team autonomy: engineering teams can no longer deploy features independently, because every minor software release requires cross-department coordination and facility-wide regression testing (Koltsova et al., 2026).


3. Strategic Subdomain Portfolio & Bounded Context Decoupling

Strategic Domain-Driven Design resolves this friction by partitioning the problem space into Subdomains based on business capability, and structuring the solution space into autonomous Bounded Contexts (Khononov, 2022).

The Three Subdomain Classifications

In accordance with Khononov's strategic taxonomy, the business capabilities of an industrial telemetry platform can be classified into three distinct categories:

  1. Core Subdomains (Proprietary Innovation & Competitive Advantage):
  1. Generic Subdomains (Standardized Industry Commodity):
  1. Supporting Subdomains (Auxiliary Business Functions):

The portfolio hierarchy separating Core, Generic, and Supporting capabilities is structured in the following strategic diagram:

Mermaid Diagram
graph TD

    subgraph Portfolio [Strategic Subdomain Portfolio]
        C1["Core Subdomain:<br/>• Real-Time UNS Telemetry Routing Engine<br/>• Zero-Reflow Dynamic Web SVG/Canvas Engine<br/>• Symbiotic Cognitive Mirroring (ALARMS Framework)"]
        G1["Generic Subdomain:<br/>• TimescaleDB Append-Only Hypertables<br/>• Clustered MQTT Message Broker Fabric<br/>• TLS 1.3 / mTLS Cryptographic Transport"]
        S1["Supporting Subdomain:<br/>• IEC 61850 SCL/SCD Configuration Parsers<br/>• Edge Node Hardware Provisioning Profiles<br/>• CSV / Excel Batch Export Utilities"]
    end

Bounded Contexts & Integration Patterns

A Bounded Context establishes the strict boundary within which a specific Ubiquitous Language is unambiguously valid (Khononov, 2022). In an industrial telemetry platform, software boundaries are governed by formal DDD integration patterns:

  1. Upstream Context [U]: Data Transport & Semantics (Core):
  1. Downstream Context [D]: Visualization & Low-Code HMI (Core):
  1. Downstream Context [D]: Relational Time-Series Storage (Generic):
  1. Brownfield Integration: Anti-Corruption Layer (ACL):

The complete strategic context map, showing bounded context boundaries, integration relationships, and ubiquitous language definitions, is illustrated in Figure 20.2:

20-strategic-context-map.svg

Figure 20.2: Strategic Domain-Driven Design Context Map: The visual emphasis is on ownership and translation boundaries—where legacy data is normalized, where the published language is exposed, and where downstream contexts remain independent (Koltsova_et_al_2026; Khononov, 2022).


4. Fundamental Cross-Context Boundary Invariants

To guarantee architectural stability across distributed teams and prevent domain model contamination, all software components should adhere to three Cross-Context Boundary Invariants:

The Data Ownership Preservation Invariant (Koltsova et al., 2026)

Invariant Rule: The Unified Namespace message broker, data exchange subsystems, and user interface renderers provide transport, routing, and visualization capabilities, but are strictly prohibited from assuming data ownership.

The physical emitting device (the field sensor, PLC, or RTU) remains the sole authoritative source of truth for process variable state.
- The message broker acts purely as an event transit fabric. It must never fabricate, synthesize, extrapolate, or alter physical process measurements.
- If an edge device disconnects, the broker must not invent a default value; it must publish an explicit Sparkplug B NDEATH or quality code BAD_COMM_FAILURE to preserve deterministic telemetry truth.

The RESTful Client Isolation Invariant (Villamar et al., 2025)

Invariant Rule: Remote HMI web clients, analytical viewers, and third-party enterprise applications are strictly prohibited from issuing direct register queries to physical field controllers.

All client telemetry access must be decoupled through intermediate Open-Host Service gateways:
- Directly polling PLCs over industrial networks (e.g., 50 web browsers issuing Modbus TCP read requests to a single PLC CPU) causes field controller communication buffer exhaustion, scan cycle jitter, and critical interlock latency spikes.
- Enforcing the OHS gateway pattern shields OT controllers from external client load, preserves network segmentation boundaries under IEC 62443, and ensures that thousands of concurrent users can inspect process values without consuming a single microsecond of PLC CPU execution time.

The Dynamic Presentation Velocity Invariant (Tong et al., 2026)

Invariant Rule: Dynamic graphical elements rendered within the Visualization Bounded Context must constrain visual translation speeds to $4^\circ/\text{s} \le \omega \le 12^\circ/\text{s}$ of visual angle, and must never exceed $16^\circ/\text{s}$.

As established in Lesson 18, exceeding this empirical boundary triggers oculomotor smooth pursuit breakdown, spontaneous blink reflex suppression, corneal desiccation, and a catastrophic surge in operator decision-making error ($p < 0.001$). Enforcing this invariant ensures that the presentation layer strictly serves human cognitive capabilities rather than uncritically mirroring raw physical velocities.

5. Structural Comparison

DimensionMonolithic "Canonical Model" SCADAStrategic DDD Bounded Contexts
Architectural TopologySingle monolithic database & unified class modelDecoupled Bounded Contexts with explicit contracts
Ubiquitous LanguageContradictory definitions forced into one schemaDomain language strictly scoped per Bounded Context
Core Subdomain FocusIn-house developers reinvent generic commodities (DB, broker)In-house focus strictly on Core innovation (UNS, Scene Graph)
Legacy IntegrationLegacy registers bleed directly into UI codeAnti-Corruption Layer isolates brownfield protocols
System InvariantsInvariants scattered across stored procedures & scriptsExplicitly enforced across Bounded Context perimeters
Failure DomainSingle defect or schema migration crashes entire systemFailures isolated strictly within individual context boundaries
Team OrganizationLarge monolithic team bogged down by coordination frictionStream-aligned teams with autonomous deployment pipelines
Regulatory ComplianceAudit trails mingled with transient real-time streamsImmutable audit journals separated from real-time streams

6. Active-Recall Assessments

Question 1: The Monolithic Canonical Model Trap & Domain Drift
Why does the pursuit of a single universal "Canonical Industrial Data Model" inevitably fail in large-scale supervisory control platforms?
Pursuing a single universal data model fails because different industrial engineering disciplines operate under irreconcilable mental models and operational constraints. To a PLC programmer, a "Tag" is a volatile 16-bit register address polled at 20 Hz for deterministic machine protection. To an HMI designer, a "Tag" is a dynamic binding driving an SVG animation matrix. To an enterprise data architect, a "Tag" is an immutable foreign key in an append-only relational table. Forcing these conflicting concepts into a single universal class creates a bloated "Big Ball of Mud" with immense coupling: any modification to an HMI widget forces database migrations and breaks PLC drivers. Strategic DDD resolves this by creating explicit Bounded Contexts where each domain maintains its own cleanly scoped Ubiquitous Language (Khononov, 2022).
Question 2: Subdomain Classification & Resource Allocation
How does classifying industrial software capabilities into Core, Generic, and Supporting subdomains prevent engineering resource waste in IIoT development?
Subdomain classification dictates where a software engineering organization must invest proprietary development resources. The current context map classifies telemetry routing and the dynamic dashboard engine as candidate Core Subdomains; their eventual implementation boundaries remain subject to Phase 2 ADRs. In contrast, Generic Subdomains (e.g., time-series storage, MQTT brokers, cryptographic TLS) are complex but non-differentiating commodities; attempting to build a custom in-house time-series database or MQTT broker squanders millions in engineering capital on solved problems. Generic subdomains should be evaluated for off-the-shelf adoption. Supporting Subdomains (e.g., SCD XML parsers) are low-complexity auxiliary utilities that can be implemented simply or outsourced (Koltsova et al., 2026).
Question 3: Open-Host Service (OHS) vs. Anti-Corruption Layer (ACL)
Contrast the architectural purpose of an Open-Host Service (OHS) with that of an Anti-Corruption Layer (ACL), and identify where each is deployed in a telemetry architecture.
An Open-Host Service (OHS) is an integration pattern implemented by an upstream provider to serve multiple downstream consumers. The upstream context defines a stable, versioned public contract—the Published Language (PL)—allowing downstream systems to integrate without writing custom translation wrappers. For example, a Data Transport & Semantics context could act as an OHS, publishing telemetry contracts for HMI clients and historians. In contrast, an Anti-Corruption Layer (ACL) is implemented by a downstream consumer to shield its clean domain model from being corrupted by an uncooperative or legacy upstream interface. At a brownfield edge, the ACL can translate raw Modbus RTU/TCP memory registers into normalized metric objects.
Question 4: The Data Ownership Preservation Invariant
What physical catastrophe does the Data Ownership Preservation Invariant (Koltsova et al., 2026) prevent in industrial control systems?
The Data Ownership Preservation Invariant dictates that the message broker, exchange fabric, and visualization interfaces are purely transit and rendering pipelines; they never own, fabricate, or extrapolate operational process data. The physical emitting device (PLC or field sensor) remains the sole authoritative source of truth. If this invariant were violated, a message broker or intermediate gateway might attempt to "fill in" missing data during an edge network disconnection with an extrapolated nominal value. An operator looking at an HMI would see a calm, nominal tank pressure reading, unaware that the real physical vessel was experiencing an unmonitored thermal runaway. Preserving strict data ownership ensures that telemetry truth and quality codes remain fully deterministic.