purpose of Azure iot hub device-to-cloud partitions

自作多情 提交于 2019-12-23 07:16:24

问题


When creating a new Azure IOT Hub you are asked how many device-to-cloud partitions you need. You can select between 2-32 partitions for standard tiers.

I understand that the SKU and number of units determine the maximum daily quota of messages that you can send to IOT Hub. And that it is recommended to shard your devices into multiple IOT hubs to smooth traffic bursts. However, device-to-cloud partitions need clarification.

1>> What is the purpose of those device-to-cloud partitions under a single IOT hub?

2>> How are we supposed to take advantage of those IOT Hub device-to-cloud partitions? 

Thanks.


回答1:


1>> What is the purpose of those device-to-cloud partitions under a single IOT hub?

Partition property is setting for Event Hub-compatible messaging endpoint(messages/events) built in Azure IoT Hub. From here we can see "partitions" is a concept belongs to Event Hub.

Event Hubs is designed to allow a single partition reader per consumer group. A single partition within a consumer group cannot have more than 5 concurrent readers connected at any time. More partitions enables you to have more concurrent readers processing your data, improving your aggregate throughput.

Ref: Built-in endpoint: messages/events and How many partitions do I need?

2>> How are we supposed to take advantage of those IOT Hub device-to-cloud partitions?

Event Hubs has two primary models for event consumption: direct receivers and higher-level abstractions, such as EventProcessorHost. Direct receivers are responsible for their own coordination of access to partitions within a consumer group.

Ref:Event consumers.

More information about the partitioning model of Azure Event Hubs are here.



来源:https://stackoverflow.com/questions/43227112/purpose-of-azure-iot-hub-device-to-cloud-partitions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!