Home / Insights / Architecture and Modernization

Architecture and Modernization

Industrial IoT Data Platforms: Edge Gateways, OPC UA, MQTT and Cloud Ingestion Explained

Manufacturers want machine data in dashboards, maintenance systems and analytics, but the path from a PLC to the cloud runs through several layers of protocols and products. This guide explains the architecture choices at each layer and how to make them in a sensible order.

TopicsArchitecture and ModernizationBusiness Operations and Integration

Key takeaways

  • An industrial IoT platform has four layers: machines and controllers, an edge gateway, a messaging and ingestion layer, and cloud storage and applications. Decide each layer separately but design them together.
  • OPC UA is the standard way to read structured data from modern industrial equipment; MQTT is the standard way to move that data efficiently to brokers and the cloud. Most platforms use both.
  • Edge gateways do more than translate protocols: they buffer data during outages, normalise tags, reduce volume and enforce the security boundary between the plant network and the internet.
  • Define your data model (asset hierarchy, tag naming, units, timestamps) before you connect the first machine, or you will spend the project cleaning data instead of using it.
  • Treat the platform as an OT security change, not just an IT project: segment networks, avoid inbound connections to the plant, and plan certificate and credential management from the start.

Factories already produce enormous amounts of data: PLCs, sensors, CNC machines and packaging lines generate values every second. But that data lives inside control systems built for real-time operation, not analysis, and reaches managers as end-of-shift reports, if at all. An industrial IoT (IIoT) data platform gets this data out safely, gives it meaning and makes it available to dashboards, maintenance tools and analytics.

This article is for operations directors, plant IT managers and technical leads at manufacturers who are planning such a platform, and for the software teams that will build the applications on top of it. It walks through the layers of a typical architecture, the protocols you will meet (OPC UA, MQTT, Sparkplug), the role of edge gateways, cloud ingestion options and the security considerations, and ends with a phased rollout plan and a checklist. It draws on our work building manufacturing software such as production tracking, quality inspection and machine data dashboards, where machine connectivity over MQTT and OPC UA is assessed case by case because every plant is different.

What does an industrial IoT data platform consist of?

It helps to think of the platform as four layers. Each has its own technology choices, vendors and failure modes, and the boundaries between them are where most integration effort goes.

LayerWhat lives hereTypical protocols and toolsMain design questions
1. Machines and controllersPLCs, CNC controllers, sensors, SCADA and HMI systems, legacy equipmentOPC UA, Modbus, PROFINET, EtherNet/IP, vendor-specific protocols, serial linksWhich machines expose data? Over which protocol? Is it safe to read from them?
2. Edge gatewayIndustrial PCs or gateway appliances on the plant networkOPC UA clients, protocol converters, MQTT clients, local buffering, edge runtimesHow much processing happens locally? How is data buffered during outages? Who manages the device?
3. Messaging and ingestionMQTT brokers, cloud IoT services, streaming pipelinesMQTT (often with Sparkplug), cloud IoT hubs, rules engines, stream processorsTopic design, quality of service, message size, authentication, throughput
4. Storage and applicationsTime-series databases, data lakes, asset models, dashboards, MES and maintenance integrationsTime-series stores, object storage, analytics services, custom web and mobile appsHot versus cold data, retention, asset hierarchy, who consumes what

Where projects usually go wrong

Teams often start at layer 4 with a dashboard product and then find the machines cannot produce the data in the expected shape; others start at layer 1 and end up with thousands of raw tags nobody can interpret. Pick one line, define the business questions, then design all four layers for that line.

Action: inventory the equipment on one line: make, model, controller, communication interfaces, firmware age and whether the machine vendor allows third-party data access.

What is OPC UA and when should you use it?

OPC UA (Open Platform Communications Unified Architecture) is the industrial standard for exchanging structured data between equipment and software. According to the OPC Foundation, it is a platform-independent, service-oriented architecture first released in 2008 that runs on everything from PLCs and ARM-based microcontrollers to PCs and cloud servers.

Why it matters more than a plain protocol

  • Information modelling. OPC UA does not just move values; it describes them. A server exposes an address space of objects, variables, methods and events, so a client can browse what a machine offers and understand units, data types and relationships. The OPC Foundation lists more than 150 companion specifications that define domain-specific models, for example for machine tools or packaging equipment, so machines from different vendors can describe themselves in the same vocabulary.
  • Built-in security. The standard includes transport encryption, message signing, sequenced packets to prevent replay attacks, X.509 certificates for authenticating clients and servers, user authentication, access rights and audit logging.
  • Two communication patterns. Client-server uses request and response services with guaranteed delivery to a single client, which is what most gateways use to read machine data. The publish-subscribe (PubSub) extension lets a server publish to message-oriented middleware for many-to-many distribution.

Practical limits

Not every machine has an OPC UA server; older equipment may offer only Modbus, a serial interface or nothing, requiring a converter, retrofit sensor or PLC change. Vendors sometimes license OPC UA access separately. And a PLC-hosted server has finite capacity, so agree sampling rates with the automation team.

Action: for each machine in your inventory, record whether it has an OPC UA server, which companion specification (if any) it follows, and whether certificates and user accounts can be configured.

Why do IIoT platforms use MQTT, and what does Sparkplug add?

If OPC UA is how you read data from machines, MQTT is how you move it across the plant and to the cloud. The MQTT standard, maintained by OASIS, is a publish-subscribe messaging protocol designed for constrained devices and unreliable networks: clients are small, headers are minimal, and persistent sessions shorten reconnection after a dropped link. It defines three quality-of-service levels: at most once (0), at least once (1) and exactly once (2). Messages can be encrypted with TLS and clients can authenticate with modern methods such as OAuth.

OPC UA and MQTT are complementary

OPC UA (client-server)MQTT
Primary roleReading structured data and metadata from equipmentDistributing data to many consumers efficiently
Communication modelRequest/response, sessions between client and serverPublish/subscribe through a broker
Data semanticsRich: types, units, hierarchy, methods, eventsNone by default: payload is opaque bytes
Network directionClient connects to server on the machine networkDevices and gateways connect outwards to a broker
Typical place in the stackBetween machines and the edge gatewayBetween the edge gateway, plant broker and cloud

Because MQTT says nothing about payload format or topic naming, two gateways that both “speak MQTT” can still be incompatible. Sparkplug fills that gap.

Sparkplug

Sparkplug, maintained by the Eclipse Sparkplug Working Group, is a specification layered on MQTT for industrial use. It standardises the topic namespace and payload encoding, and adds state management through birth and death certificates so that subscribers know when a device or gateway has come online, what metrics it publishes and when it has gone offline. New machine data becomes discoverable to all subscribers as soon as it appears, and devices need no open inbound ports because all connections go outwards to the broker over TLS. The current specification version is 3.0.

Sparkplug suits plants that control their gateways and want plug-and-play discovery; many platforms use it inside the plant and translate to the cloud provider’s format at the edge.

Action: write a short topic and payload standard for your plant, whether Sparkplug or your own, covering site, area, line, machine and metric naming, units, timestamps (UTC with source time and gateway receive time) and quality flags. Every gateway and application must follow it.

What should the edge gateway do?

The edge gateway is the component that sits on the plant network, talks to machines and sends data outwards. It is also the point where most of the platform’s reliability and security is decided.

Core responsibilities

  1. Protocol access. Act as an OPC UA client (and Modbus master or other protocol client where needed) with sampling rates agreed with the automation team.
  2. Normalisation. Map raw tag names to the plant data model, attach units and asset context, convert data types and apply the topic standard.
  3. Store and forward. Buffer data locally when the upstream link is down and replay it in order when connectivity returns, so production records do not have gaps.
  4. Volume reduction. Publish on change, deadband small fluctuations, aggregate high-frequency signals to one-second or one-minute statistics where the use case allows, and keep raw data locally if it might be needed.
  5. Local logic. Compute derived values such as machine state and cycle counts close to the source, and run alerts that must work without the cloud.
  6. Security boundary. Terminate the machine-network side and initiate outbound-only TLS connections to the broker or cloud. Hold certificates and credentials securely.
  7. Manageability. Support remote configuration, updates and health monitoring; the gateway may sit in a cabinet nobody visits for months.

Buy, assemble or build?

OptionGood forTrade-offs
Commercial gateway appliance or IIoT platform edge softwareStandard protocols, fast rollout across many lines, vendor supportLicence cost per gateway or tag; limited custom logic; lock-in to the vendor’s data model
Cloud provider edge runtimePlants already standardised on one cloud; want managed updates and cloud integrationTied to that provider’s ingestion services; may need custom connectors for unusual equipment
Open-source stack on industrial PCFull control of data model, unusual protocols, cost-sensitive at scaleYour team owns updates, hardening and monitoring

Many manufacturers combine options: a commercial or cloud edge runtime for standard OPC UA sources plus a small custom component for the legacy machine nothing else can read. Our article on generative AI on the factory floor shows one application that depends on this data.

How should data be ingested and stored in the cloud?

Once data leaves the plant, you need to ingest it at the rate it arrives, store it for different uses and make it available to applications. Cloud providers offer managed services for each step; the design decisions are similar whichever provider you use.

Ingestion options

As an example, AWS documents several ingestion paths for industrial data: an edge gateway with OPC UA source support, MQTT messages routed through broker rules, an edge stream manager, and APIs for streaming or bulk import. Other providers offer equivalents; the choice depends on where your data model lives, how much history to backfill and whether you use the provider’s asset model or your own.

Check broker behaviour against your assumptions

Managed brokers do not always implement the full standard. AWS IoT Core, for instance, documents support for MQTT 3.1.1 and 5.0 with QoS 0 and 1 but not QoS 2, a 128 KB packet limit and a capped delivery rate for stored messages after reconnection. If your gateway assumed exactly-once delivery or large batched payloads, adapt it; read the limits page for whichever broker you choose first.

Hot, warm and cold paths

  • Hot path: live values for dashboards, alerts and andon displays. Needs seconds of latency, holds hours or days of data, usually in memory or a time-series store.
  • Warm path: recent history for shift reports, OEE trends and troubleshooting. Minutes of latency is fine; weeks to months of retention in a time-series database.
  • Cold path: raw and aggregated history in object storage for analytics, machine learning and compliance. Cheap, slow to query, retained for years.

Define which metrics flow to which path at what resolution; sending everything at full resolution to a hot store is the most common cause of surprising IIoT cloud bills.

The asset model

You need a hierarchy (site, area, line, cell, machine) with metrics attached at the right level and consistent units. It turns tag values into “line 3 downtime this shift”, should match how production staff describe the plant, and should be owned by operations.

How do you keep the plant secure while connecting it?

Connecting production equipment to a data platform changes the security posture of the plant. Operational technology has safety and availability requirements that IT systems do not, and NIST’s Guide to Operational Technology (OT) Security (SP 800-82 Revision 3, published September 2023) exists precisely because OT needs its own treatment of threats, vulnerabilities and countermeasures.

Principles that apply to IIoT platforms

  • Segment and control traffic. Gateways should sit in a defined zone between the machine network and the corporate or internet-facing network, with firewall rules that allow only the specific protocols and destinations required.
  • Outbound only. Gateways initiate connections to brokers and cloud endpoints. Nothing on the internet should be able to open a connection into the plant network.
  • Read, do not write, by default. The data platform should read from controllers. Any write-back (for example setting a parameter from a cloud application) is a separate, carefully controlled design with human approval and automation-team sign-off.
  • Identity for every device. Use per-gateway certificates or credentials, rotate them, and revoke them when a gateway is retired. Use OPC UA’s certificate-based authentication between gateway and machines where the equipment supports it.
  • Patch and monitor the edge. Gateways are computers in cabinets. They need an update process, logging and health alerts like any other server.

Action: run a short security review with plant engineering and IT before the first gateway is installed, covering network placement, firewall rules, credential handling and what happens if the gateway is compromised.

A phased rollout plan for an industrial IoT platform

The platforms that succeed start small, prove value on one line, and standardise before scaling. The phases below are illustrative; durations depend on equipment, network readiness and vendor cooperation.

Phase 1: Discovery (2 to 4 weeks)

  • Choose one line and two or three business questions (for example unplanned downtime causes, cycle-time variance, scrap by shift).
  • Complete the equipment inventory and network assessment.
  • Draft the data model, topic standard and security design.

Phase 2: Pilot (6 to 10 weeks)

  • Install one gateway, connect the line’s machines over OPC UA or converters, and publish to a broker using the agreed standard.
  • Ingest to the cloud, build the asset model and one or two dashboards that answer the chosen questions.
  • Run for several weeks of real production; check data quality, gaps and gateway stability.

Phase 3: Standardise (4 to 6 weeks)

Fix what the pilot exposed (naming, units, timestamps, buffering, alerting), document the gateway build and onboarding steps per machine type, and agree who maintains gateways, owns the asset model and responds to data outages.

Phase 4: Scale and integrate

  • Roll out line by line using the templates, tracking onboarding time per machine.
  • Integrate with maintenance, quality and planning systems; our guide to manufacturing execution systems covers how an MES fits alongside this data.
  • Add analytics and machine learning only once data quality is trusted.

Illustrative example: a 150-person component manufacturer with six lines might pilot on its most instrumented line, connecting four OPC UA-capable machines and one older press via a Modbus converter. After eight weeks it would know its real downtime reasons for that line and have a gateway template that cuts onboarding of the next line to days rather than weeks.

Checklist before you scale beyond the pilot

  1. Equipment inventory complete for the next lines, with protocol access confirmed with vendors.
  2. Data model and topic standard documented and followed by every gateway and application.
  3. Gateways buffer and replay data through tested network outages without gaps or duplicates.
  4. Sampling rates agreed with automation engineering and verified not to affect control performance.
  5. Broker and cloud limits (QoS, packet size, session behaviour) checked against gateway configuration.
  6. Hot, warm and cold data paths defined with retention and resolution per metric group.
  7. Network segmentation, outbound-only connectivity and per-device credentials in place and reviewed.
  8. Gateway update, monitoring and incident process owned by a named team.
  9. Asset hierarchy owned by operations and matching how staff describe the plant.
  10. Cloud cost per line measured in the pilot and projected for full rollout.

Frequently asked questions

Do we need OPC UA if our machines already support MQTT?

Not necessarily. Some newer equipment publishes directly over MQTT. OPC UA matters when you need standardised information models, certificate-based security and the ability to browse what a machine exposes. Many plants use OPC UA at the machine level and MQTT for distribution, but if your equipment publishes well-structured MQTT with a consistent payload standard, that can be enough.

Can we connect old machines with no network interface?

Usually yes, with retrofit sensors (current clamps, vibration or light sensors, counters), a protocol converter for serial or Modbus interfaces, or a small PLC that reads signals and exposes them over OPC UA or MQTT. Expect this to be custom work per machine type and plan it separately from the standard OPC UA onboarding.

How much data should we send to the cloud?

Less than you think at first. Publish on change with deadbands, aggregate high-frequency signals to statistics the use case needs, and keep raw data locally or in cheap cold storage. Define resolution and retention per metric group so costs stay predictable as you add lines.

Is an IIoT platform a security risk for our plant?

It introduces new connections and devices, so it must be designed with OT security in mind: segmented networks, outbound-only connectivity from gateways, per-device credentials, read-only access to controllers by default and a maintained update process for gateways. Done this way, it can also improve visibility of what is on the plant network.

Sources and methodology

Guidance reflects PoliteTech delivery experience. The external references below informed specific points in this article.

  1. OPC Foundation: Unified Architecture (OPC UA) — accessed 10 November 2026. Platform independence, information modelling, security features, client-server and publish-subscribe patterns, and more than 150 companion specifications.
  2. OASIS / mqtt.org: MQTT: The Standard for IoT Messaging — accessed 10 November 2026. Publish-subscribe design for constrained devices and unreliable networks, three QoS levels, persistent sessions, TLS and OAuth support.
  3. Eclipse Foundation: Sparkplug Working Group — accessed 10 November 2026. Sparkplug’s role on top of MQTT, birth and death certificates for state management, TLS without inbound ports, and the 3.0 specification.
  4. AWS IoT Core Developer Guide: MQTT — accessed 10 November 2026. Example of managed broker limits: MQTT 3.1.1 and 5.0 support, QoS 0 and 1 only, 128 KB packet limit and persistent-session delivery behaviour.
  5. AWS IoT SiteWise User Guide: Ingesting data to AWS IoT SiteWise — accessed 10 November 2026. Example of cloud ingestion paths: edge gateway with OPC UA sources, MQTT rules, stream manager and streaming or bulk APIs.
  6. NIST: Guide to Operational Technology (OT) Security, SP 800-82 Rev. 3 (September 2023) — accessed 10 November 2026. OT security scope: distinct performance, reliability and safety requirements, threats, vulnerabilities and recommended countermeasures.

Planning to get machine data from the plant floor into dashboards and maintenance systems?

We can assess your equipment and network, design the data model and gateway approach, and build the applications on top.