High-availability real-time message distribution method and device
A real-time message and high-availability technology, applied in the transmission system, electrical components, etc., can solve the problem that the message distribution method cannot solve the reliability of the real-time data message system, so as to improve the message release rate, ensure availability, and improve system reliability. Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0054] A high-availability real-time message distribution method, comprising:
[0055] In the process of real-time message distribution, the message popularity is calculated according to the message subscription frequency;
[0056] Divide each message into different cache queues according to the message hotness and perform adaptive copy synchronization to release copies of messages whose hotness is lower than the preset value;
[0057] The weighted queue selector assigns weights to each cache queue according to the message hotness, and distributes messages at different frequencies according to the mapping relationship between the weights and the message publishing frequency, and the message hotness is proportional to the weight;
[0058] The message sending thread reads the message sent by the weighted queue selector and sends it to the message subscriber through the message broker. During the process of reading the message by the message sending thread, if there is a problem ...
Embodiment 2
[0083] Based on Embodiment 1, Embodiment 2 of the present invention further provides a high-availability real-time message distribution device, the device comprising:
[0084] The message hotness calculation module is used to calculate the message hotness according to the frequency of message subscriptions during the real-time message distribution process;
[0085] The adaptive copy synchronization module is used to divide each message into different cache queues according to the message hotness, perform adaptive copy synchronization, and release copies of messages whose hotness is lower than the preset value;
[0086] The message distribution module is used for the weighted queue selector to assign weights to each cache queue according to the message hotness and distribute the messages according to different frequencies according to the mapping relationship between the weights and the message publishing frequency. The size of the message hotness is related to the weight. prop...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com