Skip to content
IoT Crest

IoT data pipeline: stages and where they run

By Hamza Rivera, published , 3 min read

Short answer: One vendor guide lists the stages of an IoT data pipeline in order: device, transport, ingestion, durable buffer, validation, normalization, processing, storage, API and alerts, then dashboard. In one machine learning research paper, anomaly detection can run at the edge, in the fog or in the cloud.

The stages of an IoT data pipeline from device to dashboard: ingestion, buffering, validation, normalization, storage tiers, and where anomaly detection runs.

This article covers the stages of an IoT data pipeline in order, what ingestion and buffering do when a connection drops, why values are normalized, how storage is tiered, and where anomaly detection can run It does not cover a choice of cloud platform or database product, the cost of running a pipeline, or code for a specific stack

An IoT data pipeline is the path a reading takes from the device to the people or systems that use it. The vendor guide below lists the stages in order. This guide sets out those stages, what the buffer does, and where anomaly detection runs. For how the collection method is chosen, see the data collection architecture guide.

The stages in order

A vendor guide on IoT pipeline design gives a logical pipeline in this order: device, transport, ingestion, durable buffer, validation, normalization, processing, storage, API and alerts, then dashboard. The guide calls it a logical pipeline and does not say each stage must be a separate program.

The research paper AnoML-IoT names four phases: data ingestion, model training, model deployment, and inference with maintenance. Those phases are about machine learning, so they cover the path from data to a model.

Ingestion and the buffer

Ingestion is where device traffic enters the system. The vendor guide says ingestion accepts authenticated device traffic, and gives an MQTT broker, an HTTPS API and a managed IoT ingestion service as examples.

The guide puts a durable buffer after ingestion. It says a durable queue or stream can isolate device ingestion from temporary downstream failures. Its reason is isolation: the buffer keeps ingestion running while downstream systems fail temporarily.

When the link drops, the vendor guide lists four options for a device: drop the data, buffer in flash, buffer through a gateway, or retry later. A design exercise for IoT ingestion describes an edge agent that buffers messages to local flash in a circular log, then replays them with their original timestamps when the connection returns.

The design exercise also deduplicates replayed messages with a Bloom filter. That is one design, and the sources read here do not establish it as a standard.

Validation and normalization

The vendor guide lists validation as a stage between the buffer and normalization. It does not define the checks in the sources read here.

Normalization comes next. The guide’s example is one hardware generation that sends Celsius and another that sends Fahrenheit. Both should be converted to one canonical backend representation.

The AnoML-IoT paper also builds its models using several normalization methods.

Storage tiers

The vendor guide says different data may belong in different systems. Its tiers are telemetry in time-series storage, device metadata in a relational database, and the raw archive in object storage. Its aggregate example keeps raw points for the last hour, one-minute aggregates for the last 7 days, and one-hour aggregates for the last year. Those windows are the guide’s example only.

Where anomaly detection can run

The AnoML-IoT paper describes anomaly detection running at the edge, in the fog or in the cloud. Its clearest statement is about where it runs. If detection runs in the cloud, the edge and fog devices only forward data. If it runs in the fog, the edge sends raw data to the fog, and the fog may send processed data to the cloud.

The paper also says edge and fog devices have limited computing power, so it prefers to use the cloud.

Checklist before you build one

This list is design advice. None of it comes from the sources.

  • Buffer first. Decide what the device keeps during an outage, and for how long, before choosing the rest.
  • Canonical units. Write the units and scaling for each value before the first message is stored.
  • Timestamps. Keep the reading’s own time for replays, and check which clock stamps it.
  • Storage split. Decide which data goes to time-series storage, which to a database, and which to an archive.
  • Placement. Decide where detection and aggregation run, since the answer changes what the devices need.

Common questions

What are the stages of an IoT data pipeline?

A vendor guide lists them in order: device, transport, ingestion, durable buffer, validation, normalization, processing, storage, API and alerts, then dashboard.

What happens to readings when the connection drops?

A durable queue or stream can isolate device ingestion from temporary downstream failures, according to the same guide. A design exercise describes an edge agent that buffers messages to local flash and replays them with their original timestamps on reconnect.

Why normalize IoT data?

The guide's example is one hardware generation that sends Celsius and another that sends Fahrenheit, which should be converted to one canonical backend representation.

Where does anomaly detection run?

The AnoML-IoT research paper describes it running at the edge, in the fog or in the cloud. Where it runs decides what the other devices do: if it runs in the cloud, the edge and fog devices only forward data.

Written by Hamza Rivera. Facts in this article follow the editorial policy: each one is behavior that is well established or set by the standard named in the text. A confirmed error is fixed in the article and its Updated date changes.

More from Industrial IoT

All industrial IoT articles

Sponsor an article in this topic

Sponsored articles and in-article link placements for IoT vendors, agencies and SEO buyers. Every sponsored piece is labeled, edited to the same standard as the rest of the site, and placed in the hub its readers already visit. Rates on request.