Edge Computing in IoT: When to Process Data at the Edge vs. the Cloud

App DevelopmentAug 4, 2026 · 13 min read

Short answer

Edge computing in IoT means processing sensor data on or near the device, not the cloud: it cuts latency to milliseconds and keeps systems running through connectivity gaps. RaftLabs builds IoT and edge software for manufacturing and logistics deployments.

Key Takeaways

  • Edge computing processes IoT data on or near the device instead of routing everything to the cloud first, cutting a round-trip decision from seconds to milliseconds.
  • Gartner projected that by 2025, 75% of enterprise-generated data would be created and processed outside a traditional centralized data center or cloud, up from about 10% in 2018.
  • McKinsey research on predictive maintenance, one of the strongest edge use cases in manufacturing, puts the downtime reduction at 30 to 50 percent and extends machine life by 20 to 40 percent.
  • Not every IoT project needs an edge layer. It earns its cost when latency is safety-critical, connectivity is unreliable, sensor volume is high, or data cannot legally leave a device or facility.
  • Adding an edge layer adds a recurring cost, not a one-time one: fleet management, security patching across distributed hardware, and harder field debugging all become ongoing line items.

Gartner projected that by 2025, 75% of enterprise-generated data would be created and processed outside a traditional centralized data center or cloud, up from about 10% in 2018. That shift has a name: edge computing. For IoT teams, it raises a practical question before a single sensor ships: does this device need to send every reading to the cloud, or can it make the decision on its own?

This guide is for the people who scope IoT deployments: product leads, plant managers, and engineering teams weighing an edge layer against a simpler cloud-only architecture. It covers what edge computing actually means for IoT, when the added complexity is worth it, and what it costs to get wrong.

What is edge computing in IoT?

Hand-drawn notebook diagram showing a sensor branching to a fast local edge decision versus a slow round trip to the cloud

Edge computing in IoT is the practice of processing data on or near the device that generates it, instead of sending every reading to a centralized cloud server first. The edge is whatever compute sits closest to the physical world: a sensor with an onboard chip, a gateway on a factory floor, or a local server inside a single building.

In a cloud-only IoT architecture, a sensor captures a reading, sends it over the network, and waits for the cloud to process it and send a decision back. That round trip typically takes anywhere from tens of milliseconds to several seconds, depending on network conditions. For a camera flagging a person in a restricted zone, or a robotic arm reacting to a pressure change, that delay can be the difference between a system that works and one that doesn't.

Edge computing does not replace the cloud. It changes where the first decision gets made. Time-sensitive filtering, anomaly detection, and control-loop logic run locally. The cloud still handles what it does best: aggregating data across a fleet, running heavier machine learning models, and giving people a dashboard to see the whole picture.

Edge vs. cloud computing for IoT: how the split actually works

Deciding between edge and cloud for IoT is rarely an either-or choice. The real question is which layer handles which task. The table below breaks down the trade-offs across the factors that matter most in a real deployment.

FactorEdge computingCloud computing
LatencyMilliseconds; decision happens on-deviceTens of milliseconds to seconds, network-dependent
Bandwidth costLow; only summarized or exception data leaves the deviceHigh; every raw reading travels over the network
Offline resilienceKeeps working during a connectivity lossStops functioning without a connection
Compute cost per deviceHigher upfront hardware costLower device cost; compute is centralized and shared
Security surfaceDistributed; more devices to patch and monitorCentralized; easier to harden one environment
Best suited forReal-time control, safety systems, high sensor volumeFleet-wide analytics, historical reporting, model training

Most production IoT systems use both layers. A manufacturing line might run vibration analysis on an edge gateway to catch a bearing failure in real time, while sending daily summaries to the cloud for a maintenance dashboard. A fleet-tracking product might run geofencing logic on the device itself, but push trip history to the cloud for reporting.

The mistake we see most often is treating this as a single architecture decision made once, at the start of a project. It's closer to a per-data-type decision: certain signals need an edge response, others don't, and the split usually shifts as a product matures and the team learns which data actually needs to be fast.

When edge computing is worth the added complexity

Edge computing adds real engineering weight. Every edge device is a piece of infrastructure your team has to update, monitor, and secure out in the field, rather than inside a data center you control. That cost is worth paying when one of four conditions is true.

Latency-critical control loops. If a system has to react in milliseconds, look at what it's controlling: a robotic arm avoiding a collision, a vehicle braking system, a medical device adjusting a dosage. Sending that decision through the cloud isn't an option. The network round trip alone can exceed the time the system has to act.

High sensor volume, constrained bandwidth. A single vibration sensor sampling at high frequency can generate more data per hour than a typical internet connection can reasonably upload. Multiply that by hundreds of sensors on a factory floor, and cloud-only ingestion becomes a bandwidth and cost problem before it becomes anything else. Edge processing filters that volume down to the events that actually matter.

Intermittent or unreliable connectivity. Remote job sites, offshore platforms, agricultural equipment, and rural utility infrastructure often don't have reliable connectivity. If the system has to keep logging, alerting, or controlling equipment during a connectivity gap, that logic has to live on the device itself.

Data sovereignty and privacy requirements. Certain data legally cannot leave a facility, a country, or, in rarer cases, a specific machine. Edge processing keeps sensitive data local and sends only what is permitted to leave.

Our observation: teams that add an edge layer without one of these four drivers usually end up maintaining infrastructure they didn't need. The question worth asking before committing to edge architecture isn't "would this be faster at the edge." It almost always would be. The question is whether that speed solves a problem the business actually has.

Real-world edge computing use cases in IoT

Whiteboard sketch of four edge computing use cases in IoT connected to a central edge node: line monitoring, predictive maintenance, retail and logistics, and remote health monitoring

Manufacturing line monitoring. Vibration, temperature, and acoustic sensors on production equipment generate a constant stream of readings. Running anomaly detection at the edge means a bearing starting to fail, or a motor drawing unusual current, gets flagged the moment it happens, not after a batch upload finishes processing in the cloud. That gap can be the difference between a scheduled repair and an unplanned line stoppage.

Predictive maintenance. This is one of the strongest edge use cases in industrial IoT because the value depends on speed. McKinsey research on predictive maintenance puts the downtime reduction at 30 to 50 percent and extends machine life by 20 to 40 percent. Edge processing is what makes that possible: a model running locally can catch a developing fault in near real time, instead of waiting on a cloud pipeline to process a batch of sensor data hours later.

Retail and logistics sensors. Cold-chain monitoring, shelf-inventory sensors, and warehouse tracking all generate high-frequency data across dozens of locations at once. Processing that data at the edge, inside the truck, the warehouse, or the store, filters out routine readings and only sends exceptions, like a refrigerated container drifting out of temperature range, to the cloud. That keeps bandwidth costs down across a large distributed fleet.

Healthcare remote monitoring. Wearable and bedside monitoring devices track vitals continuously. Edge processing lets the device flag a dangerous reading, an irregular heart rhythm or a dropping oxygen level, immediately, rather than waiting for a cloud round trip. The cloud still aggregates the full history for a clinician's dashboard, but the safety-critical alert happens on-device.

Industrial edge computing: what's different in manufacturing

Industrial edge computing has to survive conditions consumer IoT hardware was never designed for. A factory floor brings temperature swings, vibration, dust, and electrical noise that would degrade or damage standard commercial electronics. Edge hardware for manufacturing is typically ruggedized: sealed enclosures, wider operating temperature ranges, and components rated for continuous, unattended operation rather than occasional consumer use.

A boundary shows up here that consumer IoT never has to deal with: the line between operational technology and IT. Manufacturing floors already run programmable logic controllers, SCADA systems, and machine sensors that predate modern IoT by decades. An edge deployment has to bridge that existing OT layer with IT systems and cloud dashboards. That usually means a gateway that speaks both the industrial protocols already on the floor (Modbus, OPC-UA, EtherNet/IP) and the modern APIs the cloud side expects.

Uptime requirements are also stricter. A consumer IoT device going offline for an hour is an inconvenience. A manufacturing line losing its monitoring layer during a production run can mean missed defects or a safety gap. That's why manufacturing IoT integration work tends to spend as much time on fault tolerance and graceful degradation as it does on the sensor logic itself. If you're scoping this for a broader plant or facility, it's worth reviewing what a manufacturing software partner typically covers beyond the sensor layer, since the edge deployment is usually one piece of a larger operational software stack.

How to decide if your IoT project needs an edge layer

Hand-drawn notebook checklist of five questions to decide whether an IoT project needs an edge computing layer

Before committing to an edge architecture, walk through these questions with the team that will actually run the system day to day.

  • Does a decision need to happen in under a second, and would a network round trip make it too slow?

  • Would the raw data volume from your sensors overwhelm the bandwidth available at the deployment site?

  • Does the system need to keep working, logging, and alerting when the connection drops?

  • Does any of the data legally have to stay on-site or within a specific country?

  • Is the cost of the manual workaround, or the risk of a missed event, higher than the cost of building and maintaining an edge layer?

A single "yes" is often enough to justify the added architecture. If every answer is "no," a cloud-only design is usually the simpler, cheaper, and more maintainable choice, at least for the first version of the product.

Cost and complexity trade-offs

Edge computing is not free complexity. It's a trade of one set of costs for another, and it's worth being honest about both sides before committing.

What you take on: a fleet of distributed devices that each need firmware updates and security patches applied in the field, not in a controlled data center. Monitoring for devices that go offline or start reporting bad data. Debugging that's harder because the failure might be specific to one machine's electrical environment, not reproducible on a bench. And an upfront hardware cost per device that a pure cloud architecture doesn't carry.

What you save: bandwidth costs that would otherwise scale with every sensor and every reading. Cloud compute costs for processing data that never needed a server in the first place. And, in the use cases where it matters, the operational cost of a slow decision, whether that's a missed safety event, an unplanned line stoppage, or a system that simply doesn't work without a live connection.

For most teams, the honest answer is a hybrid: an edge layer scoped narrowly to the handful of decisions that genuinely need it, with everything else routed to the cloud where it's cheaper to build, monitor, and change over time.

RaftLabs and IoT development

RaftLabs builds the software and integration layer for IoT and edge deployments: the firmware-to-cloud data pipeline, the edge processing logic, and the dashboards teams use to act on what the devices report. We work alongside hardware partners and OEMs rather than manufacturing the devices ourselves, which means the engineering focus stays on getting the data architecture right for your specific workflow, not on selling a fixed hardware platform.

Our IoT application development work spans consumer, industrial, and healthcare deployments, including the manufacturing-specific integrations covered above. If you're weighing whether your project needs an edge layer, or you already know it does and need to scope the build, the first step is a scoping conversation. We look at your data volume, latency requirements, and connectivity constraints together, then follow up with a costed scope within about two business days.

Ask an AI

Get an instant summary of this post from your preferred AI assistant.

Frequently asked questions

Edge computing in IoT is the practice of processing sensor and device data on or near the device that generates it, instead of sending every reading to a centralized cloud server first. The edge is whatever compute sits closest to the physical world, such as a sensor with an onboard chip, a factory-floor gateway, or a local server in a single building. It reduces latency, cuts bandwidth costs, and lets a system keep working during a connectivity gap.
Edge computing processes data locally in milliseconds and keeps working offline, but costs more per device and spreads security patching across a fleet of distributed hardware. Cloud computing centralizes compute, so it is cheaper per device and easier to secure in one place, but every reading has to travel over the network and the system stops working without a connection. Most production IoT deployments use both: time-sensitive decisions run at the edge, while fleet-wide analytics and reporting run in the cloud.
Edge computing earns its added complexity in four situations: latency-critical control loops where a network round trip is too slow, high sensor volume that would overwhelm available bandwidth, intermittent or unreliable connectivity where the system has to keep working offline, and data-sovereignty requirements where information legally cannot leave a device or facility. If none of those apply, a cloud-only architecture is usually simpler and cheaper to run.
Industrial edge computing has to survive conditions consumer IoT hardware was never designed for: temperature swings, vibration, dust, and electrical noise on a factory floor. It also has to bridge operational technology, the programmable logic controllers and machine sensors already running the line, with IT systems and cloud dashboards, usually through ruggedized gateways built for continuous uptime rather than occasional use.
Beyond the upfront hardware, an edge layer adds recurring operational cost: managing a fleet of distributed devices, pushing security patches to hardware in the field rather than a controlled data center, and debugging issues that show up on one machine out of hundreds. Teams that skip this planning usually underestimate the ongoing maintenance cost by treating edge infrastructure as a one-time build rather than a permanent operational responsibility.

Stay on topic

More on IoT & connected devices