MQTT Broker: Definition, Architecture and Selection Criteria for Manufacturing

What is an MQTT broker?

In short: An MQTT broker, often also called an MQTT server, is the software at the center of every MQTT network. Machines, sensors and applications send their messages to the broker under a topic, and the broker forwards each message to every client that has subscribed to that topic. Senders and receivers never connect to each other directly, so a new application can use existing machine data without a new interface to the machine.

Jump to: Architecture · Benefits · Challenges · UNS checklist · Selection criteria · Examples · Security · Implementation · FAQ

Protocol, broker and client: three terms that are often mixed up

MQTT itself is the protocol, the agreed language in which devices and applications exchange messages. The broker is the software on the receiving end of every connection: it keeps track of who is connected, checks permissions and decides who gets which message. MQTT clients are all participants that connect to the broker, from a gateway next to a PLC to a dashboard or an MES.

Origins, standards and protocol details such as QoS levels, MQTT 5 and Sparkplug B are explained on our MQTT glossary page. The most important terms around the broker at a glance:

  • Topic: The hierarchical address of a message, for example acme/hamburg/press-shop/press-04/force. Levels are separated by slashes, and the wildcards + (one level) and # (all levels below) let applications subscribe to whole branches.
  • Publish/subscribe: Clients publish messages to a topic or subscribe to topics. The broker connects the two sides, so publishers and subscribers do not need to know each other.
  • Quality of Service (QoS): Three delivery levels. QoS 0 delivers at most once, QoS 1 at least once and QoS 2 exactly once. Which level fits which data is explained on the MQTT page.
  • Retained message: The broker stores the last message of a topic and hands it to every new subscriber right away, so an application that starts later still sees the current state.
  • Persistent session: The broker keeps the subscriptions and pending messages of a client that disconnects briefly and delivers them after it reconnects.
  • Last Will and Testament: A message the broker publishes on behalf of a client that drops off the network unexpectedly, so every subscriber learns that a device is offline.
  • Sparkplug: A specification on top of MQTT that standardizes topic structure, payload format and device state for industrial use. It was published as the international standard ISO/IEC 20237 in 2023.

A broker is often compared with two other technologies that appear in the same data architectures. The table shows how they differ and why they usually work side by side.

MQTT brokerApache KafkaOPC UA server
Primary jobDistributes current events and states in real timeStores large event streams and makes them replayableExposes the data and information model of a machine
MessagingPublish/subscribe via a central brokerPublish/subscribe with a persistent, partitioned logClient/server, with an optional pub/sub extension
Typical locationEdge, plant and enterprise levelData center and cloudOn the machine or controller
Data modelFree payload, structure through topic conventions or SparkplugFree payload, schemas through a registryBuilt-in information model with types and semantics
Strength in the factoryLightweight, tolerates unstable networks, connects many clientsHigh throughput and long retention for analyticsRich context directly at the machine

In many plants all three work together: OPC UA delivers the data at the machine, the MQTT broker distributes it across the plant and a streaming platform archives it for analytics in the data center.

Point-to-point interfaces stop scaling long before the factory does

In most plants, data paths grew one project at a time. The MES reads directly from the controllers, energy monitoring has its own connection to the same PLCs and the quality team adds another gateway for its dashboard. Each of these interfaces works on its own, yet together they form a web that nobody can fully oversee anymore. With n systems that all exchange data with each other, up to n × (n − 1) / 2 connections can arise: 45 for ten systems and 190 for twenty. The classic automation pyramid adds to the problem, because data travels upward level by level and loses timeliness and context on the way.

Point-to-point interfaces compared with an MQTT broker as central hub in a factory

A current study shows how common this situation is. For its report Scaling MES Across the Enterprise, published in July 2026, Rockwell Automation surveyed 1,560 decision makers from manufacturing. 93% of the manufacturers have an MES in place, yet only 28% have deployed it across the enterprise and just 23% report full integration with ERP, PLM, quality and OT systems. 44% name integration as their most important requirement when buying an MES.

What these plants are missing is a layer between machines and applications that receives each value once and makes it available to every system that needs it. An MQTT broker takes on exactly this role.

How an MQTT broker works: one hub, many decoupled clients

The broker follows the publish/subscribe principle of an event-driven architecture. Its work can be described in five steps.

Connect and authenticate

Every client opens a persistent TCP connection to the broker, by default on port 1883 or, encrypted with TLS, on port 8883. The broker checks the credentials or the client certificate and decides which topics the client may read and write.

Publish once, deliver to many

A gateway at a press publishes a new value under a topic such as acme/hamburg/press-shop/press-04/force. The broker looks up all subscriptions that match this topic and forwards the message to each subscriber. With wildcards, an application can subscribe to a whole branch, for example acme/hamburg/press-shop/# for all presses in the press shop.

How an MQTT broker delivers a published message to subscribers via topics and wildcards

Report by exception

Clients usually publish only when a value changes. Compared with cyclic polling, this reduces the load on the network and on the controllers considerably, and every subscriber still learns about each change almost immediately.

Keep state across unstable connections

Retained messages, persistent sessions and the Last Will message let the broker give a newly connected application the last known state, hold messages for clients that are briefly offline and announce when a device drops off the network. The QoS level defines how strictly each delivery is confirmed.

From a single instance to a cluster

A single broker is enough for a test on one line. In production, the broker becomes the nervous system of the plant, and a failure would cut every application off from its data at once. Production setups therefore run the broker as a cluster of several nodes that behave like one broker toward the clients. Large companies add a broker per plant, often at the edge, and connect the plants to an enterprise level. This distributed topology is also the technical backbone of a Unified Namespace.

From test broker to enterprise backbone: four maturity levels

Few manufacturers introduce an MQTT broker in a single step. The following levels describe a typical path, what each level looks like and when the next step usually becomes necessary.

LevelWhat it looks likeTypical scope and trigger for the next step
1. Test brokerA single broker instance on a spare server connects a handful of sensors for a proof of concept.Set up in days. The next step follows once a second application wants the same data.
2. Line or plant brokerOne broker per line or plant collects machine data via gateways and supplies dashboards and the MES. Topics follow a first naming convention.Weeks per plant. The next step follows once production depends on the broker.
3. Production clusterThe broker runs as a high-availability cluster with access rights per topic, monitoring and versioned configuration.A few months including security approval. The next step follows once several sites need the same data.
4. Enterprise backboneBrokers in every plant share one data model and are connected to an enterprise level. Together they form a Unified Namespace.Continuous rollout, with every further plant connected faster than the first thanks to templates.

Why manufacturers build their data flow on an MQTT broker

The number of potential data sources keeps rising. According to IoT Analytics, 21.1 billion IoT devices were connected worldwide at the end of 2025, 45% of them in enterprise use. If every new data source were connected directly to every application, the integration web from the previous section would grow with each device. MQTT has become the most common answer to this: in the 2025 IoT and Embedded Developer Survey of the Eclipse Foundation, MQTT 5 (28%) and MQTT 3 (27%) are the two communication protocols used most often in IoT and edge deployments, ahead of WebSockets (24%) and HTTP (17%). A broker brings the following benefits to a factory:

  • Decoupling: Machines and applications only know the broker. A new dashboard or AI model subscribes to existing topics, and the controller stays untouched.
  • Less load on the machines: Each value is read once and distributed many times. A controller no longer has to answer the same request from five different systems.
  • Events in real time: Changes arrive as events at the moment they happen, which supports alarms, live KPIs and closed-loop processes.
  • Robust over unstable networks: QoS levels, sessions and retained messages bridge short interruptions, which are common in older plant networks and at remote sites.
  • Open standard: MQTT is supported by the major cloud platforms, by edge devices and by a growing number of controllers, which keeps the architecture vendor-neutral.
  • Foundation for AI: Applications such as Industrial AI need a steady stream of current, consistent data. A broker provides this stream without a new integration project for every model.

Where a broker alone falls short and how to close the gaps

A broker distributes messages very efficiently. It does not know what a value means, and it cannot read a Siemens S7 controller on its own. Anyone planning a production rollout should know the typical gaps from the start.

ChallengeWhy it mattersSolution
Single point of failureIf the only broker fails, every application loses its data at the same time.A cluster with automatic failover, plus local brokers per plant so production continues during a WAN outage.
Machines do not speak MQTTMany controllers only offer S7, Modbus or OPC UA, and older equipment has no MQTT client at all.A connectivity layer with protocol adapters that reads the controllers and publishes to the broker. The PLC control logic stays as it is.
Payloads without contextA value like 73.4 means nothing without unit, timestamp and asset.A binding data model and payload format, for example JSON with metadata or Sparkplug, defined before the first machine publishes.
Topic sprawlEvery team invents its own topic names, and after a year nobody finds anything.Naming conventions based on the ISA-95 hierarchy and central governance of the topic tree.
Security gapsAn open broker lets every participant read and write everything.TLS encryption, client certificates and access rights down to individual topics.
Operating many instancesManual configuration per plant leads to deviations and slow rollouts.Configuration as code (Infrastructure as Code), templates and central monitoring.

Unified Namespace Checklist

Unified Namespace Checklist teaser

From MQTT broker to Unified Namespace: where does your factory stand?

A production-ready broker is often the first step toward a Unified Namespace. Twelve questions across four areas show where your factory stands today, from data access and context to integration and governance, and what to clarify before the next step.



You are currently viewing a placeholder content from HubSpot. To access the actual content, click the button below. Please note that doing so will share data with third-party providers.

More Information

Choosing an MQTT broker for manufacturing: the criteria that decide

Many broker comparisons focus on message throughput in benchmarks. In a factory, a different set of questions usually decides whether a broker can carry production-critical data for years.

CriterionWhat to check
Protocol supportFull support for MQTT 3.1.1 and 5.0, all QoS levels, retained messages, persistent sessions and shared subscriptions
AvailabilityClustering with automatic failover, rolling upgrades without downtime and stable behavior during network interruptions
DeploymentRuns on premises, at the edge and in the cloud, as containers or on Kubernetes
SecurityTLS and mTLS, certificate management, access rights per topic and connection to existing identity systems
Data sovereigntyData stays in your own infrastructure, the vendor and support location are transparent and no cloud connection is mandatory
OperationsMetrics for standard monitoring tools such as Prometheus, versionable configuration and audit logs
Path beyond messagingCan protocol adapters, data models and central management be added later without replacing the broker?

MQTT brokers in practice: five typical use cases

Machine data for the MES

Order status, quantities and scrap are published once to the broker, and the MES subscribes to exactly the topics it needs. New lines are connected without changes to the MES interface. Learn more about MES integration.

OEE and line monitoring

Availability, performance and quality data from every line arrive in the same topic structure. This makes OEE comparable across lines and plants, without a separate integration for each dashboard.

Energy monitoring

Meters and controllers publish consumption values per machine, and energy management subscribes to them. A global tool manufacturer reduced its energy consumption with real-time energy data provided by Cybus.

Event-driven smart factory

The agricultural machinery manufacturer KRONE built its new smart factory from the ground up on an event-driven architecture, together with Cybus, NTT DATA and FIR at RWTH Aachen University. Read how the architecture came about.

Cloud and AI integration

The plant broker forwards selected topics to a cloud or data platform, where analytics and AI models use them, for example for predictive maintenance. Sensitive raw data can stay in the plant.

You can find more scenarios in our use cases.

Security and governance: who may read and write what

Once all data flows through one broker, the broker also becomes the central point of control. That is an advantage, provided access is regulated cleanly from the start. A production-ready broker needs:

  • Encrypted transport: TLS for all connections and mTLS with client certificates for machines and gateways
  • Authentication: Username and password for tests at most, certificates or a connection to existing identity providers in production
  • Authorization per topic: Each client may only publish and subscribe where its role requires it. A dashboard reads, a gateway writes.
  • Network segmentation: Brokers placed according to the zones and conduits of IEC 62443, with OT networks kept separate from office IT
  • Auditing and monitoring: Traceable connections, failed login attempts and message rates
  • Data ownership: Clear owners per topic area and plant, with central rules and local responsibility

Five steps to a production-ready MQTT broker

  1. Start with one use case: Choose a concrete goal such as OEE on one line and connect only the data sources it needs.
  2. Define topics and payloads: Set the topic hierarchy, naming conventions and payload format before the first machine publishes. ISA-95 provides a proven structure.
  3. Connect the machines: Connect controllers via OPC UA, S7, Modbus or existing MQTT clients through a connectivity layer, without changing the PLC programs.
  4. Secure and harden: Set up TLS, certificates and access rights per topic, run the broker as a cluster and integrate it into your monitoring.
  5. Scale with templates: Version the configuration as code and roll it out to further lines and plants.

How a broker grows into the backbone of a Unified Namespace across several plants is explained by Stefan Hermann, VP Product at Cybus, in the deep dive Why the Unified Namespace Is Essential for Scale.

MQTT broker with Cybus Connectware

CybusMQ is the industrial MQTT broker at the core of Cybus Connectware. As part of Cybus Connectware, it carries production data at manufacturers such as Liebherr and Krone.

  • Complete MQTT support: MQTT 3.1.1 and 5.0 with all QoS levels, retained messages, persistent sessions and shared subscriptions
  • Built for availability: Cluster-ready architecture with horizontal scaling and automatic failover
  • Secure by design: TLS and mTLS, credential and certificate-based authentication and built-in certificate management
  • Deploy anywhere: Docker images and Kubernetes Helm charts for the edge, the data center and the cloud
  • More than messaging: Within Cybus Connectware, the broker works together with protocol adapters from the Connectivity Portfolio, rule-based data processing and central management across sites.

You can find all features and how to get started on the product page.

Frequently asked questions about MQTT brokers

What is an MQTT broker in simple terms?

A central distribution point for messages. Machines send their data to the broker, and the broker passes each message on to every application that has asked for it.

What is the difference between MQTT and an MQTT broker?

MQTT is the protocol, the rules for how messages are exchanged. The MQTT broker is the server software that implements these rules, receives messages and distributes them to the subscribers.

Is an MQTT broker the same as an MQTT server?

Yes, both terms describe the same component. The broker is a server application that runs on dedicated hardware, a virtual machine or as a container.

Which ports does an MQTT broker use?

By default, port 1883 for unencrypted connections and port 8883 for connections encrypted with TLS. MQTT over WebSockets runs on a separately configured port. In production, only the encrypted port should be open.

Do I need an MQTT broker for a Unified Namespace?

In practice, almost always. Most Unified Namespace implementations use an MQTT broker as the central distribution layer, because MQTT supports publish/subscribe natively and is widely available in OT and IT.

What is the difference between an MQTT broker and Kafka?

An MQTT broker distributes current events to many clients with little overhead and copes well with unstable networks. Kafka stores event streams over long periods and makes them replayable for analytics. Many architectures combine both.

Can an MQTT broker replace OPC UA?

The two usually complement each other. OPC UA provides data and semantics directly at the machine, the MQTT broker distributes the data across the plant and the enterprise. A detailed comparison of MQTT, OPC UA and HTTP is on the MQTT page.

Can I use a free open-source MQTT broker in production?

For small setups, yes. For production-critical use, check clustering, failover, security updates, support and the operating effort across several plants before you decide.

How many devices can an MQTT broker handle?

That depends on hardware, message rate, payload size and QoS level. A cluster scales horizontally by adding nodes. Test with a realistic load profile from your own plant before going live.

What is Sparkplug?

Sparkplug is a specification on top of MQTT that standardizes topic structure, payload format and device state for industrial applications. It has been an international standard as ISO/IEC 20237 since 2023. How Sparkplug B works in detail and when it fits better than a JSON-based Unified Namespace is explained on our Sparkplug B page.

Planning an MQTT broker for production?

Talk to our experts about your data architecture.