Skip to content
IoT Crest

IoT data collection architecture: poll or push

By Hamza Rivera, published , 3 min read

Short answer: The first question in IoT data collection is who starts each transfer. With polling, the client asks on a schedule, and polled requests can return nothing new. With push, the broker or device sends when an event happens. Omegamatrix argues that a device awake for a tiny fraction of the time does not need a persistent connection, and that for a device sending two readings a day over NB-IoT, a persistent connection is worse than polling.

How IoT data collection architecture chooses between polling and push, what each costs in traffic, latency and battery, and when a scheduled wake-up is enough.

This article covers how polling, push and scheduled reporting differ in traffic, latency and battery use, and how MQTT's persistent connection fits into that choice It does not cover the layers of a full IoT stack, a choice of cloud provider, the cost of a platform, or a step-by-step build

A useful first question is who starts each transfer. The device or collector can send when something happens, or the system can ask for data on a schedule. The two differ in how much traffic they generate and how old the data is when someone reads it. This guide covers those differences. For the full stack of layers, see the IoT architecture guide.

Polling: the client asks

With polling, the client asks for current data at an interval. i-flow says HTTP has no server push, so anyone who needs current data has to poll. The weakness is that requests can return nothing new. i-flow says that with polling, the client keeps asking even when nothing has changed.

Latency follows the interval. Omegamatrix says polling can force a fleet-wide interval, and that command latency is bounded by the poll interval. A 30-second interval means a command can wait up to 30 seconds before the device sees it.

Push: the broker or device sends

With push, the broker can send data to consumers as soon as an event occurs, according to i-flow. This guide reads traffic as following the event rate. No source read here measures it.

i-flow describes MQTT as a protocol that keeps a single persistent TCP connection open, with small keep-alive pings, and says the fixed header starts at 2 bytes. Its quality-of-service levels set delivery. QoS 0 delivers at most once. With QoS 1, the broker delivers at least once. The IoT data collector guide covers the gateway and Modbus side of collection.

Scheduled reporting: the device wakes

This guide calls this pattern scheduled reporting: the device wakes on a timer, sends a reading and goes back to sleep. Omegamatrix argues that a device awake for a tiny fraction of the time cannot hold a persistent connection, and does not need to. For a battery device on a cellular link, that pattern can be the simplest fit.

The choice depends on the device. i-flow notes that battery-powered sensors and usage-based cellular costs make overhead matter directly. Omegamatrix gives the opposite case for a device that sends two readings a day over NB-IoT, where a persistent connection is worse than polling.

How to choose

  • Staleness. If a reading can be a few minutes old, a schedule is enough. If a fault has to surface at once, use push.
  • Command path. If the system sends commands to a device, the device has to be listening. A sleeping device cannot receive a push, so a command waits for its next wake-up. Check the device’s wake pattern before you rely on commands.
  • Battery and link. On a battery device with a cellular or radio link, check how often the radio wakes, and whether a persistent connection is worth its keep-alive traffic.
  • Message volume. Count the messages per device per day for each option, then multiply by the fleet size. Polling multiplies the waste.

What the sources do not cover

The sources read here do not give measured figures for batch upload, and they do not compare batching with push or polling. One would expect a batch design to trade latency for fewer transmissions, but no source read here tests that for a named device. Test it on the device before committing to a design.

Common questions

What is the difference between polling and push in IoT?

With polling, the client asks for current data on an interval. With push, the broker sends data as soon as an event occurs. i-flow says HTTP has no server push, so anyone who needs current data has to poll.

Why is polling wasteful?

Because the client keeps asking even when nothing has changed. Omegamatrix puts it at 8,640 messages per device per day to learn almost nothing.

Does MQTT suit battery devices?

i-flow says MQTT keeps one persistent TCP connection open with small keep-alive pings. Omegamatrix argues that a device awake for a tiny fraction of the time cannot hold a persistent connection, and does not need to.

When is polling still the right choice?

When a delay is acceptable. Omegamatrix says that if nobody cares whether a fault surfaces now or in ten minutes, polling is fine. Its own example is a device that sends two readings a day over NB-IoT, where a persistent connection is worse than polling.

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.