The invention provides an
Internet of Things event center distributed alarm
processing method based on Redis
Stream, belongs to the field of
Internet of Things (IoT)
data processing, and realizes
millisecond-level event
processing by utilizing the high-performance streaming consumption capability of the Redis
Stream and combining a distributed
rule matching engine and a cross-device data dynamic association mechanism. Comprising the following steps that:
Internet of Things terminal equipment writes data into Redis
Stream according to a
stream: Model: DeviceId mode to form an
independent data stream; an event
consumer reads the data from the
stream, performs matching based on a preloaded rule, and supports cross-device linkage calculation through a
metadata relation table and an
SQL template; real-time duplicate removal and full-life-cycle management are carried out on alarm events through a dual convergence
mechanism based on a
database and a cache, and repeated alarms are eliminated; and finally, through multi-channel push and push state write-back, a closed-loop alarm
system is constructed. The
system adopts a layered architecture, comprises an event acquisition layer, a
rule processing layer, an
event management layer, a push
service layer and an
asynchronous processing layer, has the characteristics of high
throughput, strong orderliness and high reliability, and can effectively improve the alarm
processing efficiency and accuracy in a large-scale Internet of Things scene.