What Is an IoT System? Architecture and Use Cases
See the whole Internet of Things stack before you build it: devices, gateways, connectivity, a cloud platform and applications; where computing belongs (device, edge or cloud); data volume and battery maths; common use cases and their constraints; and the questions to ask before choosing any technology.
1. The stack from sensor to decision
An Internet of Things (IoT) system connects physical things to software so that you can measure, understand and act. A useful way to see it is as layers:
| Layer | Job | Examples |
|---|---|---|
| Device | Sense or act on the physical world | Temperature sensor board, relay, flow meter, GPS tracker |
| Connectivity | Move data reliably and cheaply | Wi-Fi, Ethernet, Bluetooth Low Energy, LoRaWAN, cellular |
| Edge or gateway | Translate, filter, buffer, act locally | A Raspberry Pi gateway, an industrial gateway |
| Platform | Ingest, authenticate, route, store | An MQTT broker, a managed IoT service, a time-series database |
| Application | Show, alert, analyse, control | Dashboards, mobile apps, alert rules, reports |
| Operations | Keep it healthy and secure over years | Device management, over-the-air updates, monitoring |
The last layer is the one that is forgotten, and it is where most of the cost lives.
2. Where should the computing happen?
| Place | Strengths | Limits |
|---|---|---|
| Device | Instant, works offline, lowest latency | Little memory and power, hard to update |
| Edge or gateway | Local decisions, filtering, buffering, protocol translation | Another thing to secure and maintain |
| Cloud | Storage, analysis, many devices together, dashboards | Latency, cost, depends on the connection |
Rules of thumb: safety and fast control stay local; filtering and buffering at the edge reduce traffic and survive outages; long-term storage, comparison across many devices and dashboards belong in the cloud.
3. Data volume, cost and battery
Every design starts with arithmetic:
- Messages per day =
86,400 / interval in seconds. - Bytes per month = message size x messages per day x days.
- Platform load in messages per second = devices / interval in seconds, at the worst moment (devices often report together after a reboot).
- Battery life in days = capacity in mAh x 1000 / average current in microamps / 24.
A 100-byte message every 10 seconds is 8,640 messages and about 864 kB each day per device. Multiply by the number of devices and by the price of data to see whether the design is affordable before you build it.
4. Use cases and what they demand
| Use case | Typical demand |
|---|---|
| Smart agriculture (soil, weather) | Long battery life, wide area, small infrequent messages |
| Cold chain and asset tracking | Cellular or LoRaWAN, location, alerts when thresholds are crossed |
| Industrial monitoring | Reliability, local control, protocol translation, security |
| Smart buildings | Many device types, integration, privacy, long life |
| Metering and utilities | Years of battery, security, scale |
| Wearables and consumer | Bluetooth, apps, privacy, updates |
Before choosing technology, ask: what decision will this data change, how fast must it happen, how long must the device live, who can touch it, and what happens when the network is gone?
5. A first look at the plumbing
The most common protocol between small devices and a platform is MQTT (covered in depth later). You can already see the idea on a Pi or any Linux machine with Mosquitto installed:
Lab: look at a local MQTT broker
Check that the broker port is open, watch a topic and publish a reading to it.
Objectives
- List the interfaces and their addresses.
- Check that the broker service is running.
- Test that the MQTT port accepts connections.
- Wait for one message under factory and print its topic.
- Publish one reading to the line 1 temperature topic.
(The outputs above are examples of the format. Real output varies by software version and setup.)
6. On your bench
- Draw the layers for a system you know (a smart thermostat, a parking sensor, a cold-room monitor) and label where each piece runs.
- Pick one use case and write the single decision its data supports and how fast that decision must happen.
- Calculate the daily and monthly data for one device and for 500 devices at two different intervals.
- Estimate battery life for a given average current and compare it to the life the product needs.
- Install Mosquitto on a Pi or Linux machine and publish and read one message, as in the lab.
7. Hands-on lab: IoT sizing and layers
8. Common mistakes
| Mistake | Better |
|---|---|
| Starting with the cloud service | Start with the decision the data must support, then choose the parts |
| Reporting as often as possible | Choose the slowest interval that still supports the decision |
| Safety logic in the cloud | Keep fast and safety-critical control local |
| Ignoring operations | Plan updates, monitoring and device management from day one |
| Forgetting what happens offline | Decide whether to buffer, drop or act locally |
| Calculating with the average only | Check the worst moment, such as all devices reconnecting together |
| Assuming the sensor is the project | Treat connectivity, security and operations as equal parts |
9. Key takeaways
- An IoT system is device, connectivity, edge, platform, application and operations; operations is where most of the cost lives.
- Put fast and safety-critical logic local, filtering and buffering at the edge, and storage and analysis in the cloud.
- Interval, message size and device count decide data volume, cost, battery life and platform load.
- Begin with the decision the data supports, then pick technology.
- Ask what happens when the network, the power or a device fails.
A product sends a 200-byte reading every minute from 2,000 devices. Roughly how many messages per second does the platform average, and why might the peak be higher?
2,000 devices each send once per 60 seconds, so about 34 messages per second on average (2000 divided by 60, rounded up). The peak can be much higher when many devices reconnect or restart at the same moment after an outage, so the platform and the devices’ retry timing must allow for bursts.
Can You Explain It?
Close the lesson and answer these without looking back. The goal isn't the wording — it's whether you've formed a usable mental model.
- Explain the layers of an IoT system and what each one does.
- Describe how you would decide whether a piece of logic runs on the device, at the edge or in the cloud.
- Say how you would estimate cost and battery life before building anything.
🧪 Want to practise this on your own computer? See how to set up your lab →