The volume of data produced by sensors and connected equipment keeps growing in industry. Sending everything to the cloud is expensive (bandwidth, storage) and often ill-suited to field constraints: latency, availability, confidentiality.
Edge computing brings computation and storage closer to the data collection point. This article details a three-layer industrial edge architecture, the communication protocols to favor, three typical use cases, a progressive deployment approach and the pitfalls to avoid.
Why the cloud alone is not enough in industry
Predictive maintenance, automated quality control, digital twins: on paper, everything can be centralized. In practice, the "all-cloud" architecture runs into four limits:
- Latency: a visual quality control often needs to react in less than 50 ms. Even over fiber, the round trip to a regional data center adds several tens of milliseconds once processing and queues are counted.
- Bandwidth: a line of 200 sensors sampled at 1 kHz generates several gigabytes per day. Transmitting everything is expensive in network and storage.
- Availability: an Internet outage or a cloud provider failure leaves the factory blind, whereas one hour of production downtime can cost tens of thousands of euros depending on the sector.
- Data sovereignty: some production data is sensitive or regulated (GDPR, industrial secrecy). Sending it to an external cloud raises compliance questions.
Edge computing addresses these four constraints by processing data locally, as close as possible to sensors and actuators.
A three-layer edge architecture
A well-designed industrial edge architecture is organized into three levels, each with its responsibilities, hardware constraints and protocols.
Layer 1: device edge
This is the level closest to sensors and actuators: microcontrollers, programmable logic controllerss (PLC), smart sensors. Resources there are highly constrained: from a few megahertz to a few hundred megahertz of processor frequency, from a few hundred kilobytes to a few megabytes of RAM.
What runs at this level:
- acquisition and filtering of raw signals (anti-aliasing, denoising);
- detection of simple events (thresholds, trends, status indicators);
- execution of very lightweight TinyML models;
- transmission to the local layer via lightweight protocols (MQTT, CoAP, Modbus).
Key constraint: power consumption and thermal dissipation limit computing power. A microcontroller like the ESP32-S3 consumes a few tens of milliamps in operation and a few microamps in deep sleep: this is ideal for a battery-powered sensor, but insufficient for a complex deep learning model. TinyML (TensorFlow Lite Micro, Edge Impulse) bridges this gap with optimized models that fit in a few hundred kilobytes. To go further on this level, see our article on FreeRTOS in industrial environments.
Layer 2: local edge (gateway or micro-data center)
This intermediate layer is the heart of the architecture. It groups IoT gateways, industrial PCs or micro-servers installed in the workshop or technical room. These devices have far superior resources (multicore ARM or x86 processor, 4 to 16 GB of RAM, SSD storage) and serve as a local hub.
Essential functions of the local layer:
- Aggregation: collecting data from tens or hundreds of sensors via heterogeneous protocols (Modbus RTU/TCP, OPC UA, MQTT, Profinet, EtherNet/IP).
- Real-time processing: signal processing, control-command, local AI inference.
- Buffer storage: absorbing data peaks and ensuring service continuity in case of cloud connection loss.
- Autonomous decision: alarm, line shutdown or parameter adjustment without depending on the cloud.
- Compression and filtering: reducing the transmitted volume (temporal aggregation, feature extraction).
Typical hardware:
- Industrial IoT gateway: Raspberry Pi Compute Module 4, Orange Pi 5 or system-on-modules (SOM) like Toradex Verdin or Variscite i.MX8. Expect 100 to 500 euros depending on RAM and I/O.
- Fanless industrial PC: more robust (IP65, range from -20 C to +70 C) for harsh environments. Expect 500 to 2,000 euros.
- Workshop micro-data center: small x86 server in a cabinet, running Linux or Windows IoT Enterprise, for heavy workloads (multiple cameras, real-time AI inference).
Layer 3: the cloud (IoT platform and analytics)
The cloud remains essential for long-term storage, AI model training, multi-site dashboards and large-scale analysis. But in a well-designed edge architecture, it only receives preprocessed, filtered and aggregated data, often a small fraction of the raw volume.
What goes up to the cloud:
- aggregated performance indicators (KPIs);
- confirmed alerts and anomalies;
- condensed maintenance logs and histories;
- model updates (training in the cloud, deployment to the edge);
- remote configuration and orchestration.
Communication protocols: choosing the right building blocks
Interoperability is one of the main challenges of an industrial edge architecture: a factory accumulates equipment from different eras and different manufacturers, each with its preferred protocol.
MQTT, the de facto standard of IoT
MQTT (Message Queuing Telemetry Transport) has established itself at the edge layer for several reasons:
- Lightweight: fixed 2-byte header, suited to limited-bandwidth networks.
- Publish/subscribe: producers and consumers are decoupled; you add or remove a sensor without reconfiguration.
- Quality of service (QoS 0, 1, 2): trade-off between performance and reliability depending on the need.
- TLS encryption: generally on port 8883.
- Session persistence: resumption after interruption for sensors with intermittent connectivity.
In practice: an MQTT broker like Mosquitto or EMQX runs on the local gateway. Each sensor publishes to a topic (for example factory/line3/motor7/temperature) and consumers (local dashboard, alert module, cloud connector) subscribe to the topics that concern them. A Mosquitto broker on a Raspberry Pi 4 board absorbs several hundred messages per second without difficulty with local latency of a few milliseconds; nevertheless, measure performance on your own workload.
OPC UA, industrial interoperability
OPC Unified Architecture (OPC UA) is the reference in manufacturing industry. Unlike MQTT, a simple generic transport, OPC UA is a complete framework that offers:
- data modeling: rich description of equipment, variables, methods and events;
- automatic discovery: a client can browse the variable tree of a device without prior knowledge;
- built-in security: authentication, signing and encryption at the application level;
- access to histories: storage and retrieval of historical data.
When to prefer OPC UA over MQTT:
- when data must be richly described (metadata, units, quality);
- in a heterogeneous environment where equipment from multiple manufacturers speaks OPC UA natively (Siemens, Beckhoff, ABB, Schneider Electric);
- when automatic variable discovery matters (deployment without exhaustive documentation).
Limitation: OPC UA is heavier than MQTT (larger messages, session negotiation, certificates). It is not suited for very constrained battery-powered sensors and is used rather machine to machine, at the gateway or controller level. Note that the OPC UA specification also provides a publish/subscribe mode, which can rely on MQTT.
HTTP/2 and gRPC for the edge-to-cloud link
Between the local layer and the cloud, HTTP/2 and gRPC offer clear advantages over HTTP/1.1:
- Multiplexing: multiple simultaneous requests on a single TCP connection, without head-of-line blocking at the HTTP level.
- Header compression (HPACK): significant reduction of metadata volume.
- Bidirectional streams: with gRPC, the cloud can push configuration changes to the edge without periodic polling.
- gRPC efficiency: Protocol Buffers binary serialization, more compact than JSON, and automatic code generation from the
.protofile.
On streams of numerous small messages, gRPC is generally significantly faster and more network-efficient than HTTP/1.1 with JSON; the actual gap depends on the payload and must be measured.
Three typical use cases
The examples below describe typical architectures. The gains depend heavily on the context of each site.
Case 1: predictive maintenance on rotating equipment
Problem: a machining workshop suffers several hours of unplanned downtime each month on its motors and gearboxes.
Edge architecture:
- MEMS accelerometers (ADXL345, MPU-9250) are mounted on the bearings of critical motors and sample at 3.2 kHz;
- an ESP32-S3 microcontroller runs a TinyML model (Edge Impulse, FFT and classification) that detects vibratory anomalies in real time;
- the local gateway (Orange Pi 5) aggregates data from about thirty motors, performs finer spectral analysis (FFT on 4,096 points, envelope analysis) and generates trend alerts;
- only confirmed alerts and daily health indicators (RMS effective speed, crest factor, kurtosis) go up to the cloud.
Expected benefits: some failures are detected several days in advance, interventions are planned during scheduled shutdowns and the volume transmitted to the cloud becomes marginal. See also our guide on predictive maintenance with IoT.
Case 2: embedded visual quality control
Problem: a bottling line produces 12,000 bottles per hour. Inspection (labeling, capping, bottle fill level) is done by manual sampling, one bottle out of 200, and lets defects through.
Edge architecture:
- two industrial cameras (1,280 x 720 pixels, 60 frames per second) are placed on either side of the line;
- a fanless industrial PC (Intel Core i5, 16 GB RAM) runs a vision model (YOLOv8n quantized in INT8) with OpenCV and OpenVINO;
- inference takes on the order of 10 ms per image, well below the line cycle time;
- defective bottles are ejected by a digital output signal sent to the line PLC;
- only defect images are stored locally for analysis; a consolidated daily report goes up to the cloud.
Expected benefits: inspection of 100% of production without impact on throughput and fewer customer complaints. For model deployment on embedded hardware, see our article on edge AI in industry.
Case 3: multi-site energy management
Problem: an agri-food group with 12 sites wants to reduce its energy bill. Each site consumes between 500 kW and 2 MW, with highly variable load profiles.
Edge architecture:
- communicating energy meters on Modbus RTU over RS-485 (up to approximately 1,200 m of cable) are installed on each electrical panel;
- a gateway per site reads voltage, current, active and reactive power, and power factor every second;
- the gateway detects consumption anomalies (deviation from reference, abnormal peaks) and controls automatic load shedding of non-critical loads;
- data goes up to the cloud every 15 minutes in aggregated form (average, minimum, maximum, standard deviation), or 900 times fewer data points than a raw 1 Hz transmission.
Expected benefits: site-by-site visibility, rapid detection of drifts and reduction of subscribed power overruns thanks to local load shedding.
Edge, fog and cloud: clarifying the concepts
These three terms are often used interchangeably, but they designate distinct levels:
| Level | Location | Indicative latency | Data processed | Autonomy | Examples |
|---|---|---|---|---|---|
| Edge | On the device or in immediate proximity | < 10 ms | Raw (complete) | Total (offline) | Sensor, PLC, gateway, industrial PC |
| Fog | Factory local network | 10 to 50 ms | Locally aggregated | Partial | Local server, on-site Kubernetes cluster |
| Cloud | Remote data center | 50 to 500 ms | KPIs, alerts | Depends on connection | AWS, Azure, GCP, IoT platforms |
Fog computing sits between the edge and the cloud: it is a distributed computing layer at the local network scale, often shared between several buildings of the same factory or campus.
For most industrial projects, a two-level edge -> cloud architecture suffices. The fog layer only adds value in very large deployments: several hundred machines, fleets of mobile robots, coordination between buildings.
A progressive deployment strategy
To migrate to an edge architecture, we recommend the following approach:
- Audit of equipment and connectivity: inventory of machines, available protocols, local network status, latency, bandwidth.
- Choose a pilot scope: a line, a building or a critical process, to validate the architecture without risking a total production shutdown.
- Install the gateway on the pilot scope and connect to existing equipment (Modbus, OPC UA, analog signals).
- Set up local processing: filtering, aggregation and local decision algorithms.
- Filtered cloud connection: sending aggregated data to the IoT platform (dashboard, alerts, history).
- 4 to 6 week test phase: reliability, effective bandwidth reduction, autonomy in degraded mode (simulated connection loss).
- Industrialization: deployment across the entire fleet and centralized gateway management (OTA updates, supervision).
Common pitfall: wanting to process all data locally from the start. Begin with the use cases most sensitive to latency or most bandwidth-hungry (video, high-frequency vibrations) and let the cloud handle the rest. You can add local processing once the architecture is proven.
Challenges and points of vigilance
Security of edge deployments
Decentralizing computation also means decentralizing the attack surface: each gateway is a potential entry point.
- Strong authentication: an X.509 certificate per device, no shared key or hardcoded password.
- Secure updates: firmware and system image signing, OTA mechanism with integrity verification.
- Network isolation: dedicated VLAN for IoT devices, separation of administration traffic and production traffic.
- System hardening: disabling unnecessary services, restrictive firewall, periodic security audits.
- Encryption: TLS 1.3 for all communications, encrypted storage of sensitive data on the gateway.
These points are developed in our technical guide on industrial IoT network security.
Remote administration and updates
With tens or hundreds of gateways spread across multiple sites, manual management is not feasible:
- Centralized orchestration: a fleet management platform (Balena, Azure IoT Edge, Eclipse Kanto, for example) allows deploying, updating and monitoring gateways remotely.
- Containerization: running applications in lightweight containers simplifies deployment and facilitates rollback in case of problems.
- Supervision: each gateway must expose its health metrics (processor, memory, storage, temperature, uptime, connectivity).
Heterogeneity of the hardware fleet
In a factory, equipment does not have the same age or the same capabilities. An edge architecture must deal with:
- legacy sensors (4-20 mA, digital outputs, Modbus RTU) that require converters or additional I/O modules;
- PLCs from different manufacturers (Siemens, Allen-Bradley, Mitsubishi, Schneider Electric) with their proprietary protocols;
- CNC machine tools whose controller is inaccessible and can only be read via external signals.
Strategy: choose a gateway that accepts a wide range of interfaces (GPIO, I2C, SPI, RS-485, CAN bus, Ethernet) and can run a software driver per target protocol. Open source tools like Node-RED facilitate the integration of these protocols without heavy specific development.
Key takeaways
By bringing data processing closer to its collection point, edge computing provides responsiveness, service continuity and control of transmission costs. In the three cases presented (predictive maintenance, visual quality control, energy management), local processing is not an option: it is a technical prerequisite.
These principles also apply to simpler equipment. The IOTINNOV remote management device for compactors is one example: it reads the 24 V cabinet signals locally, stores alerts in memory in case of network loss, encrypts its exchanges in TLS and updates remotely (OTA), with the web platform providing history, CSV export and API.


