<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Matteo Fiameni</title>
    <description>The latest articles on DEV Community by Matteo Fiameni (@matteofiameni).</description>
    <link>https://dev.to/matteofiameni</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3153406%2F0a714e18-6e69-47ee-9cfe-db25672ef36c.jpg</url>
      <title>DEV Community: Matteo Fiameni</title>
      <link>https://dev.to/matteofiameni</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/matteofiameni"/>
    <language>en</language>
    <item>
      <title>Unified Namespace explained: what it is, when you need it, when you don't</title>
      <dc:creator>Matteo Fiameni</dc:creator>
      <pubDate>Thu, 26 Nov 2026 18:04:27 +0000</pubDate>
      <link>https://dev.to/matteofiameni/unified-namespace-explained-what-it-is-when-you-need-it-when-you-dont-2dg8</link>
      <guid>https://dev.to/matteofiameni/unified-namespace-explained-what-it-is-when-you-need-it-when-you-dont-2dg8</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;In short&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A Unified Namespace is a shared communication recipe: machines and software talk with the same rules, for reading and writing.&lt;/li&gt;
&lt;li&gt;It is not a product, not a standard and not a database.&lt;/li&gt;
&lt;li&gt;The broker is the easy part. The real work is the convention: names, context, rules.&lt;/li&gt;
&lt;li&gt;Without a requirements analysis, the tangle does not go away: it moves into one place.&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;p&gt;In the project I am working on, the plant is new, and almost every quarter one or two machines arrive to be integrated. None is like the previous one. One speaks OPC UA, one FINS, one is a Siemens SIMATIC PLC. One writes a CSV for every part it machines, another a text file. One exposes a TCP/IP socket, the last one a REST API. Every time there is something new.&lt;/p&gt;

&lt;p&gt;If every new machine forced us to touch all the systems that use its data, we would redo half the project every quarter. What keeps it standing is simple to say: for each machine there is an adapter that speaks its language, and a mapper that brings everything back to one standard object. From there on, for the rest of the system, one machine is as good as another.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Machines                     Middleware                     Data consumers
OPC UA, FINS, SIMATIC S7,    one adapter per machine   →    historian, application logic,
CSV per part, text file,  →  mapper → one standard object   frontend, notifications
TCP/IP, REST API             context always present
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That is the idea behind the Unified Namespace, and when I design industrial middleware I think about it from the start, even when there is only one machine. Much of what is written about it comes from broker and platform vendors. Here is how I actually use it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it is
&lt;/h2&gt;

&lt;p&gt;A Unified Namespace (UNS) is a shared communication recipe. Different machines and software exchange information following the same rules, for both reading and writing.&lt;/p&gt;

&lt;p&gt;In practice there is a central point, usually an MQTT broker. Each system publishes there what it knows and subscribes to what it needs. Information has an address that says where it comes from and what it is about. For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;plant-a/assembly/line-2/screwdriver-01/state
plant-a/assembly/line-2/screwdriver-01/alarms
plant-a/assembly/line-2/order/request
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The advantage is not the broker. It is that whoever acquires the data does not need to know every system that will use it, and whoever consumes it does not need to know the quirks of every machine. Coupling between components drops, and adding a machine or a system becomes local work instead of a chain of changes.&lt;/p&gt;

&lt;p&gt;With &lt;em&gt;n&lt;/em&gt; systems connected point to point, in the worst case every system talks to every other: n(n−1)/2 connections, 15 with six systems, 190 with twenty. With a broker in the middle they stay at &lt;em&gt;n&lt;/em&gt;. The broker model is described in &lt;a href="https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageBroker.html" rel="noopener noreferrer"&gt;Enterprise Integration Patterns&lt;/a&gt; by Hohpe and Woolf.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it isn't
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A product.&lt;/strong&gt; You buy brokers and platforms. The UNS is the way you use them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A standard.&lt;/strong&gt; No norm defines it. The building blocks are standards: MQTT, &lt;a href="https://blogs.eclipse.org/node/7442" rel="noopener noreferrer"&gt;Sparkplug B&lt;/a&gt; (ISO/IEC 20237:2023), ISA-95.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A database.&lt;/strong&gt; The historian is a destination for the data, not something that has to live in the UNS.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  ISA-95 yes, but not mechanically
&lt;/h2&gt;

&lt;p&gt;The address structure usually follows the ISA-95 hierarchy: site, area, line, machine. It is an excellent starting point, and the standard was updated recently: &lt;a href="https://www.isa.org/news-press-releases/2025/april/update-to-isa-95-standard-addresses-integration-of" rel="noopener noreferrer"&gt;Part 1 was revised in April 2025&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The mistake is applying it mechanically. First I look at the context: the systems involved, the information to exchange, the logic to implement. Then I adapt the convention to the project. What matters is that it is clear and shared: anyone must understand where a piece of information is and how to read it, without a hierarchy deeper than needed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Same rules, not the same place
&lt;/h2&gt;

&lt;p&gt;I standardise everything that goes through the middleware, telemetry and logs included. Every message has a common structure, and its context is always identifiable: for example the workcenter it refers to.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"telemetry"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"workcenter"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"line-2/screwdriver-01"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"timestamp"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2026-11-03T08:15:02Z"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"data"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"torque_nm"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;12.4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"result"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"ok"&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;At that point the workers can be generic. They receive a message, read its context and decide what to do based on type and destination: store it in the historian, trigger some logic, update the frontend, send a notification.&lt;/p&gt;

&lt;p&gt;This does not mean storing everything in the same place, or giving everything the same lifecycle. Orders, recipes, alarms and telemetry follow the same communication model, each with its own handling.&lt;/p&gt;

&lt;h2&gt;
  
  
  MQTT or Sparkplug B
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Where I start today: MQTT with my own convention.&lt;/strong&gt; Topic structure, payloads and message handling defined around the project's needs and integrated with the middleware I am building. I control the model and only add the rules I really need.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;When it makes sense: Sparkplug B.&lt;/strong&gt; It also defines the payload format and session state management (&lt;a href="https://sparkplug.eclipse.org/specification/version/3.0/" rel="noopener noreferrer"&gt;Eclipse specification&lt;/a&gt;). It makes sense when you must interoperate with other parties' industrial systems through a shared standard.&lt;/p&gt;

&lt;p&gt;I have studied Sparkplug B out of interest, but never implemented it in a project. It is not wrong: when I control the architecture and the parties involved, I simply don't add constraints without a concrete benefit.&lt;/p&gt;

&lt;h2&gt;
  
  
  How much to build
&lt;/h2&gt;

&lt;p&gt;I introduce a common structure even with a single machine. Today it is one, tomorrow it could be ten, and with good foundations you grow without redoing everything.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;A house or a skyscraper.&lt;/strong&gt; The foundations must be solid and carry what I have in mind, but I don't design them for a skyscraper if I know I am building a house. The point is not to avoid a UNS in small projects: it is to design it for reasonably foreseeable growth.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  When the broker is gone
&lt;/h2&gt;

&lt;p&gt;Acquisition must depend as little as possible on the broker and downstream systems. If the broker does not answer, I keep collecting data from the machines, within the available resources, and handle locally whatever needs no external answer. For events I cannot lose there is a persistent buffer, recovered when the connection returns.&lt;/p&gt;

&lt;p&gt;Not everything can go on, though. I cannot confirm an order change or a rescheduling if the system that must answer is unreachable. The failure has to be handled without losing information and without pretending an operation succeeded. I wrote about this in &lt;a href="https://matteofiameni.com/en/notes/network-down-line-up/" rel="noopener noreferrer"&gt;The network goes down, the line doesn't&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The most common mistake
&lt;/h2&gt;

&lt;p&gt;Thinking a UNS is simple and immediate. First you gather the requirements: who the parties are, what information they exchange, what logic must be supported. Only then do you define structure and rules.&lt;/p&gt;

&lt;p&gt;Otherwise you get a formally tidy structure that solves nothing. Systems stay dependent, data keeps different meanings, exceptions pile up in the middleware.&lt;/p&gt;

&lt;p&gt;From the outside everything looks in order: one single point, clean cables. Just lift the lid.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpy8cvxlsc1ccyk0day57.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpy8cvxlsc1ccyk0day57.webp" alt="A junction box that looks tidy from the outside, with its lid lifted and a tangle of cables inside" width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The tangle hasn't gone away: it has been moved into one place.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  If I introduced a UNS tomorrow: five rules
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;One adapter per machine and a mapper to a single standard object.&lt;/li&gt;
&lt;li&gt;A naming convention taken from ISA-95 and adapted to the context, not copied.&lt;/li&gt;
&lt;li&gt;The same communication rules for everything; different destinations and lifecycles.&lt;/li&gt;
&lt;li&gt;MQTT with my own convention, Sparkplug B when you need to interoperate with others.&lt;/li&gt;
&lt;li&gt;Requirements before structure: the hard part is the standard, not the broker.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;OASIS, &lt;a href="https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html" rel="noopener noreferrer"&gt;MQTT Version 5.0&lt;/a&gt;, OASIS Standard, 2019.&lt;/li&gt;
&lt;li&gt;Eclipse Foundation, &lt;a href="https://sparkplug.eclipse.org/specification/version/3.0/" rel="noopener noreferrer"&gt;Sparkplug 3.0&lt;/a&gt;, also published as ISO/IEC 20237:2023 (&lt;a href="https://blogs.eclipse.org/node/7442" rel="noopener noreferrer"&gt;announcement&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;ISA, &lt;a href="https://www.isa.org/standards-and-publications/isa-standards/isa-95-standard" rel="noopener noreferrer"&gt;ISA-95 / IEC 62264&lt;/a&gt;, Enterprise-Control System Integration; &lt;a href="https://www.isa.org/news-press-releases/2025/april/update-to-isa-95-standard-addresses-integration-of" rel="noopener noreferrer"&gt;Part 1 revision&lt;/a&gt;, April 2025.&lt;/li&gt;
&lt;li&gt;G. Hohpe, B. Woolf, &lt;a href="https://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageBroker.html" rel="noopener noreferrer"&gt;Enterprise Integration Patterns: Message Broker&lt;/a&gt;, Addison-Wesley, 2003.&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://matteofiameni.com/en/notes/unified-namespace/" rel="noopener noreferrer"&gt;matteofiameni.com&lt;/a&gt;, where I write field notes on IIoT, MES and OT/IT integration.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>iot</category>
      <category>mqtt</category>
      <category>architecture</category>
      <category>manufacturing</category>
    </item>
  </channel>
</rss>
