Message queue-based message distribution method, access control system and storage medium
A technology of message distribution and message queuing, applied in transmission systems, inter-program communication, instruments, etc., can solve problems such as eye fatigue, users cannot view event information, and many event messages, so as to ensure real-time push, improve viewing experience, The effect of improving management efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0037] This embodiment provides a method for distributing messages based on message queues, such as figure 1 shown, including:
[0038] Step S1: Receive the event message pushed by the website in real time and store it in the event service queue, and format the event message;
[0039] Step S2: read the event message from the event service queue, and distribute the event message to one or more clients subscribing to the same event service queue for display according to the preset distribution rule; the distribution rule is based on the event Push frequency, event classification and / or event prioritization generation.
[0040] In this embodiment, one or more devices are networked in advance, and after the devices are networked, the device status information of each device is collected through a website, that is, the website is used to send a request to obtain the device status to all networked devices, and each device receives the request Afterwards, the device status informat...
Embodiment 2
[0047] This embodiment provides an access control system. The access control system implements the message distribution method based on the message queue described in Embodiment 1, and can distribute high-priority event information such as alarm events and alarm elimination events to corresponding clients for further processing. show. Such as figure 2 , image 3 As shown, the access control system of this embodiment mainly includes a hardware layer, a service layer and a client layer; the hardware layer is equivalent to hardware devices such as smart door locks that can trigger alarms in the access control system, and is used for storing and pushing event messages in real time ; The service layer is used to store the event message pushed by the hardware layer into the event service queue, and format it, and then format the message read from the event service queue according to the preset distribution rule. The processed event messages are distributed to designated clients. ...
Embodiment 3
[0049] This embodiment provides an electronic device, which includes a processor, a memory, and a computer program stored on the memory and operable on the processor. When the processor executes the computer program, the first embodiment is implemented. The method for distributing messages based on message queues; in addition, this embodiment also provides a storage medium on which a computer program is stored, and when the computer program is executed, the above method for distributing messages based on message queues is implemented.
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


