techdiagrams.net
← All templates

IoT fleet telemetry & control

Thousands of intermittently-connected devices: an edge gateway translates protocols, MQTT absorbs bursts with backpressure, and device twins make commands survive offline gaps.

Open in editor — free, no login Download JSON
FACTORY SITE — SURVIVES WAN LOSSCLOUD — ASSUMES DEVICES ARE OFFLINEModbus / BLEMQTT · QoS 1telemetry topicsadmittedappendreported statemerge reportset desireddesired state writedelta on reconnectSensor Fleet10k devices · sleepyEdge GatewayModbus/BLE → MQTTMQTT BrokerQoS 1 · persistent sessionsIngestion Funnelvalidate · dedup · budgetTelemetry Streamkeyed by deviceTelemetry Storedownsampled tiersTwin Servicedesired ⇄ reportedTwin Storeper-device JSON docsControl APIfleet ops · rolloutsOperatorsets firmware v2 targetcommands are not RPCs here: the operator writesDESIRED state, the device reports ACTUAL state,and reconciliation happens whenever the devicewakes up — minutes or days later.

What this design does

IoT's defining constraint is that the device is usually unreachable: it sleeps, roams, and drops offline mid-command. The device twin pattern solves control by splitting state into desired (what the cloud wants) and reported (what the device last said) — commands write desired state, and the device reconciles whenever it reconnects. Telemetry flows the other way through an edge gateway and an MQTT broker that applies backpressure instead of falling over when ten thousand sensors reconnect at once.

The patterns it composes

Import it, attach your own numbers, and verify the design against failures — or read the engineering notes.