Edge Computing: When to Move Compute Closer to the User
What edge computing is and why it matters, how CDNs, edge functions and on-prem edge differ, real use cases, trade-offs and a simple framework for deciding.
Key takeaways
- Edge earns its place through latency, bandwidth, data locality and resilience, not because it is fashionable.
- CDNs, edge functions and on-prem edge are different tiers with very different cost and complexity.
- More nodes means harder consistency, observability and security.
For years the default was to concentrate everything in a few large cloud data centres. That model is still excellent for many workloads, but physical distance, data volume or legal requirements can make it a poor fit. Edge computing is the answer to that problem: doing part of the work closer to where data is produced or consumed.
Why Edge? Four Main Reasons
- Latency: light in optical fibre travels at roughly two thirds of its vacuum speed, so every thousand kilometres adds several milliseconds to a round trip, and no software optimisation removes that physical floor.
- Bandwidth: pre-processing video or sensor data on site avoids shipping enormous volumes of raw data to the cloud.
- Data locality: some laws and contracts forbid data from leaving a region or country.
- Resilience: if the link to the cloud drops, a local node can keep working.
Three Different Kinds of Edge
The word edge is elastic and in practice covers three tiers. A CDN serves static, cached content from points of presence close to users; it is simple, cheap and ubiquitous. Edge functions run small pieces of code in those same locations, such as rewriting requests, lightweight authentication or personalising responses. On-prem edge means real servers or devices in a factory, shop or station; it gives you the most control and also the most operational burden.
Real-World Use Cases
- IoT: aggregating and filtering sensor data before it reaches the cloud.
- Video analytics: detecting events on the camera or a local gateway and sending only results or key clips.
- Retail: keeping tills and stock systems running even when a branch loses internet access.
- Web delivery: authentication, A/B testing and traffic steering close to the user.
Trade-Offs and Hidden Costs
Edge is not free. Once data is stored or processed in several places you run straight into the CAP theorem and must trade strong consistency against availability. Observability gets harder, because logs and metrics now arrive from hundreds of scattered nodes. Above all, the attack surface grows: a device in a shop is physically reachable by an attacker and cannot be assumed to be protected like a data centre.
Securing Hundreds of Nodes
Before deploying, apply a few principles: give every node its own identity and short-lived certificates; encrypt disks; enable secure boot and signed updates; avoid storing secrets on nodes, or make them revocable; and let nodes connect to the centre outbound-only with least privilege. Assume every node will be compromised one day and keep the blast radius small.
How to Decide
- Measure the bottleneck first: latency, bandwidth or a legal requirement? Without that answer, edge only adds complexity.
- Start with the simplest tier; a well-configured CDN and cache often solves the problem.
- If you need logic, try edge functions for small, stateless tasks.
- Move to on-prem edge only when connectivity loss or data volume truly demands it.
- Plan fleet management, remote updates and monitoring from day one.
This article is sample educational content; verify against official sources before making important decisions.