Edexcel International Advanced Level Computer Science, point 12.4.2
Definition
Edge computing is a computing approach in which data is processed close to where it is created (at the "edge" of the network), instead of being sent to a distant central data centre or cloud.
Function and why needed
- Cloud computing (12.4.1) sends data a long way to be processed, which causes delay (latency), uses bandwidth, and depends on a connection.
- Edge computing processes data locally, so it is faster, uses less bandwidth and keeps working if the connection fails.
- It is essential for the huge amounts of data from IoT devices (12.2.1) and for applications that must respond in milliseconds (self-driving cars, factory robots, remote surgery).
a. Infrastructure
The hardware at or near the source of the data:
| Part | Role |
|---|---|
| Edge devices | Sensors, cameras, machines and smart devices that collect data, and may do some processing themselves (a smart camera that detects motion on the device) |
| Edge gateways | A device that collects data from many local devices, processes or filters it, and connects to the cloud |
| Edge servers / micro data centres | Small servers close to the users, for example in a factory, a shop, a mobile phone mast or a local exchange, with more power than a gateway |
| Local network | Fast links (Wi-Fi, 5G, wired) between devices and edge servers |
| Connection to the cloud | A link to the central cloud, used for storage, deep analysis, and updates, but not needed for every decision |
| Management and security tools | Remote updating, monitoring and protection of many scattered devices |
A content delivery network (CDN) is a familiar example: copies of popular websites and videos are stored on servers close to users, so they load faster.
b. Services
What edge computing provides:
- Real-time data processing: decisions in milliseconds, such as a car braking or a machine stopping when it detects a fault.
- Filtering and pre-processing: removing noise and duplicates, and sending only the important data or summaries to the cloud, which saves bandwidth and storage.
- Local analytics and AI: running trained models on the device or gateway (for example face detection on a camera).
- Caching and content delivery: storing frequently used content nearby.
- Local control and automation: systems keep running during an Internet outage.
- Data privacy: sensitive data (video, health data) can be processed locally, and never leave the site.
Edge and cloud compared
| Cloud computing | Edge computing | |
|---|---|---|
| Where processing happens | Centralised, in distant data centres | Near the source of the data |
| Latency | Higher | Very low |
| Bandwidth use | High (all data sent) | Lower (only summaries sent) |
| Works offline | No | Yes (for local functions) |
| Computing power and storage | Very large and scalable | Limited at each location |
| Management | Centralised, easy | Distributed, harder |
| Security | Data travels to and is stored in the cloud | Less data travels, but many devices can be attacked |
| Best for | Big storage, heavy analysis, long-term data | Time-critical decisions, large data volumes at source |
They work together: the edge handles quick local decisions and filtering, and the cloud handles storage, large-scale analysis and training of AI models that are then sent back to the edge.
Benefits
- Low latency, fast response.
- Reduced bandwidth and cost of sending data.
- Reliable: keeps working with a poor or lost connection.
- Better privacy: sensitive data stays local.
- Scales to huge numbers of devices.
- Lower load on central servers.
Drawbacks
- Limited processing power, memory and storage on edge devices.
- More complex to manage: thousands of devices in different places to update, monitor and fix.
- Security: a larger number of devices, often in unprotected places, and physical access by attackers.
- Higher hardware cost (equipment at each location).
- Data consistency: data is spread out, so keeping it in step is harder.
- Less suited to very heavy analysis that needs the cloud's power.
Worked example
Task: a factory has 200 cameras inspecting products on a fast production line, and must reject faulty items within 50 milliseconds. Compare cloud-only with edge processing.
Cloud only: sending 200 video streams to a distant data centre uses huge bandwidth, and the round trip might take 100 ms or more, too slow to remove a faulty item before it moves on. If the Internet fails, inspection stops.
Edge approach:
- An edge server in the factory runs the image-recognition model on the video from the cameras.
- It decides in a few milliseconds, triggering the reject mechanism (an actuator).
- It sends only the defect counts and a few sample images to the cloud, which uses little bandwidth.
- The factory keeps running if the Internet connection is lost.
- The cloud stores long-term results, analyses trends and retrains the model, then pushes the updated model to the edge.
Trade-offs: the factory must buy and maintain the edge hardware and secure it.
Exam tip: the key idea is processing near the source. Contrast with cloud on latency, bandwidth, reliability and power. Give a suitable example (self-driving vehicles, factory automation, smart cameras). Say that the two are often combined.
Check yourself
What is edge computing?
Processing data close to where it is created, instead of sending it to a distant central data centre.
Give two benefits of edge computing compared with cloud computing
Any two of: lower latency; less bandwidth used; works when the connection is lost; better privacy for local data.
What is an edge gateway?
A device that collects data from local devices, processes or filters it, and connects the local system to the cloud.
Give one drawback of edge computing
Any one of: limited processing power at each site; harder to manage and update many devices; more devices to secure; extra hardware cost.
Why might a self-driving car use edge computing rather than the cloud?
It must react within milliseconds and can't depend on a network connection, so processing has to happen on the vehicle.