Does Microsoft Azure IoT Hub support data?

I just started learning Azure IoT, and it is quite interesting. Am I confused that the IoT Hub is storing data somewhere?

Suppose I switch from room temperature to an IoT hub and want to store it in a database for future use. How is this possible?

I clearly understand how the device from the cloud and the cloud to the device works with the IoT hub.

+5
source share
3 answers

The IoT Hub provides the device with cloud messaging through the event hub endpoint. Concentrations of events have a retention time expressed in days. This is a data stream that the read client could reread more time, because the cursor is on the client side (and not on the server side, like queues and threads). With an IoT hub, the default associated storage time is 1 day, but you can change it.

If you want to store received messages from the device, you need the client to view the endpoint of the Event Hubs (for example, using the Processor Processor node), which has business logic for processing messages and storing them in a database for example.

Of course, you can use a different decoupling layer so that the client reads from event concentrators and stores messages in queues. Then you have another client, which at its own pace reads from the queues and stores in the database. This way you have the fast path event nodes.

+7
source

This is pretty much used for all IoT scenarios.

Step 1: High-level data processing through the Event Hub.

Step 2: Create and use a stream processing engine (Stream Analytics or HDInsight / Storm). You can run conditions (SQL queries) to filter and store relevant data in cold or hot storage for further analysis.

Step 3. The cold path analysis store may be an Azure BLOB. Stream Analytics can be configured directly to write data to it. Cold can contain all other data that does not require queries and will be cheap.

Step 4: Processing for Hot Way Analytics. This is data for which queries are more often used. Or data in which you need to analyze in real time. As in your case, checking the temperature is out of the threshold! need an urgent trigger!

Let me know if you encounter any problems setting up your Stream analytics job! :)

+4
source

If you look at the preconfigured IoT Suite remote monitoring solution ( https://azure.microsoft.com/documentation/articles/iot-suite-remote-monitoring-sample-walkthrough/ ), you will see that it stores telemetry in the blob store and maintain device status information in DocumentDb. This pre-configured solution gives you a working illustration of the points made in previous answers.

+1
source

Source: https://habr.com/ru/post/1233334/


All Articles