Message routing dynamically adjusts how data flows based on routing rules. Message routing allows you to route messages that meets the specified filtering conditions from the source to destination. You can use message routing to implement flexible control over message routes and improve data security.

Data is transferred among devices, Function Compute-based edge applications, and IoT Hub based on message routing. Data can be transferred by using various message routes.

The supported message routes are described as follows:
  • From devices to Function Compute-based edge applications
  • From devices to IoT Hub
  • From Function Compute-based edge applications to other Function Compute-based edge applications
  • From Function Compute-based edge applications to IoT Hub
  • From IoT Hub to Function Compute-based edge applications
The quality of service (QoS) metric indicates the service level of message routes and measures the overall performance of the message routing service. The previous eight message routes support QoS level 0. The message routes that use IoT Hub as the destination support QoS level 0 and QoS level 1.
Note The QoS levels are described as follows: QoS level 0 indicates that a message is either not transferred or transferred only once. QoS level 1 indicates that a message is transferred at least once. QoS level 2 indicates that a message is transferred only once. All the message routes will support QoS level 1 and QoS level 2.
Figure 1. Message routing
Message routing