简体   繁体   English

Steam Analytics的非天蓝色输入/源选项

[英]Non-Azure input/source options for Steam Analytics

Does Steam Analytics support input sources other than products in the Azure family? Steam Analytics是否支持Azure系列产品以外的输入源?

For example, can I setup a REST endpoint and send events this way? 例如,我可以设置REST端点并以此方式发送事件吗? Are there client libraries for node.js? 是否有用于node.js的客户端库?

Documentation is somewhat scant in this regard; 在这方面文件很少。 I wanted to check here before assuming no on both fronts. 我想先检查一下这里,然后再假设在两个方面都没有

I believe the answer is no Azure Stream Analytics does not currently support non Azure sources. 我相信答案是否定的。AzureStream Analytics当前不支持非Azure来源。

One recommended approach is to write to Azure Event Hub then let Azure Stream Analytics read from there. 一种推荐的方法是写入Azure Event Hub,然后从那里读取Azure Stream Analytics。

You could write to an event hub in Node.JS: http://hypernephelist.com/2014/09/16/sending-data-to-azure-event-hubs-from-nodejs.html 您可以在Node.JS中写入事件中心: http ://hypernephelist.com/2014/09/16/sending-data-to-azure-event-hubs-from-nodejs.html

Revise for my old answer. 修改我的旧答案。

As @PanagiotisKanavos said, Azure Stream Analytics (ASA) is just the processing service engine, not the ingestion endpoint, that doesn't need to have a non-azure input source as EventHub do and that how to feed ASA with data to it. 正如@PanagiotisKanavos所说,Azure流分析(ASA)只是处理服务引擎,而不是摄取终结点,它不需要EventHub那样的非Azure输入源,也不需要如何向ASA提供数据。

EventHub can be used by ASA, has a variety of libraries that work on tons of different machines, form factors etc, and can run on any OS and many frameworks. EventHub可以由ASA使用,具有各种可在大量不同机器,形状因数等上工作的库,并且可以在任何OS和许多框架上运行。 Worst case, simple HTTP works as well, AMQP is not mandatory but definitely ideal in terms of performance. 最坏的情况是,简单的HTTP也会起作用,AMQP不是强制性的,但绝对是性能的理想选择。

The correct route is PRODUCER -> EventHub -> ASA or PRODUCER -> STORAGE -> ASA . 正确的路由是PRODUCER -> EventHub -> ASAPRODUCER -> STORAGE -> ASA PRODUCER -> EventHub -> ASA PRODUCER -> STORAGE -> ASA So if there is a library that supports storage on the device that they want, it can work as well, but EventHub is obviously a better choice. 因此,如果有一个库支持他们想要的设备上的存储,它也可以工作,但是EventHub显然是一个更好的选择。

Thanks a lot for @PanagiotisKanavos help. 非常感谢@PanagiotisKanavos的帮助。

Some circumstantial evidence below seems to prove that Azure not suppport non Azure Service as input for Stream Analytics. 下面的一些间接证据似乎证明Azure不会支持非Azure服务作为Stream Analytics的输入。

  1. From the REST API Create Input of Stream Analytics https://msdn.microsoft.com/en-us/library/azure/dn835010.aspx , there are only three data sources that include Event Hub , Blob Storgae & IoT Hub . 从流分析的REST API Create Input https://msdn.microsoft.com/zh-cn/library/azure/dn835010.aspx ,只有三个数据源,包括Event HubBlob StorgaeIoT Hub

  2. Screenshots from Azure old & new portal for add input. Azure旧旧和新门户的屏幕快照,用于添加输入。

Fig 1. The input options on Azure old portal (Step 1) 图1. Azure旧门户上的输入选项(步骤1) 在此处输入图片说明

Fig 2. The options for Data stream (Step 2) 图2.数据流的选项(步骤2) 在此处输入图片说明

Fig 3. The option for Reference data (Step 2) 图3.参考数据选项(步骤2) 在此处输入图片说明

Fig 4. The input options on Azure new portal 图4. Azure新门户上的输入选项 在此处输入图片说明

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

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