When an IoT system generates data, a fundamental architectural decision must be made: where does the processing happen? The answer — edge, cloud, or some combination of both — has profound implications for system latency, bandwidth costs, privacy, offline resilience, and operational complexity. Many IoT projects default to “send everything to the cloud” without examining whether that choice actually serves their use case. Others over-engineer edge intelligence for applications that would be perfectly well served by cloud processing. This guide gives you the frameworks and trade-off analysis to make the right call for your specific system.
Defining the Spectrum: From Device to Cloud
Before comparing edge and cloud, it’s important to recognize that processing location is a spectrum, not a binary choice:
On-device processing (device edge): The MCU itself processes sensor data and makes decisions without any network communication required. Example: a thermostat that applies a PID algorithm to control the heating system.
Gateway/fog processing (near edge): A local gateway or edge server (Raspberry Pi, industrial PC, AWS Greengrass device) aggregates data from multiple IoT nodes and performs intermediate processing. Example: a factory gateway that performs vibration FFT analysis on 50 sensor nodes before sending summary alerts to the cloud.
Regional edge processing (far edge / MEC): Multi-access Edge Computing nodes deployed by telecom operators or at colocation facilities close to users. Latency of 5–20ms to devices in the coverage area. Relevant for real-time industrial automation and smart city applications.
Cloud processing: Data travels to centralized cloud data centers (AWS, Azure, GCP) for processing. Round-trip latency typically 50–500ms depending on geography. Unlimited scale, rich services, but dependent on network connectivity.
Most production IoT systems use multiple processing tiers simultaneously — some decisions happen on-device, some at the gateway, and some in the cloud — with each tier doing what it does best.
The Case for Edge Computing in IoT
Edge computing has gained enormous momentum in IoT for compelling technical reasons:
Latency: When Milliseconds Matter
For any IoT application requiring real-time response, the physics of network communication make pure cloud processing impossible. Consider:
- Round trip to a cloud server: 50–500ms
- Industrial robot control cycle: 1–10ms
- Safety system shutdown time: <50ms
Closed-loop control systems must process at the edge. A robotic arm that sends sensor data to the cloud and waits for a response before acting cannot function safely. The PID controller, safety interlock logic, and motion planning must run locally.
Even for less critical applications, latency affects user experience. A smart lock that requires a cloud round-trip before unlocking creates a frustrating 300-500ms delay that users notice. Local processing eliminates this.
Bandwidth: The Cost of Moving Data
IoT data volumes can be enormous. Consider a factory with 200 vibration sensors each sampling at 10 kHz with 16-bit resolution: that’s 6.4 MB/second per sensor, or 1.28 GB/second total. Sending that to the cloud in real-time would require enormous (and expensive) bandwidth, and the cloud ingestion and storage costs would be staggering.
Edge processing solves this by applying data reduction at the source:
- Statistical feature extraction (mean, RMS, peak, kurtosis) reduces a 10 kHz stream to a few numbers per second
- Anomaly detection filters out “normal” readings and only forwards anomalies
- Change detection only transmits data when values change significantly
A well-designed edge processing layer can reduce the data volume sent to the cloud by 99% or more, while preserving all the information needed for decision-making.
Privacy: Keeping Sensitive Data Local
Data minimization is not just a regulatory principle (GDPR Article 5) — it’s good engineering. Sensitive data that never leaves the premises cannot be stolen from a cloud server.
Smart building camera systems are a compelling example. A building that uses on-edge person detection to count occupants and optimize HVAC never needs to send actual video footage to any cloud. The privacy-sensitive video is processed locally; only aggregate occupancy counts go to the cloud.
Medical IoT devices processing patient data face particularly stringent requirements. HIPAA (in the US) requires appropriate safeguards for protected health information, and in many cases, processing at the edge under direct organizational control is the most straightforward compliance path.
Offline Resilience: Functioning Without the Cloud
IoT devices deployed in remote or bandwidth-limited environments must continue to function when cloud connectivity is unavailable. Edge intelligence enables graceful degradation:
- An agricultural irrigation system should continue applying pre-programmed schedules even without internet access
- A factory production line should continue to function safely even if the cloud analytics system is down
- A smart building should maintain climate control based on local schedules and local occupancy sensors
This resilience requirement is often underestimated during development (where connectivity is always available) but is critical in real-world deployments.

The Case for Cloud Computing in IoT
Cloud processing remains essential for capabilities that would be impractical to replicate at the edge:
Scale and Centralization
Many IoT insights require aggregating data across many devices. A retail chain with 500 stores, each with environmental and occupancy sensors, can only perform fleet-level analytics (identifying which stores have unusual patterns, benchmarking store-to-store performance) by bringing all the data together in one place.
Cloud platforms provide the horizontal scalability to ingest data from millions of devices simultaneously. Building equivalent infrastructure on-premises is technically possible but prohibitively expensive and complex to operate.
Machine Learning Model Training
Training sophisticated ML models requires substantial compute resources and large historical datasets. This always happens in the cloud. The trained models may subsequently be deployed to edge devices for inference, but the training pipeline — data preprocessing, feature engineering, model training, hyperparameter optimization, evaluation — is a cloud workload.
Services like AWS SageMaker, Azure ML, and Google Vertex AI provide managed ML training pipelines purpose-built for this workflow.
Long-Term Storage and Historical Analysis
Cloud object storage (AWS S3, Azure Blob Storage) provides virtually unlimited, low-cost storage for IoT data. Edge devices have constrained local storage. For any application requiring months or years of historical data — warranty analysis, regulatory compliance, trend analysis — cloud storage is the practical answer.
Integration With Business Systems
Enterprise IoT value is often realized through integration with existing business systems: ERP, CRM, supply chain management, financial systems. These systems live in the cloud or data center. Cloud-side IoT processing integrates naturally with them.
Making the Decision: A Framework
When deciding where to process, evaluate each processing function against these criteria:
Speed requirement: Does this function need to react in <100ms? If yes, must be edge.
Data volume: Does this function consume high-bandwidth raw sensor data? If yes, strong push toward edge to avoid transmission costs.
Privacy sensitivity: Does this function process personally identifiable or otherwise sensitive data? If yes, favor edge.
Cross-device aggregation: Does this function need data from multiple devices or locations? If yes, push toward cloud.
Model sophistication: Does this function require ML models too large to deploy on constrained hardware? If yes, cloud or powerful edge server.
Connectivity dependence: Is connectivity reliable enough to depend on cloud processing for critical functions? If connectivity is unreliable, critical functions must be edge.
A practical approach is to build a processing responsibility matrix — list all the processing functions your system needs, evaluate them against these criteria, and assign each to the appropriate tier.
The Hybrid Architecture: Both at Once
The most sophisticated IoT architectures deliberately distribute processing across multiple tiers, assigning each function to its optimal location:
| Function | Processing Location | Reason |
|---|---|---|
| Safety interlocks | On-device | Sub-millisecond response |
| Local anomaly detection | Gateway | Low latency, bandwidth reduction |
| Historical trend analysis | Cloud | Long-term data, cross-fleet |
| ML model inference | Edge (post-training in cloud) | Low latency, offline resilience |
| Regulatory reporting | Cloud | Integration with compliance systems |
| Firmware updates | Cloud | Centralized management |
| Real-time alerting | Gateway | Low latency, cloud resilience |
| Advanced ML training | Cloud | Compute and data scale |
This hybrid approach does add architectural complexity — you need to manage code deployment to edge nodes, handle synchronization between tiers, and design for eventual consistency when edge nodes reconnect. But for most serious IoT deployments, this complexity is justified by the performance, cost, and resilience benefits.
AWS Greengrass, Azure IoT Edge, and Balena are popular platforms for managing edge-to-cloud hybrid IoT architectures. Our IoT connectivity integration team designs and deploys these architectures for clients across industries.
Cost Implications
Cloud costs for IoT can escalate significantly at scale. Typical cost drivers:
- Ingestion: AWS IoT Core charges per message; at high message rates, this adds up quickly
- Storage: Time-series databases and object storage costs scale with data volume and retention period
- Processing: Stream processing (Kinesis, Kafka) and analytics services charge per GB processed or per compute hour
- Egress: Transferring data out of the cloud to applications or other services incurs bandwidth charges
Edge processing reduces cloud costs by reducing the data volume and number of API calls reaching the cloud. A well-designed edge layer can reduce IoT cloud bills by 50–80% for data-intensive applications.
Edge infrastructure has its own costs: edge hardware, edge software deployment and management, local storage, and the engineering complexity of managing distributed systems. The break-even point depends on data volumes and the complexity of the edge logic.
Conclusion
The edge vs. cloud debate in IoT is best resolved not by ideological preference but by systematic analysis of your system’s requirements. Latency-critical control loops must run at the edge. Historical fleet-level analytics must run in the cloud. Most real systems need both, with clear architectural boundaries between tiers.
The questions to always ask: How fast must this decision be made? How much data does it consume? How sensitive is the data? Does it need data from multiple devices? Is connectivity reliable? Answering these honestly for each processing function in your system will point you clearly toward the right architecture.
For expert help designing IoT systems that optimally balance edge and cloud processing, explore UABit’s IoT device development services and AIoT solutions.
Further reading:
- AWS IoT Greengrass documentation — hybrid edge-cloud IoT platform
- Azure IoT Edge documentation — Microsoft’s edge runtime for IoT
- Edge AI with TensorFlow Lite — deploying ML inference to microcontrollers
- OpenFog Consortium Reference Architecture — fog computing standards
- Embedded.com edge computing articles — practical edge IoT engineering
IoT & AIoT Weekly
Get the best IoT development content delivered weekly. No noise, just signal.