Sending all data to a distant cloud takes time and bandwidth. Edge computing moves processing closer to where data is made.
Internet of Things
The Internet of Things (IoT) is a network of physical devices, such as sensors, cameras, meters and machines, that are connected to the internet and exchange data. Examples are smart homes, wearables, smart farms, connected vehicles and industrial sensors. There may be billions of devices, each producing a stream of data. IoT devices use light protocols such as MQTT and CoAP.
Edge Computing
Edge computing processes data near its source, on the device itself, on a local gateway, or on a small server at the edge of the network, and not only in a distant data centre. Its benefits are low latency, since answers do not travel far, which is vital for self-driving cars and robots, less bandwidth use, since only results are sent on, work during poor or lost connection, and better privacy, since raw data may stay local. Fog computing puts layers of processing between the edge and the cloud. Content delivery networks are an early form of the edge. Telecom networks add multi-access edge computing (MEC) with 5G.
Definition: Edge computing. A computing model that processes data close to where it is produced, on devices or nearby servers, to reduce latency and bandwidth use instead of sending everything to a central cloud.
Cloud and Edge Together
The edge and the cloud work together in a three-tier design. The device tier has sensors and actuators, the edge tier does quick, local work such as filtering and decisions in milliseconds, and the cloud tier does heavy work, such as storing history, training machine learning models and showing dashboards across many sites. The cloud sends back updated models and settings to the edge. Platforms are AWS IoT Core and Greengrass, Azure IoT Hub and IoT Edge, and Google Cloud IoT services. Challenges are security of many small devices, managing updates at scale, limited power and memory, and different standards.
Table 4.3: Edge and cloud compared
| Feature | Edge | Cloud |
|---|---|---|
| Location | Near the data source | Central data centre |
| Latency | Very low | Higher |
| Compute power | Limited | Very large |
| Best for | Real-time decisions | Heavy analysis, storage, training |
Example 4.3: Bandwidth saved at the edge
Problem: A camera produces 8 Mbps of video. An edge device analyses it locally and sends only 20 KB of alert data per minute. Compare the data sent in a day.
Solution:
- Raw video per day = 8 Mbps × 86,400 s = 691,200 Mb = 86,400 MB (8 bits per byte), about 84 GB.
- Edge data per day = 20 KB × 1,440 minutes = 28,800 KB, about 28 MB.
Result: The edge sends about 28 MB instead of 84 GB, a saving of over 99.9 percent.
raw_mb = 8 * 86400 / 8
edge_mb = 20 * 1440 / 1000
print(raw_mb, edge_mb, round(raw_mb / edge_mb))
Output
86400.0 28.8 3000
Common mistakes
- Sending all raw IoT data to the cloud, which wastes bandwidth and adds delay.
- Putting heavy tasks on small devices with limited power.
- Ignoring the security of many scattered edge devices.
Key takeaways
- IoT is a network of connected devices that produce data.
- Edge computing processes data near its source for low latency and less bandwidth.
- The edge handles quick local decisions, and the cloud handles heavy analysis and training.
- Edge security and update management are hard at scale.
Practice questions
- What is edge computing?
- Give two benefits of edge computing.
- Name an IoT protocol.
Answers to the practice questions
- Processing data close to where it is produced, instead of sending everything to a central cloud.
- Low latency and reduced bandwidth use (also offline operation, better privacy).
- MQTT (also CoAP).
Sources
- Official BCA syllabus Cloud Computing, course code 25BCA405DS03, Unit IV
