An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
Hi Emilio,
Yes, the recommendation still applies without qualification, even though an implementation of the IoT Hub partitioning algorithm is publicly available.
While the PerfectHash implementation in the Azure IoT SDK shows how partitions are currently calculated, it should be considered an implementation detail, not a contractual guarantee. Microsoft does not guarantee that the partitioning algorithm, partition count, or partition-to-resource mapping will remain unchanged over time.
In particular:
The number of partitions and their ranges may change during Microsoft-initiated failovers or manual IoT Hub failovers.
Relying on a specific partitioning behavior can lead to missed data or partial reads if the partition layout changes.
The public SDK implementation reflects the current behavior but is not part of the documented service contract.
For these reasons, the documented guidance to list blobs/files and iterate over them remains the safest and recommended approach. This ensures that all data is read reliably without making assumptions about partition stability.
In short, even with access to the algorithm, applications should treat partitions as opaque and mutable and follow the official documentation to ensure correctness and resilience.
Hope this helps.