简体   繁体   English

Azure Stream Analytics的工作对于小数据而言昂贵吗?

[英]Azure Stream Analytics job expensive for small data?

In order to write sensor data from an IoT device to a SQL database in the cloud I use an Azure Streaming Analytics job. 为了将传感器数据从IoT设备写入云中的SQL数据库,我使用Azure流分析作业。 The SA job has an IoT Hub input and a SQL database output. SA作业具有IoT中心输入和SQL数据库输出。 The query is trivial; 查询很简单; it just sends all data through). 它只是通过发送所有数据)。 According to the MS price calculator, the cheapest way of accomplishing this (in western Europe) is around 75 euros per month (see screenshot). 根据MS价格计算器,最便宜的方式(在西欧)每月约75欧元(请参见屏幕截图)。

Actually, only 1 message per minute is send through the hub and the price is fixed per month (regardless of the amount of messages). 实际上,每分钟仅通过集线器发送1条消息,并且每月固定价格(与消息量无关)。 I am surprised by the price for such a trivial task on small data. 如此琐碎的小数据任务的价格令我感到惊讶。 Would there be a cheaper alternative for such low capacity needs? 对于如此低的容量需求,是否会有更便宜的选择? Perhaps an Azure function? 也许是Azure功能?

在此处输入图片说明

If you are not processing the data real-time then SA is not needed, you could just use an Event Hub to ingest your sensor data and forward it on. 如果您不实时处理数据,则不需要SA,您可以使用事件中心来获取传感器数据并继续转发。 There are several options to move data from the Event Hub to SQL. 有多种选项可将数据从事件中心移到SQL。 As you mentioned in your question, you could use an Azure Function or if you want a no-code solution, you could us a Logic App. 正如您在问题中提到的那样,您可以使用Azure函数,或者,如果您需要无代码解决方案,则可以使用Logic App。

https://docs.microsoft.com/en-us/azure/connectors/connectors-create-api-azure-event-hubs https://docs.microsoft.com/zh-cn/azure/connectors/connectors-create-api-azure-event-hubs

https://docs.microsoft.com/en-us/azure/connectors/connectors-create-api-sqlazure https://docs.microsoft.com/zh-cn/azure/connectors/connectors-create-api-sqlazure

In addition to Ken's answer, the "cold path" can be your solution, when the telemetry data are stored in the blob storage by Azure IoT Hub every 720 seconds (such as a maximum batch frequency). 除了Ken的答案之外,当遥测数据每720秒(例如最大批处理频率)由Azure IoT中心存储在Blob存储中时,“冷路径”可以作为您的解决方案。

Using the Azure Event Grid on the blob storage, it will trigger an EventGridTrigger subscriber when we can handle starting a streaming process for this batch (or for a group of batches within an one hour). 使用blob存储上的Azure事件网格,当我们可以处理启动此批处理(或在一小时内一组批处理)的流处理时,它将触发EventGridTrigger订阅者。 After this batch process is done, the ASA job can be stopped. 完成此批处理过程后,可以停止ASA作业。 Note, that the ASA job is billed based on the active processing time (that's the time between the Start/Stop) which your cost using an ASA job can be significantly dropped down. 请注意,ASA作业是根据活动处理时间(即开始/停止之间的时间)计费的,使用ASA作业的成本可以大大降低。

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

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