Episode Details

Back to Episodes
IoT Hub vs Event Hubs — Why Most Manufacturers Pick the Wrong Service

IoT Hub vs Event Hubs — Why Most Manufacturers Pick the Wrong Service

Season 4 Published 3 days, 12 hours ago
Description
1. THE SHOP FLOOR SYMPTOM & CORE CHALLENGETeams frequently send plant telemetry into Azure using whatever service sounds right in initial workshops, only to discover months later that the data path cannot support actual plant operations. This often results in multiple dashboards showing conflicting values (such as 5-minute averages compared against maximum values or alarms) derived from copies of the same signal. Ultimately, this technical disconnect creates an issue of trust rather than a simple software bug. The root mistake lies in treating all incoming machine data as generic telemetry instead of separating device control, configuration state, commands, and stream processing.

2. CLASSIFYING FACTORY TRAFFICBefore selecting Azure services, traffic must be categorized by name, direction, and ownership to ensure proper handling.


  • Events represent facts tied to a specific point in time, detailing what happened and when, such as a completed press cycle or a vibration reading crossing a limit. These are append-only records that should not be edited downstream.
  • Commands are requests telling a device or gateway to perform an action with specific intent, such as collecting diagnostics or testing a connection. They carry execution responsibility and must respect local programmable logic controller (PLC) and safety boundaries.
  • State reflects the current known condition of a device, like its software version or active recipe mapping, rather than its complete chronological history. State is typically managed via desired and reported properties.
  • Business messages involve operational work that must happen and be tracked, including quality holds and maintenance requests. These should never be mixed directly into raw sensor event pipelines.
3. MENTAL MODEL: IDENTITY GATE VS. DATA HIGHWAYAzure IoT Hub acts as the controlled gate, focusing primarily on device relationships and life cycles through an identity registry, authentication, and enabled or disabled status. This allows security teams to isolate or disable a single compromised or suspect gateway—such as a line 4 gateway—during an incident without shutting down the entire plant's telemetry path. Conversely, Azure Event Hubs serves as the data highway, focusing entirely on stream processing and high-volume movement for many independent readers. Event Hubs does not manage device lifecycles, firmware, or desired configurations; its primary job is keeping traffic moving efficiently through partitions and consumer groups.

4. DEVICE MANAGEMENT & SECURITYAuthentication options depend heavily on hardware capabilities and security architecture. Symmetric keys using SAS tokens are well-suited for constrained hardware and gateways, but they require secure hardware storage to prevent key theft. Alternatively, X.509 certificates provide cleaner chains via a trusted Certificate Authority for larger fleets, though they demand robust rotation and lifecycle management. The device lifecycle follows an enrollment, change, disable, and replace pattern, ensuring a replacement hardware unit links cleanly to its operational role and cloud identity without breaking downstream pipelines or creating phantom assets. Furthermore, device twins utilize desired and reported states for configuration management and health status, though high-frequency telemetry should never be stored within device twins.

5. STREAM PROCESSING & ROUTING MECHANICSPartitions divide streams into ordered lanes where ordering guarantees apply strictly within a single partition, typically partitioned by machine, line, or gateway ID according to business logic. Consumer groups allow multiple downstream systems—such as OEE calculators, condition monitoring tools, and data lake ingestion services—to read the same stream independently without competing for read positions. Stream retention provides a working window for short-term recovery, fault tolerance, and
Listen Now

Love PodBriefly?

If you like Podbriefly.com, please consider donating to support the ongoing development.

Support Us