Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Functions vs Azure Stream Analytics

I noticed that both Azure Functions and Azure Stream Analytics can take an input, modify or transform that input, and put it into an output.

When would I use one versus the other? Are there any general rules I can use to decide?

I tried looking at the pricing of each to guide me, but I'm having trouble discerning how my logic would affect the compute time cost of Functions versus the App service plan cost of Functions versus the streaming unit cost of Stream Analytics.

like image 453
Krzysztof Czelusniak Avatar asked Mar 02 '18 20:03

Krzysztof Czelusniak


1 Answers

Azure Stream Analytics is a real time analytics service which can "run massively parallel real-time analytics on multiple IoT or non-IoT streams of data" whereas Azure Function is a (serverless) service to host functions (little pieces of code) that can be used for e.g. event-driven applications.

General rule is always difficult since everything depends on your requirement, but I would say if you have to analyze a data stream, you should take a look at Azure Stream Analytics and if you want to implement something like a serverless event-driven or timer-based application, you should check Azure Function or Logic Apps.

like image 156
Martin Brandl Avatar answered Nov 15 '22 04:11

Martin Brandl