IoT Gateway Architecture
An IoT gateway is a network node that sits between field-level devices and a cloud platform, providing protocol translation, local data processing, device management, and secure uplink — enabling heterogeneous devices that speak different protocols to integrate with a unified cloud backend.
An IoT gateway is a network node that sits between field-level devices and a cloud platform, providing protocol translation, local data processing, device management, and secure uplink — enabling heterogeneous devices that speak different protocols to integrate with a unified cloud backend.
Field devices span a wide range of communication protocols. Legacy industrial equipment speaks Modbus RTU over RS-485 or OPC-UA over Ethernet. Newer consumer-grade sensors use MQTT over Wi-Fi. Battery-powered edge nodes may use LoRaWAN or NB-IoT for wide-area low-power communication. The gateway must present a consistent interface to the cloud regardless of this diversity.
The gateway's protocol adapter layer runs one connector per southbound protocol. Each adapter subscribes to or polls the devices in its domain, normalises the data into a canonical internal format (often a JSON object with standard fields: device ID, timestamp, metric name, value, unit), and publishes to the gateway's internal message bus. This bus decouples adapters from upstream processing logic.
A local processing engine consumes messages from the bus and applies configured transformations: unit conversion, tag enrichment (adding site ID, equipment type, asset number), dead-band filtering (suppressing updates where the value hasn't changed significantly), and time-series downsampling. Processed messages are placed onto an outbound queue with at-least-once delivery semantics backed by local persistent storage.
The cloud uplink component dequeues messages and forwards them over a TLS-encrypted connection to the cloud IoT platform — AWS IoT Greengrass, Azure IoT Edge, or a custom MQTT bridge. The gateway maintains a local device shadow (a JSON document of last-known device state) that can be served to local dashboards even when the WAN connection is interrupted. For what happens downstream of the gateway at the cloud ingestion layer, see IoT Telemetry Pipeline. For edge computation running on the gateway itself, see IoT Edge Processing. For the full device-to-cloud journey, see IoT Device Data Flow.