Unified Namespace
A Unified Namespace (UNS) is one shared topic tree where every system of a business publishes its current data and finds the data of every other system. Instead of point-to-point links between PLCs, SCADA, MES and ERP, everything meets at the broker.
The idea
| Without a UNS | With a UNS |
|---|---|
| Every application connects to every source | Every source publishes once, every application subscribes |
| Each link has its own protocol and format | One protocol (MQTT) and one structure |
| Adding a consumer means touching the sources | Adding a consumer means one new subscription |
| Data is copied and goes stale | The tree always holds the current state |
Think of it as a postal address for data: like country, city, street and house, enterprise/site/area/line/device/signal lets any new subscriber find a value without being told where it physically comes from. Every topic answers three questions: who owns the data, where it lives and what it is (Design your topics).
A UNS is built on four principles:
- One structure, usually the ISA-95 hierarchy, so data is found by where it comes from.
- Report by exception: sources publish when a value changes, not when asked.
- Current state in the broker: the latest value of every topic is available to anyone who subscribes.
- Edge-driven: devices and gateways connect out to the broker; nothing polls them from outside.
Building a UNS on ConnectMQ Cloud
| Principle | How to do it on ConnectMQ |
|---|---|
| One structure | Use enterprise/site/area/line/device/signal (Design your topics). The console builds the tree, devices and Digital Twin from it. |
| Readable payloads | Publish JSON objects with the same field names on every device type (payload formats). Every numeric field becomes a live value, chart and possible alert. |
| Kinds of data | Separate telemetry, status, alarms, events, cmd and config in the last level (kinds of data). |
| Derived data | Services publish results such as OEE to their own topics, never over device topics (raw and derived data). |
| Current state | Publish status and configuration as retained messages; new subscribers get them immediately. |
| Online / offline | Use a Last Will and read $SYS/broker/connection/<client ID>/state (system topics). |
| Consumers | MES, ERP, SCADA, analytics and AI agents subscribe with wildcards, each with its own credential set. |
| Scaling consumers | Spread a high-volume branch over several workers with shared subscriptions. |
| Governance | Give each site, line or application only its branch with access control. |
| Shop floor | ConnectMQ Edge reads PLCs, meters and relays and publishes them into the tree, buffering on disk while offline. |
| Sparkplug B | ConnectMQ Cloud converts Sparkplug B messages to ISA-95 JSON automatically, so Sparkplug and plain MQTT sources share one namespace. |
Example tree
text
acme/
├── istanbul/
│ ├── assembly/
│ │ ├── line1/
│ │ │ ├── cnc-01/telemetry {"temperature":62.4,"spindleRpm":11950}
│ │ │ ├── cnc-01/status {"state":"running"} (retained)
│ │ │ └── robot-02/telemetry
│ │ └── line2/...
│ └── energy/main-meter/telemetry
└── izmir/...A line dashboard subscribes to acme/istanbul/assembly/line1/#, the energy team to acme/+/energy/#, and headquarters to acme/#.
Related
- ISA-95 and Sparkplug B
- Architecture: how data flows through ConnectMQ Cloud