What is Edge and Fog Computing?
Edge and fog computing, told as a story about a local branch — and a hub in between — handling things before the far-off HQ has to.
A visitor from across town takes forever to reach HQ.The farther HQ (the central server) is, the longer a visitor (a request) waits.
When every visitor funnels into one HQ, everyone waits longer.Visitors' requests need to be handled somewhere closer.
Edge = the local branch, fog = the hub between it and HQ.The branch handles requests near the visitor first, so the reply comes faster than from HQ.
Edge, fog, and HQ each take on different work.Nearby branches take simple requests; HQ takes heavy analysis.
The branch is too small to hold all the data.Branch data still has to sync back up with HQ eventually.
Edge computing means handling things right at the nearby local branch. Fog computing is the hub in between that bundles those branches together. Both spare requests the full trip to the central HQ, shortening the distance traveled.
Edge computing processes data right next to where it's generated (e.g. right beside an IoT sensor). Fog computing adds a layer between the edge and the central cloud, bundling multiple edge nodes together. Both cut latency and reduce load on the central network, but HQ — the central cloud — still has far greater processing capacity and storage reach.
When grown-ups say it
- Edge computing
- Processing right at the small local branch. Right next to where the data is generated.
- Fog computing
- The middle hub bundling several branches. One more layer, between edge and HQ.
- Latency
- The wait that grows with distance. Shorter, the closer the processing happens.
- Synchronization
- Matching branch data back up with HQ. Needed because the branch alone can't hold it all.
- IoT
- The devices out in the field generating data. Edge computing processes these devices' data right beside them.
- Central cloud (HQ)
- The HQ building handling full storage and heavy analysis. The very building this whole book is set in. → the shared office building
- Serverless
- The meeting room that opens only when used. Serverless functions are sometimes placed at the edge too. → the hourly meeting room
- Auto scale
- Automatically adding and removing servers. The server count inside an edge branch can also scale with demand. → bigger office or more offices