DEV Community

Cover image for Fog Computing Explained: The Local Layer That Keeps Smart Cities and Factories Running
Adam Bartlett
Adam Bartlett

Posted on Originally published at graylinepost.com

Fog Computing Explained: The Local Layer That Keeps Smart Cities and Factories Running

Originally published on Grayline Post.

Fog computing processes data on local hardware stationed between the devices that create it and the distant cloud data centers that usually handle it. First described by networking company Cisco, fog computing is explained by the company as a way to bring computing power closer to where sensors, cameras, and machines actually sit. For a city's traffic lights, a farm's soil sensors, or a factory floor, that local layer can mean the difference between a system that reacts instantly and one that lags.

Key takeaways

  • Fog computing processes data on local servers placed between devices and the central cloud.
  • It cuts delay and saves bandwidth for things like traffic systems, factories, and farms.
  • Edge computing is a close cousin that pushes processing even further, onto the device itself.
  • Cloud computing has four basic service types, and fog computing works alongside them rather than replacing them.
  • Expect more fog setups in smart cities and rural sensor networks as local processing demand grows.

What are the four main types of cloud computing services?

The four main types of cloud computing services are infrastructure as a service, platform as a service, software as a service, and function as a service. Each one hands a business a different amount of control and a different amount of maintenance work.

Infrastructure as a service, or IaaS, rents out raw computing power, storage, and networking, so a company builds its own systems on top of someone else's hardware. Platform as a service, or PaaS, adds the operating system and development tools, so programmers can build apps without managing servers. Software as a service, or SaaS, is a finished product a person just logs into, like an email platform or a video conferencing tool. Function as a service, often called serverless computing, runs small pieces of code only when triggered, and the provider handles everything else behind the scenes.

  • IaaS: rented servers, storage, and networks

  • PaaS: a ready-made platform for building and testing apps

  • SaaS: finished software accessed through a browser or app

  • FaaS: short pieces of code that run only when needed

Fog computing matters here because it often works as a local extension of these cloud services. A factory might still use a cloud provider's IaaS for long-term storage, while a fog node on-site handles the split-second decisions that can't wait for a round trip to a distant data center, a theme also covered in this look at what data centers actually do.

What is edge computing with an example?

Edge computing is the practice of processing data directly on or very near the device that creates it, instead of sending it to a distant server first. A common example is a self-driving car's onboard computer, which must judge distances and brake decisions in milliseconds, far too fast to wait on a signal to travel to a cloud data center and back.

Other everyday examples include smart security cameras that can detect a person in a doorway without sending every frame of video to the cloud, and factory robots that adjust their grip pressure in real time based on sensors built into the robotic arm itself. Retail stores also use edge devices at checkout to flag fraud patterns instantly rather than waiting on a central system.

Edge computing and fog computing are closely related ideas, and people sometimes use the terms loosely. The difference is mostly about location: edge computing happens right on the device or its immediate hardware, while fog computing adds a local network layer that can gather and process data from many nearby devices at once, such as all the sensors across one building or one block.

What does "edge network" mean?

An edge network is the part of a network closest to the end user or device, where data enters or leaves the broader internet. It includes the local routers, cell towers, and small servers that connect a home, office, or vehicle to the wider system before traffic travels further to a cloud data center.

Mobile carriers build edge networks into their towers so that tasks like video streaming or location services can respond quickly, a setup that connects directly to how 5G networks are changing local connectivity. Internet providers also use edge servers to store copies of popular content, like streaming video, closer to neighborhoods so it loads faster.

Fog nodes typically sit within or just behind an edge network, acting as a small-scale processing hub that can serve a cluster of local devices. This layered setup lets a region keep some computing work local even when its connection to a far-off data center is slow or unreliable.

How does fog computing actually work?

Fog computing works by placing small servers, routers, or gateways close to the source of the data and letting them handle the first round of processing before anything is sent further. These fog nodes decide what's urgent, what can wait, and what doesn't need to travel to the cloud at all.

  1. Sensors or devices collect raw data, such as temperature readings, video frames, or traffic counts.

  2. A nearby fog node receives that data over a local network instead of sending it straight to the cloud.

  3. The fog node filters, analyzes, or compresses the data, making quick decisions on the spot when speed matters.

  4. Only the summarized or flagged information is sent on to a central cloud system for storage or deeper analysis.

  5. The cloud can later send updated instructions back down to the fog layer, keeping the local system current.

This step-by-step flow is why fog computing is often described as a middle layer. It doesn't replace the cloud, it reduces how much traffic has to reach it and how often.

How does fog computing compare with cloud and edge computing?

Fog, edge, and cloud computing differ mainly in where data gets processed and how fast a response comes back. Each has a role, and most real systems use a mix of all three rather than picking just one.

|Feature|Cloud computing|Fog computing|Edge computing|

|---|---|---|---|

|Where processing happens|Centralized, distant data centers|Local network, between devices and cloud|Directly on or next to the device|

|Typical response time|Seconds, depending on connection|Milliseconds to seconds|Milliseconds or less|

|Best for|Long-term storage, heavy analysis|Coordinating many local devices|Instant, single-device decisions|

|Example|Streaming service libraries|Smart city traffic management|Self-driving car braking systems|

Cloud computing still wins for tasks that need huge storage or heavy number-crunching across large datasets, which is one reason the underlying data center boom keeps expanding. Fog computing fills the gap for mid-level decisions involving several devices in one area, and edge computing takes over when a single device simply can't afford any delay at all.

Where is fog computing used today?

Fog computing is already running quietly behind traffic systems, factories, farms, and utility grids. Its biggest advantage shows up in places where many local sensors generate constant data but sending it all to a distant cloud would be slow, costly, or unreliable.

Smart traffic light networks in cities use fog nodes to adjust signal timing in real time based on nearby camera and sensor data, rather than waiting for instructions from a far-off server. Utility companies use fog computing on local power grids to detect outages or equipment strain street by street. In farming regions, soil and weather sensors spread across large fields feed a local fog node that can trigger irrigation decisions immediately, which matters most in rural areas where internet connections to a distant cloud can be slow or inconsistent.

  • Smart cities: traffic signals, public safety cameras, streetlight networks

  • Manufacturing: factory floor sensors coordinating robotic equipment

  • Agriculture: soil moisture and weather sensors across rural fields

  • Utilities: local power grid monitoring and outage detection

  • Healthcare: hospital wings monitoring multiple patient devices at once

Cisco, which popularized the term, originally pushed fog computing as a natural extension of its networking hardware business, and the idea was later developed further by the OpenFog Consortium, an industry group that has since folded into the Industrial Internet Consortium.

What are the benefits and drawbacks of fog computing?

Fog computing's main benefit is speed, since keeping processing local cuts the delay of sending data back and forth to a distant data center. It also reduces the amount of raw data that needs to travel over a network, which saves bandwidth and can lower connectivity costs, especially for regions with weaker internet infrastructure.

  • Lower latency: local processing means faster responses for time-sensitive tasks

  • Reduced bandwidth use: less raw data has to travel to the cloud

  • Better reliability in weak-connectivity areas: local systems can keep working during outages

  • Added hardware cost: fog nodes require physical equipment spread across many locations

  • More complex maintenance: local hardware in remote or outdoor sites needs upkeep and monitoring

  • Security surface grows: more physical access points can mean more targets for attackers

The drawbacks mostly come down to cost and complexity. Instead of managing one central cloud system, an organization now has to maintain many small, distributed nodes, often in harder-to-reach physical locations like roadside cabinets or remote farm equipment.

Is fog computing secure, and what comes next?

Fog computing can be secure, but it shifts some of the risk from a single well-guarded data center to many smaller, more physically exposed nodes spread across a region. A roadside traffic cabinet or a rural farm sensor hub is harder to monitor around the clock than a locked data center, which is why organizations deploying fog systems typically add local encryption, strict device authentication, and regular firmware updates, principles similar to those covered in basic security checklists for connected systems.

Looking ahead, fog computing is expected to grow alongside the rollout of faster wireless networks and the continued spread of internet-connected sensors in homes, vehicles, and public infrastructure. As more local devices come online, demand for a local processing layer that can keep up without overloading central cloud systems is likely to increase, particularly in regions still catching up on fast, reliable broadband. Readers should check official sources from networking vendors and industry groups for the latest technical standards, since this remains an area where terminology and best practices are still settling.

Frequently asked questions

Is fog computing the same thing as edge computing?

No, they are related but not identical. Edge computing processes data right on or next to the originating device, while fog computing adds a local network layer that coordinates data from several nearby devices at once.

Who invented fog computing?

Cisco introduced and popularized the term fog computing around 2014 to describe extending cloud capabilities closer to the network edge. The concept was later expanded by industry groups, including the now-merged OpenFog Consortium.

Does fog computing need 5G to work?

No, fog computing can run over wired networks or older wireless standards, but faster connections like 5G make local coordination between devices smoother and quicker, which is part of why interest in fog setups has grown alongside 5G rollout.

Can a small business use fog computing?

Yes, though it's more common in larger operations like factories, farms, or city infrastructure that generate constant data from many sensors. A small business with a handful of connected devices usually gets enough benefit from standard cloud or edge setups without needing a dedicated fog layer.

What industries rely on fog computing the most?

Smart city infrastructure, manufacturing, agriculture, utilities, and healthcare monitoring systems are the heaviest users today. These industries all share a need to process a high volume of local sensor data quickly, often in locations where sending everything to a distant cloud isn't practical.


This article first appeared on Grayline Post.

Top comments (0)