Free tech learning for everyone, from basics to pro

Edge ComputingEmerging Technologies and SecurityBeginner

Edge versus fog versus cloud

In short: Cloud computing centralises large, elastic resources; edge computing acts close to devices; fog computing describes the layer in between that aggregates and coordinates several edge sites. Real systems use all three, placing each task where latency, bandwidth, resilience and cost requirements are best met.

Three terms, one continuum

It is easiest to see cloud, fog and edge as points along a line from the device to a large data centre.

Cloud, fog and edge tiersCloudbig analytics, storage, trainingFogaggregation, local coordinationEdgeimmediate processingDevicessensors and actuators
Figure 1. A layered view: devices produce data, edge acts quickly, fog coordinates locally, cloud handles the big picture.
  • Cloud: large shared data centres offering elastic compute, storage and managed services. Best for heavy analytics, long-term storage, training AI models and anything that is not time-critical.
  • Edge: processing on or very near the device, such as in a camera, gateway or on-site server. Best for instant reactions and filtering data.
  • Fog: an intermediate layer, for example a site or district server that collects data from many edge nodes, coordinates them and passes summaries to the cloud. The term was popularised in the IoT world, and an industry reference architecture for fog was later adopted as an IEEE standard (IEEE 1934).

In practice many vendors now use "edge" for everything outside the central cloud, so "fog" appears less often. You will still see it in IoT courses and exams, as in IoT edge, fog and cloud.

Comparing the tiers

Edge versus cloudEdgeMilliseconds to actLimited computeWorks if WAN failsMany sites to manageCloudHigher latencyElastic, large scaleNeeds connectivityCentral management
Figure 2. Edge and cloud have complementary strengths, so most designs combine them.
FactorEdgeFogCloud
Distance from devicesOn or next to themLocal site or areaRegional or global data centre
Response timeFastestFastSlowest of the three
Compute and storageSmallMediumVery large, elastic
Works without WANYesUsuallyNo
Management effortHigh (many nodes)MediumLowest per workload

Deciding where a workload runs

  1. Latency: how fast must the system respond? Milliseconds point to edge; seconds or minutes allow cloud.
  2. Data volume: is it cheaper to process locally and send summaries?
  3. Resilience: must the function keep working during a WAN outage?
  4. Data rules: must data stay on site or in a country?
  5. Compute needs: does the job need more power than an edge node has, such as model training?
  6. Operations: can you patch, monitor and physically protect the location?

Worked example: a smart building

Temperature sensors and door controllers sit on each floor. An edge controller on each floor reacts instantly, for example unlocking doors during a fire alarm even if the network is down. A fog server in the building's plant room combines data from all floors, balances heating and keeps a week of logs. The cloud platform stores years of history, compares many buildings and trains a model to predict energy use, then sends updated settings back down.

Tip: security policy must follow data across all tiers. Encrypt links between tiers, authenticate every node and decide which tier is trusted to issue commands to devices.

Practice

Where should AI model training for a fleet of buildings usually run?
In the cloud, where large, elastic compute and long-term data are available. The trained model can then be deployed to edge or fog nodes.
What does the fog tier typically do?
Aggregates and coordinates data from several edge nodes in a local area, then passes filtered information to the cloud.
Name one reason to keep a door control decision at the edge.
It must work instantly and keep working during a network or cloud outage, for safety.

Key takeaways

  • Cloud, fog and edge are points on a line from data centre to device.
  • Edge acts fast and locally; cloud offers scale; fog coordinates in between.
  • Choose placement by latency, data volume, resilience, data rules and compute needs.
  • Most real designs combine all three tiers.
  • Security must cover every tier and the links between them.
Tracks your learning on this device only. See your progress on the learning paths.

About the author

Mohamed Fayas

Founder of FM TecHub. CCNA certified, with a BTEC HND in Network Engineering, and BEng (Hons) in Computer Networking and Cloud Security. He writes practical, plain-English guides on networking, security and cloud.

More about the author

Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.

Stay up to date by email

New notes, tools and security news from FM TecHub, explained simply. Free.

We only use your email to send these updates. See our privacy policy.