处理物联网设备生成的基于实时规则的事件的方法是什么?

what would be the approaches to handle real time rule based events generated by iot devices?

我正在做一个物联网项目,我需要根据用户已经定义的规则向用户发送警报,比如如果温度值符合特定条件,然后向用户发送警报,并且他们有多个条件。 我通过使用以下方法实现了在条件匹配时向用户发送警报 步骤

1)store threshold values,condition of a device in mysql.
2)when the device data comes to server i checked the current value with given condition with threshold value and send the alert.
3)And also their are multiple conditions associated with devices so i need to check each and every condition.

所以我需要的是我可以在我的项目中使用的任何技术。

我觉得你可以考虑使用Azure IoT Hub and Azure Function。 您可以在 Azure 数据库中为 MySQL 或其他 MySQL 主机存储设备的阈值和条件。

Azure IoT Hub 支持从设备到云以及从云到设备的通信。我们可以使用 Azure IoT Hub 来监控 telemetry data. Azure Function can process the data from Azure IoT Hub. An article 这里展示了如何从您的设备或传感器捕获数据,对这些数据执行聚合、过滤或其他一些自定义处理,并将其存储在数据库中。这是您的场景的典型教程。

我不确定这是否对您来说是更好的解决方案,希望对您有所帮助。