IoT platform architecture

A C4 container diagram of an IoT platform: edge gateway, MQTT broker, device registry, stream processing, time series store, alerts and firmware.

By ArchynoIoTUpdated November 29, 2026Diagrams: 1Elements: 12Relationships: 10

Licensed under CC BY 4.0: reuse and change it, and credit Archyno

Created with Archyno

Use this template

It opens in the editor as an editable model. No account is needed to change and export it. A free account saves it. Keep the credit to the author.

Open and customize

When this architecture fits

Use it when devices send values all day and a person or a program must react. The edge gateway is optional. Keep it if the line can fail, if you have devices that cannot speak TLS, or if you pay for the traffic. Remove it if each device has its own connection.

How a reading travels

The path from the sensor to the alert is short on purpose. History takes another path, so a slow query never delays a warning.

  • The gateway buffers readings and sends them when the line is back.
  • The broker checks the device against the registry before it accepts anything.
  • The stream processor drops duplicates, adds the site and the unit, and splits the flow.
  • Alerts read the stream. Dashboards read the time series store.

Change these parts first

Numbers decide most of this design, so write them on the diagram.

  • Devices, readings per minute and the size of one reading.
  • How old a reading may be before it is useless.
  • How long raw data is kept, and when averages are enough.

Common mistakes

One password for all devices cannot be taken back from one of them. Give each device its own certificate. Clocks on devices are wrong, so store both the time of the device and the time of arrival. And an update sent to all devices at once can break all devices at once: use small groups and a way back.

What is in this model

Alert serviceContainer
Compares readings with rules and warns people.
Device registryContainer
Identity, certificate, model and firmware of each device.
Edge gatewayContainer
Buffers data when the line is down, filters noise.
Firmware serviceContainer
Sends signed updates in small groups.
Live dashboardContainer
Live values, history and device health.
Message brokerContainer
Keeps one secure connection per device.
OperatorPerson
Watches the site and answers alerts.
Sensor deviceExternal system
Measures and sends values. Takes commands.
Stream processorContainer
Checks, enriches and groups readings.
Time series storeDatabase
Readings, kept raw for 90 days and then as averages.
IoT cloudBoundary
No description.
SiteBoundary
No description.