Could you give me more Infos about Stream Analytics and Event Grid? RRS feed

  • Question

  • Hi everyone.

    I need some tips on which service should I use.

    Right now I've got a Hub IoT with some simulated Devices sending telemetry to the hub.

    This data needs to be filtered and sent to Azure Functions (e.g. I need to activate a function only when the temperature goes over 25 degrees).

    I saw that this could be done in two ways:

    1- Creating an Event Grid in the middle between Hub IoT and Azure function, selecting Device Telemetry as Event.

    2- Creating a Stream Analytics and Event hub in the middle between Hub IoT and Azure function. (IoT hub ->SA->Event hub -> Azure Function)

    Both solutions work but I don't get why should I pick one instead of the other.

    Monday, December 9, 2019 3:53 PM

All replies

  • You use Stream Analytics if you want to do stateful temportal analytics on the data, and run anlytics or alerts and such now or in the future. Also, you should Stream Analytics if you care about no data loss, exactly once processing and such. Also, you can write directly from Stream Analytics to Azure functions. Do not see a reason why you would need Event Hubs. 
    Tuesday, December 10, 2019 3:09 AM