Comparison
Cloud IIoT to Ignition data integration options compared
Short answer
To push cloud machine data into a customer's Ignition install, choose a subscription route: publish MQTT with the Sparkplug payload to a broker the customer designates, and let them subscribe through the MQTT module they add. An OPC UA server interface is the stricter alternative. A JSON/XML web API only works with customer scripts that poll.
On this page
- The four routes and who initiates each connection
- MQTT with Sparkplug to a customer-designated broker
- OPC UA server interface: the stricter route
- JSON or XML web API: the polling route
- Custom Ignition module: the last resort
- Define stale-value and disconnect behavior before delivery
- The decision, route by route
- Questions asked
Machine data already reaches your central cloud platform; what is missing is the path from that cloud into each customer's Ignition installation. Quote a subscription route, not a polled one. Publish MQTT carrying the Sparkplug payload to a broker the customer designates, and their team subscribes through the MQTT module they add to Ignition — that is the route to lead with. An OPC UA server interface on the cloud is the stricter alternative: no extra module, but more connection security to agree on. A JSON or XML web API delivers only if the customer writes scripts that poll, which caps freshness and multiplies request volume. This article compares the four routes on who opens each connection, what the customer must install, and the disconnect behavior you have to define before the first value is delivered.
The four routes and who initiates each connection #
The question that decides the architecture is who opens the connection. A web API is pulled: an Ignition script asks your cloud for data on a timer. MQTT is brokered: your cloud publisher and the customer's Ignition module each connect outbound to one broker, and neither endpoint ever connects to the other. OPC UA is client-server: the customer's Ignition gateway acts as an OPC UA client and connects outbound to a server interface you expose. A custom module does whatever its own protocol implements.
| Route | Who opens the connection | What the customer adds | Delivery model |
|---|---|---|---|
| JSON/XML web API | An Ignition script polls your cloud API | Gateway scripting and API credentials | Snapshot on request |
| MQTT with Sparkplug | Your publisher and the Ignition MQTT module each connect to the broker | The MQTT module, added to their gateway | Report by exception |
| OPC UA server interface | The Ignition OPC UA client connects to your cloud server | Connection settings and certificate trust | Subscription, on change |
| Custom Ignition module | Whatever the module implements | Your module, installed in their gateway | Whatever you implement |
Test reachability from the host that will actually hold the connection. A successful call from an engineering laptop proves nothing about the Ignition gateway host's outbound path, its name resolution or a proxy in between, and the same holds for your cloud publisher reaching a customer-hosted broker. If the cloud cannot reach a broker inside the customer's network, either open that route deliberately or move the broker to a location both sides reach — Ignition connecting outbound to a broker does not, by itself, make that broker reachable to your publisher.
MQTT with Sparkplug to a customer-designated broker #
This route matches the push architecture: your cloud export publishes selected machine data to a broker the customer names, and Ignition subscribes. The customer adds the appropriate Cirrus Link MQTT module to their gateway; it is a separate add-on, not part of the base installation, and their team installs, licenses and versions it alongside the gateway itself.
Check that the export actually speaks Sparkplug and not just MQTT. MQTT moves bytes between endpoints; Sparkplug specifies what they mean: a standardized topic namespace, a Protobuf payload encoding, and birth and death certificate messages — nine message types in all — so a subscriber can interpret metrics and know when a publisher is gone. Plain JSON over MQTT is not Sparkplug, and without the specification every consumer needs your private format documented forever.
Two properties make the route behave well on a plant floor. Birth state is sent once and data flows only on change, which is why an idle line costs almost nothing: that is the publish behavior described in why Sparkplug B sends DBIRTH once and DDATA only on change. And the payload is binary protobuf, so anyone watching the broker sees bytes rather than JSON, which is exactly why Ignition MQTT payloads can look like unreadable bytes when inspected mid-stream. Metric and device definitions are declared by the publishing client inside its birth messages, so tag naming corrections belong in that client; the walkthrough on fixing Sparkplug B device tags in the client rather than the broker explains how those definitions travel.
The broker is the one hop both sides must reach, so its location is a joint decision: inside the customer's network, where your cloud needs a deliberate route to it; hosted in your cloud, where the customer's gateway connects outbound; or in a DMZ both sides reach. Secure the listener with TLS and put the certificate work on each client host, as the guide to configuring an SSL broker connection for an MQTT client describes. Set broker permissions so your publisher may publish only its own topic namespace and the customer's module may subscribe only to what it is entitled to read. If the mapping from your cloud export to Sparkplug runs on an edge host inside the customer's plant, host that publisher on a fanless mini PC rated for continuous duty rather than a repurposed desktop.
When values reach the broker but never land in the customer's tags, the fault sits in the broker-to-module path, and the trace of cloud MQTT broker data that never reaches SCADA tags walks through that diagnosis step by step.
OPC UA server interface: the stricter route #
Expose the cloud data as an OPC UA server and let the customer's Ignition gateway connect as a client. OPC UA is standardized as IEC 62541: a compliant server presents an address space of nodes over a secured channel, and the two endpoints exchange and trust X.509 application instance certificates. On the Ignition side, the customer creates the connection in the gateway configuration under OPC Connections > Servers, adding a new OPC server connection of the OPC UA type, as the product's connection settings documentation lays out. No module is involved; this client is part of the gateway.
The plant never accepts an inbound connection: Ignition dials out to your endpoint address and port, so the customer's security team approves one outbound path and trusts your server certificate, while you must trust each customer's client certificate before that session carries data. Each customer configures the connection security on their side, which is precisely what makes this route the stricter one to operate.
Subscriptions report by exception through monitored items, a sampling interval, a publishing interval and a deadband, but a subscription does not force the server to refresh itself. A cloud server that samples its source only when a client reads delivers stale values between reads — the failure mode behind an OPC UA server that updates values only when a client reads, which is worth studying before you design the sampling side. Commit to the design rule: the server samples the platform data on a timer and reports on change against a deadband you state in the delivery documents, so freshness never depends on how often the customer happens to read.
JSON or XML web API: the polling route #
Without a broker or an OPC UA server, the customer's gateway scripts call your API on a timer, parse the response and write tag values. The route works, but the arithmetic decides whether it works well enough, so run it before you quote it.
Worked example with illustrative inputs: one machine exposes 200 values through the API, the customer permits up to 5 s of display delay, and each response is a full snapshot of all 200 values.
- Poll period 5 s: a day holds 86,400 s, so the script issues 86,400 / 5 = 17,280 requests per day for that machine.
- 17,280 requests multiplied by 200 values gives 3,456,000 values shipped per day, and on a day when nothing changes, every one of them is repeat traffic.
- Freshness: a change that lands just after a request waits nearly the full 5 s to appear, and averaged over random change times the wait is 2.5 s. Both sit inside the 5 s allowance with no headroom for transfer time.
- If the customer tightens the allowance to 2 s, the poll period must drop to 2 s: 86,400 / 2 = 43,200 requests per day, two and a half times the volume, and your API's documented rate limits decide whether that is permitted at all.
The same 200 values delivered as Sparkplug cost one birth message and then only the changes; on a steady line the subscriber sees near-zero payload traffic while the session stays alive on small state messages.
Read the API contract before quoting this route: whether a response carries a full snapshot, only changed values or a history range, what the rate limits are, and how authentication behaves under thousands of repeated calls. The decision: the web API passes only when the permitted display delay is at least one full poll period plus transfer margin and the computed request volume fits the documented limits; for anything tighter, move to a subscription route.
Custom Ignition module: the last resort #
A module built against the Ignition SDK can implement your cloud's own access protocol inside the customer's gateway, the way the MQTT module vendor implemented Sparkplug for Ignition. It gives the customer the smoothest experience and you the heaviest burden: development, security review on both sides, and maintenance across gateway versions. Build one only when the cloud's access protocol cannot be expressed as Sparkplug, OPC UA or HTTPS; for machine monitoring data that is almost never the case.
Define stale-value and disconnect behavior before delivery #
A subscription is a delivery mechanism, not an update policy, and a successful connection test proves reachability, not semantics. Write the offline behavior into the delivery documents before the first value moves.
With Sparkplug, the death certificate does the work. The publisher's MQTT session registers its death certificate as the Last Will, so when the publisher dies without disconnecting cleanly the broker publishes it and the Ignition module can flag that node's metrics instead of leaving the last values looking live. A subscriber that joins after the publisher has started receives birth state first, so late joiners see complete initial values.
With the web API, nothing tells Ignition that the link died; a failed poll is only a script exception. Require the customer's script to timestamp every successful poll and treat a missed poll as a gap rather than a reason to keep displaying stale values indefinitely.
With OPC UA, a lost session sets the monitored items' quality to bad until the channel recovers, and the tag display follows that quality.
One acceptance test covers all three routes: stop the publisher mid-shift and confirm that an operator can tell dead values from live ones within the agreed delay, and that the customer's historian does not record the outage as a continuous run of measurements.
The decision, route by route #
- Quote MQTT with Sparkplug to a customer-designated broker first. It matches the push architecture, costs almost nothing on an idle line, and its birth and death certificates give customers honest offline behavior. The conditions are that your cloud export speaks Sparkplug or you build that mapping, and that the customer accepts adding the MQTT module.
- Offer the OPC UA server interface when the customer standardizes on OPC UA or refuses extra modules. It needs no add-on in Ignition; the price is connection security agreed with both security teams: one outbound path, certificates trusted in both directions, and server-side sampling you design for change reporting.
- Fall back to the JSON or XML web API when the customer accepts polled snapshots and multi-second delay is tolerable; the request volume in the worked example above is the standing cost.
- Build a custom module only when no other route can express the protocol.
For the protocol-level trade-offs between the two subscription routes, the comparison of OPC UA versus MQTT Sparkplug from a controller to SCADA examines the same choice from the source side.
Questions asked
Does the customer's Ignition team need to write any code for the MQTT route?
No application code. Their work is configuration: install and license the MQTT module, point it at the broker with address and credentials, and let the arriving birth messages define the tag structure, since the module builds its tags from the Sparkplug definitions. Compare that with the web API route, where scripts that request, parse and write values are the delivery mechanism itself.
Does the broker have to be part of Ignition?
No. The broker is an independent message service: your publisher connects to it, the customer's MQTT module connects to it, and it only routes what it receives. It can run on a small server inside the customer's network, in your cloud, or in a DMZ both sides reach. Nothing in the Ignition gateway itself acts as the broker for this route.
Can we send plain JSON over MQTT and skip Sparkplug?
The transport accepts it, but then each customer's team parses your private format in gateway scripts and maps fields to tags themselves, and every format change becomes a coordinated release across every customer. Sparkplug birth messages carry metric names, data types and initial values, so the same payload serves every subscriber without a per-customer decoder.
How quickly does a machine change reach the customer's Ignition tags?
Add two legs. The machine-to-cloud acquisition delay is whatever your platform delivers today, and the integration only replaces the cloud-to-Ignition leg. On the MQTT and OPC UA routes that second leg fires on the change itself; on the polling route it adds up to one full poll period of extra delay. If values already arrive late in your cloud, no customer-side integration choice will fix that.