简体   繁体   English

在数据库中处理和存储Azure IoT中心消息

[英]Process and store Azure IoT Hub messages in a database

I have started learning about the possibilities brought by Microsoft Azure IoT Hub. 我已经开始了解Microsoft Azure IoT中心带来的可能性。 It seems really promising, but I see a major flaw in the inability to process the messages passing through the Hub. 看起来确实很有希望,但是我看到无法处理通过集线器的消息的一个重大缺陷。 I would like to intercept the messages sent to the Hub, do some business logic, store them in Azure database and then send them to their recipients. 我想拦截发送到集线器的消息,执行一些业务逻辑,将其存储在Azure数据库中,然后将其发送给其收件人。

However, I cannot find any evidence or guides, if and how this is possible. 但是,我无法找到任何证据或指南,是否可行以及如何实现。 I have considered using SignalR (with which I have quite positive experience), but not many IoT devices support SignalR client. 我已经考虑过使用SignalR(我对此有非常积极的经验),但是并没有很多IoT设备支持SignalR客户端。 So, is there a reliable way (either regular, or workaround) to process the IoT Hub messages and store them in Azure database? 因此,是否存在一种可靠的方式(常规方式或解决方法)来处理IoT中心消息并将其存储在Azure数据库中?

You need to process the messages using Stream Analytics. 您需要使用Stream Analytics处理消息。 It's a SQL like language that let you query the message stream and send the results to various outputs like SQL Database, DocumentDB, PowerBI, Blob Storage. 这是一种类似于SQL的语言,可让您查询消息流并将结果发送到各种输出,例如SQL数据库,DocumentDB,PowerBI,Blob存储。

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

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