Hello @Anurag Shelar ,
So multiple types of messages arrive at the IoT Hub and you want to split messages using routing.
There are two main solutions:
- Routing on the IoT Hub
- Routing on Azure Stream analytics
Regarding Routing on the IoT Hub, I prefer to do this in a non-functional way. You can add message routes using the content of desired properties but I like to keep it simple and only split on tags, desired properties or the application properties send with the message as context of why the message is sent.
Azure Stream Analytics is great for splitting, and joining, messages based on the content.
In ASA, a split between multiple messages can be as simple as testing for a JSON element only existing in one of the messages.
Check out the ASA query language and IoT Hub routing.