- Static configuration
- Evenly weighted distribution
- Lowest latency
When static allocation policy is assigned during the devices enrollment, then it gives the option to choose the IoT Hub & based on selected IoT hub devices get registered to the specific IoT hub.
The following flow will give an idea how it will work.
Evenly distributed policy registers the device on the IoT hub which has less utilization & load. Let’s say we have ten IoT devices and two linked IoT hubs, then five devices will be assigned to one IoT hub and five devices to another IoT hub based on how much available IoT hub is utilized.
The following process diagram will give a clear idea of an evenly distributed policy.
Lowest latency policy allows to allocate the device on the IoT hub which is near the device location. It means device automatically allocate to the closest IoT hub ((Datacenter) of the device location, which will make faster communication between devices and the IoT hub.
The following diagram shows how the lowest latency policy works.
I hope this article helped you to understand about the Azure device provisioning service IoT hub allocation policies. In the next article we will learn about the Azure event hub.