Edge processing means the device itself, or a small computer on site, makes sense of the readings and acts on them locally. Cloud processing means the readings travel over the internet to a server that stores them, analyses them and sends alerts. Neither is better in general. Most well-designed systems use both: quick, essential decisions happen at the edge, close to the equipment, while history, dashboards, comparisons between sites and heavier analysis happen in the cloud.
An everyday picture
Think of a shop with a cashier and a head office. The cashier decides on the spot: take the payment, give change, refuse a torn note. Waiting for head office to approve every sale would be slow, and impossible when the phone line is down. Head office, on the other hand, looks at the whole month across every branch and spots patterns no single cashier could see.
In IoT, the edge is the cashier and the cloud is head office. Problems start when one is asked to do the other's job.
Side by side
| Edge (on the device or on site) | Cloud (on an internet server) | |
|---|---|---|
| Speed of reaction | Immediate | Depends on the connection |
| Works without internet | Yes | No |
| Storage | Limited | Practically as much as you need |
| View across many sites | Hard | Natural |
| Heavy analysis, including AI | Limited by the hardware | Easier |
| Changing the logic | Needs a firmware update | Change it once on the server |
| Ongoing cost | Mostly the hardware | Server or service fees and data |
What usually belongs at the edge
- Anything that must happen even when the internet is down. Switching a water pump off when the tank is full, or running a poultry shed's fans on schedule, should not wait for a server.
- Fast reactions. A machine that must stop when a sensor trips cannot wait for a round trip over mobile data.
- Holding data during outages. The device stores readings while the connection is down and sends them when it returns.
- Reducing data. Instead of sending a reading every second, the device can send a one-minute average and report sudden changes at once. This matters when every device runs on a mobile data plan.
- First-pass analysis of heavy data. A camera can check images on site and send only the result, not the video.
Safety functions themselves, such as cut-outs, interlocks and protective devices, belong in proper equipment installed by qualified people. Edge logic can add to them; it should never be the only protection.
What usually belongs in the cloud
- Long-term history and backups.
- Dashboards you can open from anywhere on your phone.
- Alerts that go to several people, with escalation if nobody responds.
- Comparing branches, ponds, sheds or machines.
- Heavier analysis, such as spotting slow trends or applying AI to find unusual patterns, with a person reviewing what it suggests.
The pattern most projects use
- Sensors are read by a small board on site.
- The board applies simple local rules and keeps essential control running.
- It summarises readings and sends them to the cloud when it can, keeping a backlog when it cannot.
- The cloud stores everything, shows dashboards and sends alerts.
- Settings such as alert limits are changed in the cloud and pushed down to devices.
In Bangladesh this split matters more than usual. Power cuts and patchy internet in district towns mean anything important must keep working locally. A water tank and pump controller or a poultry shed climate system should keep doing its basic job with the router off.
Common questions
Is cloud processing less secure? Not necessarily. A well-run server with encryption and proper access control can be safer than a poorly set-up device. The risk lies in careless set-up, wherever it is.
Does edge processing need expensive hardware? Usually not. Simple rules run comfortably on small boards like the ESP32. Heavier local work, such as image analysis, may need something like a Raspberry Pi. See which board for which job.
Can I start cloud-only and add edge logic later? Partly. Plan from the start for local storage during outages and safe behaviour without a connection, because adding those afterwards can mean new hardware.
What is a gateway? A middle layer on site that collects data from several devices, often over LoRa or Bluetooth, and forwards it. It can also handle some edge logic. The article on IoT connectivity options explains these links.
How to decide for your project
For each function in your system, ask:
- What happens if this does not work for an hour without internet?
- How fast must it react?
- Does anyone need to see it from outside the site?
- Does it need data from other sites or a long history?
If the first two answers point to trouble, put it at the edge. If the last two say yes, it belongs in the cloud. Often the answer is both. If you would like help splitting the work sensibly for your sites, that is part of my IoT device development service.