SignalK / signalk-server-java

DEPRECATED - see https://github.com/SignalK/signalk-java
Apache License 2.0
6 stars 9 forks source link

Alarms should be set by events not periodic process #23

Open rob42 opened 8 years ago

rob42 commented 8 years ago

The alarms processing (set/unset) is currently done by a process that runs every 1 sec. It would be more efficient and more immediate if it was event driven, so every data change is compared to alarm conditions at save time.

Since the data change creates an event on the event bus it should be easy to create a queue that the alarm processor handles as a background task.