Opening the book…
The general principle is to run a task as close to the data source as necessary to meet its latency and reliability needs, and use the cloud for tasks that benefit from centralized resources or a big-picture view. A classic example to illustrate this is the autonomous car scenario:
- In an autonomous vehicle, time-critical processing (like detecting obstacles with the car’s cameras, determining if a pedestrian is stepping into the road, or triggering emergency braking) must happen on the vehicle’s onboard computer (the edge). These operations involve sensor data that changes millisecond by millisecond and require immediate reaction – any dependency on remote cloud servers would introduce network lag and the risk of disconnection, which is unacceptable for safety. Indeed, tasks such as image recognition (identifying objects around the car), threat detection (reacting to sudden braking of the car ahead), and control loops (maintaining lane position) are all executed on the edge computer in the car. The rule of thumb is: if a computation result would be invalid by the time the cloud reply arrives, that computation should be local. In autonomous driving, a 100ms network delay could mean several additional feet of travel – so braking decisions are local.
- On the other hand, global or computation-heavy tasks that are not instantaneous can be done in the cloud. In the car example, path planning or navigation (figuring out the best route from point A to B given traffic data) is something that can leverage cloud because it uses large data (maps, real-time traffic from many sources) and isn’t ultra-time-sensitive on the sub-second level. If it takes a second to compute a new route in the cloud, that’s usually fine. Similarly, any machine learning model training or large-scale data correlation (like learning from data of thousands of cars to improve driving algorithms) happens in the cloud where the aggregate data and compute power reside.
This distribution exemplifies a broader concept: split the application logic into an edge part and a cloud part based on latency and scope. The edge handles the “fast loop” – real-time, local scope decisions; the cloud handles the “slow loop” – more in-depth analysis, long-term or wide-scope decisions. In IoT systems, one often uses this kind of layered processing: immediate filtering and responses at edge, deeper analytics and learning in cloud.
Another use case: smart manufacturing. A factory might have sensors on equipment to detect vibrations indicating a potential failure. An edge controller can monitor vibration in real time and if it crosses a threshold, it can shut off a machine instantly to prevent damage. Meanwhile, all the vibration data is also sent to the cloud where a predictive maintenance algorithm (perhaps a machine learning model) crunches historical data from many machines to predict failures in advance. The cloud might then send back an optimized maintenance schedule or an alert that a certain part is likely to fail next week, which isn’t as time-critical as the immediate shutdown command.
This page titled 13.4.1: When to Compute at the Edge vs. in the Cloud was last modified on Sat, 12 Sep 2026 08:40:44 GMT and is shared under a CC BY 4.0 license and was authored, remixed, and/or curated by Felix Amoruwa.
The book could not be loaded just now.