I have a device which can be configured to send some environmental data (temperature, humidity, air pressure, luminosity, ...). The supported methods for the device gateway are MQTT, UDP, WebHook and the data format can be CSV or Json.
Assume that there are 30 (or more) devices in a building and they will send the data every second to the Azure cloud. Then, I want to do some analytics on the cloud.
I want to know which method has the best performance?
I have tried Azure Functions using WebHook: it charges for every request.
But, I think the best one may be Azure IoT Hub sending MQTT data.
You can use azure function EventHub Trigger with connection string to Azure IoT hub: https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-event-hubs
https://www.10thmagnitude.com/tech-blog/step-step-guide-creating-functions-within-azures-iot-hub/