Azure IoT中心-保存遥测最佳实践 [英] Azure IoT Hub - Save telemetry best practice

查看:143
本文介绍了Azure IoT中心-保存遥测最佳实践的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究一种可以保存天气数据的物联网解决方案. 我已经用几天的时间在Google上搜索如何设置后端. 我将使用Azure IoT中心来处理通信,但是下一步就是问题.

I am working on a IoT solution that will save weather data. I have googled for some days now on how to set up the backend. I am going to use Azure IoT Hub for handling communication, but the next step is the problem.

我想将遥测存储到数据库中.这就是我感到困惑的地方. 一些示例说我应该使用Azure BLOB存储或Azure Table存储或Azure SQL.

I want to store the telemetry to a database. This is where I get confused. Some examples says that I should use Azure BLOB storage or Azure Table storage or Azure SQL.

经过几年的数据收集,我想开始创建数据报告.因此,存储需要善于处理大数据.

After some years of data collection I want to start creating reports of the data. So the storage needs to be good at working with big data.

我遇到的下一个问题是将接收D2C并将其存储到数据库的工作程序.所有Azure IoT示例均使用控制台应用程序,有些示例仅使用Azure流分析将事件移植到数据库.最佳做法是什么?它需要能够扩展并尝试使用最佳实践.

Next problem I am stuck on is the worker that will receive the D2C and store it to database. All Azure IoT examples use a console application and some use Azure Stream analytics just to port the event to a database. What is the best practice? It needs to be able to scale and try to use best practice.

提前谢谢!

推荐答案

您将在阅读 https://docs.microsoft.com/zh-cn/azure/iot-hub/iot-hub-devguide-endpoints

您还将查看时间序列见解"

You shall also look at `Time Series Insights'

https://azure.microsoft.com/zh-我们/服务/time-series-insights/

这是我的粗略草图.时间序列要求从Active Directory生成令牌,但是设置起来很容易.

Here is my rough sketch. Time series requires token to be generated from Active Directory, but it's easy to setup.

如上所示,

  • 设备将向IoT中心发送数据[您甚至可以在此处使用设备配置服务]
  • IOTHub支持多个端点.因此一端可以查看时间序列见解,而另一端可以访问CosmoDB之类的任何数据库.

  • Device will be sending data to IoT Hub [You can even use Device Provisioning Service here]
  • IOTHub support multiple endpoints. so one end can go to time series insights and one go to any database like CosmoDB.

注意:时间序列只能存储400天的数据,以后会删除它.

Note: Time series can store only 400 days of data, later it deletes it.

关于报告-时间序列包含大量报告组件,并且非常快.另外,您可以使用c#之类的编程语言来访问它.

Regarding reports - Time series has extensive components for report and it's very fast. Also, u can access it using programming language like c#.

重要说明:在设计任何云架构师之前,请研究数据的大小调整"因素.像,数据的频率和大小.基于此,我们可以选择Azure云中的资源.

Important Note: Before designing any cloud architect, please work on "Sizing" factor of the data. Like, frequency of data and size. Based on that we can select the resources in azure cloud.

请阅读 http://下载. microsoft.com/download/A/4/D/A4DAD253-BC21-41D3-B9D9-87D2AE6F0719/Microsoft_Azure_IoT_Reference_Architecture.pdf

这篇关于Azure IoT中心-保存遥测最佳实践的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆