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

Pending Publication Date: 2022-07-26
HEFEI HRG XUANYUAN INTELLIGENT TECH CO LTD
View PDF1 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The technical problem to be solved by the present invention is that the prior art message distribution method cannot solve the problems of real-time data and reliability of the message system

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • High-availability real-time message distribution method and device
  • High-availability real-time message distribution method and device

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a high-availability real-time message distribution method and device. The method comprises the following steps: calculating message popularity according to message subscription frequency in a message real-time distribution process; dividing the messages into different cache queues according to the popularity of the messages, performing self-adaptive copy synchronization, and releasing copies of the messages of which the popularity is lower than a preset value; the queue selector with the weight distributes the weight to each cache queue according to the popularity of the message and distributes the message according to different frequencies according to the mapping relation between the weight and the message issuing frequency; a message sending thread reads the message sent by the queue selector with the weight and sends the message to a message subscriber through a message agent; the method has the advantages of high real-time performance and reliability while working at a high speed.

Description

technical field [0001] The present invention relates to the field of message distribution, and more particularly to a high-availability real-time message distribution method and device. Background technique [0002] With the rapid development of the Internet, big data real-time message publishing and subscription frameworks and computing frameworks are widely used in real-time monitoring, real-time recommendation, real-time trading and other systems. In order to obtain and consume data streams in real time, real-time publish-subscribe messaging systems have been widely used, but with the exponential growth of the number of users, the real-time data and the reliability of the messaging system face huge challenges. The current mainstream message system mainly realizes the real-time distribution of data through message queues, and its reliability is mainly guaranteed by data backup and data consistency. The main reason for the inconsistency of the current message queue data is...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L67/1095H04L67/5682H04L67/55
CPCH04L67/1095
Inventor 夏科睿张韬庚彭超马姓张成林
Owner HEFEI HRG XUANYUAN INTELLIGENT TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products