Edge Computing
A distributed computing model that executes code and processes data physically close to end users or IoT devices rather than round-tripping to a distant central data center
Table of Contents
Structure Diagram
What is Edge Computing?
A distributed computing model that executes code and processes data physically close to end users or IoT devices rather than round-tripping to a distant central data center. It is a core concept in Traffic & Scaling within Cloud / DevOps.
Core Principles
Edge Computing extends beyond static CDN caching by executing application logic directly at globally distributed edge locations (PoPs) or on-site devices closest to the user. This minimizes physical network latency (RTT) down to single-digit milliseconds and reduces backhaul bandwidth to central data centers.
In web infrastructure, edge runtimes rely on lightweight V8 Isolates or WebAssembly for near-zero cold starts; in industrial IoT, edge devices run real-time sensor inference locally even without cloud connectivity.
Practical Takeaways
- Beware of data gravity: Running compute 5ms from the user still feels slow if the function makes multiple round trips to a single database across the ocean. Use the edge for auth checks, geo-routing, A/B testing, and edge-replicated reads.
- Build on Web Standard APIs: Many edge runtimes omit full Node.js native APIs for speed and sandboxing, favoring standard
fetch,Request/Response, andWebCrypto. - Match consistency to workload: Keep strongly consistent financial writes in core regions while leveraging eventually consistent edge KV/caches for global read speed.
Notable Examples
- Cloudflare Workers & Vercel Edge Middleware: Runs serverless code across hundreds of global PoPs with sub-millisecond startup.
- AWS CloudFront Functions & Lambda@Edge: Customizes headers, rewrites URLs, and authenticates requests directly at CDN edges.
- Autonomous Vehicles & Industrial IoT: Processes camera and telemetry streams locally to meet strict real-time safety budgets.