简体   繁体   English

物联网集线器仅将消息路由到事件中心的一个分区

[英]IoT Hub Routing Messages to Only One Partition of Event Hub

I have a data pipeline set up in Azure where I send messages to an IoTHub which then routes those messages to an EventHub. 我在Azure中设置了一个数据管道,我将消息发送到IoTHub,然后将这些消息路由到EventHub。 When I read from the EventHub using the standard EventProcessorHost method, I find that only one of the partitions is being read from. 当我使用标准的EventProcessorHost方法从EventHub读取时,我发现只读取了一个分区。 I assume that only one partition is actually having messages routed to it. 我假设只有一个分区实际上有消息路由到它。 I have not specified a partition key anywhere and expect that the messages would be routed to all of the partitions of the event hub using round robin (as per the documentation at https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-programming-guide ). 我没有在任何地方指定分区键,并且期望使用循环法将消息路由到事件中心的所有分区(根据https://docs.microsoft.com/en-us/azure/上的文档) event-hubs / event-hubs-programming-guide )。

How can I configure my setup to route messages to all partitions of the event hub? 如何配置我的设置以将消息路由到事件中心的所有分区?

Like I said in the comment: 就像我在评论中所说:

Is it possible you are only receiving data from one device? 您是否有可能只从一台设备接收数据? IoT Hub does automatic partitioning based on the deviceId, so the partition affinity might be the cause. IoT Hub基于deviceId执行自动分区,因此分区关联可能是原因。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM