IoT fleets: what breaksafter the pilot

The pilot always works. Fifty devices on a bench, a dashboard that updates, budget approved. Then the fleet meets real networks and real power, and a different set of problems shows up. These are the ones we plan for before the pilot ends.

Published
Updated
Read
9 min
Topic
IOT
Ten thousand devices reporting in, and the five things that break on the way there
Ten thousand devices reporting in, and the five things that break on the way there

The pilot always works. Fifty devices on a bench, a dashboard that updates, a demo that gets the next round of budget approved. Then the fleet ships, the devices meet real networks and real power supplies, and a completely different set of problems shows up.

I've watched this happen to teams who were genuinely good. The pilot was never the hard part. What follows is the list of things we plan for before the pilot ends, roughly in the order they bite.

device 01device 02device 03device 04× 10,000 · cert per devicemTLSBrokerMQTT · revocationQueueKafka · absorbs burstsTime-series storeraw days · minute monthsDashboardswrong now · what changed · one deviceDownsamplerpipeline step, not cronOTA registrysigned · A/B · stagedupdates: 1% → 10% → 50% → 100%, halt on crash or offline rise
Figure The fleet, drawn properly. The pilot is the left-hand column and the dashboard. Everything in between is what has to exist before you order ten thousand units.

Device identity is a supply-chain problem

Every device needs a unique identity that cannot be cloned and that your platform can revoke. In the pilot it was a hard-coded API key in the firmware, and that was fine, for the pilot. In the fleet:

  • A per-device certificate, provisioned at manufacture or on first boot through a secure element. Never a shared secret in firmware.
  • Mutual TLS to the broker, so the platform knows which device it is talking to and the device knows it is talking to you.
  • A revocation path that works in minutes, because a stolen device on a public network is not hypothetical.

Retrofitting identity onto a fleet that has already shipped means a truck roll. Design it in.

Over-the-air updates are the product

A fleet you cannot update is a liability with a battery. We treat the update system as the first feature, not the last.

1% of fleetgate10% of fleetgate50% of fleetgate100% of fleeteach gate: crash reports flat · offline rate flat · rollback tested → proceed
Figure Staged rollout with halt gates. The first OTA to a real fleet is the most dangerous thing you will ever do with it; rehearse it on the bench while the pilot devices are still within reach.
  • A/B partitions so a failed update rolls back by itself. A device that bricks in a field you cannot reach is gone.
  • Staged rollouts: one percent, ten, fifty, a hundred, with an automatic halt on any rise in crash reports or offline rate.
  • Signed images, verified on the device before they are written, with a key you can rotate.
  • Delta updates where bandwidth is metered. A forty-megabyte image over a 2G modem is a week, if it finishes at all.

Telemetry has backpressure whether you planned it or not

Ten thousand devices each sending a reading every second is ten thousand messages a second on a good day. After an outage it's a thundering herd: every device reconnects at once and uploads its backlog, and whatever is behind the broker falls over.

Messages per second after an outageIllustrative
  • No jitter
  • Jittered reconnect
T-2T-1OUTAGET+1T+2T+3T+4T+5T+6T+7T+8
Messages per second after an outage
PeriodNo jitterJittered reconnect
t-210k/s10k/s
t-110k/s10k/s
outage0k/s0k/s
Row 40k/s0k/s
t+195k/s22k/s
t+260k/s28k/s
t+330k/s26k/s
t+415k/s20k/s
t+510k/s15k/s
t+610k/s12k/s
t+710k/s10k/s
t+810k/s10k/s
Figure A reconnect storm with and without jitter, illustrative. A random delay of a few minutes turns a spike into a slope the pipeline can absorb.
  • Buffer on the device with a bounded queue and a policy: drop oldest, downsample, or hold. Decide per metric, because they are not all equal.
  • Jitter the reconnect.
  • Put a queue (Kafka or equivalent) between the broker and anything that writes to a database. The database should never be the thing that says no to a device.
  • Design the payload for the worst link, not the office Wi-Fi: binary encoding, batching, compression.

Time-series storage is its own discipline

The pilot wrote readings into Postgres. By ten thousand devices that table is the largest thing in the company and every query is slow, including the one on the dashboard the CEO looks at.

  • A purpose-built time-series store (TimescaleDB, ClickHouse, InfluxDB) with retention policies: raw for days, minute aggregates for months, hourly forever.
  • Downsampling as a pipeline step, not a cron job someone remembers.
  • Queries always bounded by device and time. An unbounded query on fleet telemetry is an outage with a nicer name.

Offline is the normal state

Devices lose connectivity. Vans go through tunnels, factories have dead zones, SIM cards expire on a Sunday. The device must keep doing its job and tell the story when it returns.

  • Local decisions for anything safety- or revenue-critical. The cloud is advisory.
  • Timestamps from a clock the device trusts, with drift correction on reconnect, so the backlog lands in the right order.
  • A visible "last seen" per device on the dashboard, because "online" and "healthy" are not the same thing.

The dashboard nobody uses

Pilot dashboards show everything. Fleet operators need three views and will ignore the rest:

  1. What is wrong right now. Devices offline past their expected interval, error rates, failed updates.
  2. What changed. Rollout progress, firmware versions in the field, configuration drift.
  3. One device. Everything about it, for the support call.

Everything else is a report, not a screen.

Before the pilot ends

The short list we insist on seeing before anyone orders ten thousand units:

  • Per-device identity and revocation, tested by revoking one.
  • A signed OTA with rollback, tested by shipping a deliberately broken image.
  • A reconnect storm, simulated by cutting the broker for ten minutes.
  • A retention policy and a query that stays fast at projected volume.
  • An offline week, simulated by unplugging a device and reading its backlog.

Each of those is a day of work on the bench and a month of work in the field. The fleet that passes them is boring to operate, which is the only kind worth owning. If you're between the pilot and the order, this is the review we run.

IOTIoT fleet managementover-the-air updatesdevice identitymutual TLSMQTTtelemetry backpressuretime-series databaseoffline-firstedge computing

Start a project

Working onsomething similar?

Tell us what you are building. We reply within two working days with a point of view, not a sales deck.