locked
IoT Hub partitions - performance implications ? RRS feed

  • Question

  • From what I understand, the iothub partitions messages internally by the device id, and the parition count setting for an IoT Hub is for Event Hub like thingy that is default end point. What are the consideration for turning this knob ?

    Is it the same as a nomral Event Hub ?  What is the delay that is caused by having 4 instead of 3 partitions, or 8 and etc. 

    Does having more IotHub units affect this ? 

    Thursday, June 29, 2017 1:14 PM

Answers

  • IoT Hub indeed uses an Event Hub under the hoods as it's default endpoint for D2C events.

    As for classic event Hub having more partitions allows for more readers, meaning faster reading through parallelization.

    Note that IoT Hub does put all messages for a specific device into the same partition, meaning that if you have only one device connected, it's useless having several partitions as all messages from that unique device  will be put in a single partition by IoT Hub.

    There is no specific delay added for adding more partitions

    Adding units doesn't affect partitioning at all as unit is only for setting billing limits and doesn't change the configuration of an IoT Hub instance (beyond changing the threshold limits).

    • Marked as answer by Shrulik Tuesday, July 11, 2017 1:48 PM
    Monday, July 10, 2017 5:37 PM

All replies

  • No one knows ? 
    Friday, July 7, 2017 2:24 PM
  • IoT Hub indeed uses an Event Hub under the hoods as it's default endpoint for D2C events.

    As for classic event Hub having more partitions allows for more readers, meaning faster reading through parallelization.

    Note that IoT Hub does put all messages for a specific device into the same partition, meaning that if you have only one device connected, it's useless having several partitions as all messages from that unique device  will be put in a single partition by IoT Hub.

    There is no specific delay added for adding more partitions

    Adding units doesn't affect partitioning at all as unit is only for setting billing limits and doesn't change the configuration of an IoT Hub instance (beyond changing the threshold limits).

    • Marked as answer by Shrulik Tuesday, July 11, 2017 1:48 PM
    Monday, July 10, 2017 5:37 PM
  • Thanks, good to know
    Tuesday, July 11, 2017 1:48 PM