Message processing method and system, message destination end device and distributed message system

A message processing and terminal device technology, applied in the field of information processing, can solve the problems of repeated consumption message loss, abnormal prominence, exceeding the acceptable range, etc., and achieve the effect of improving efficiency, removing miscalculation rate, and improving accuracy rate

Active Publication Date: 2014-10-08
SHENZHEN TENCENT COMP SYST CO LTD
View PDF2 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In the process of realizing the present invention, the inventor found that the prior art has at least the following problems: in the prior art, the Bloom Filter scheme is usually used to deduplicate the received message at the Broker side, but the defect of the Bloom Filter is in the middle of the message In this scene, the files will be enlarged and appear extremely prominent
Because Bloom Filter has a serious problem - miscalculation rate, the miscalculation rate is proportional to the number of elements, and the amount of messages stored in the distributed message middleware is on the order of TB, the miscalculation rate will exceed the acceptable range, resulting in message low processing efficiency
Or, in the process of consuming messages on the consumer side, if the process crashes before the processing of step b) or c) is not successfully completed, the calculation result and the position of the message to be read will be in an inconsistent state, resulting in repeated consumption of messages when processing is resumed or message loss, resulting in inefficient message processing

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
  • Message processing method and system, message destination end device and distributed message system
  • Message processing method and system, message destination end device and distributed message system
  • Message processing method and system, message destination end device and distributed message system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0041] In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0042] figure 1 It is a flowchart of a message processing method provided by an embodiment of the present invention. Such as figure 1 As shown, the message processing method of this embodiment may specifically include the following steps:

[0043] 100. The Producer generates a message identifier for the message group to be sent;

[0044] In this embodiment, each message group may include multiple messages, or may only include one message. The message identifier in this embodiment is used to uniquely identify the message group. The message identifier may be called a message key. When each message group includes multiple messages, each message in the message group is relatively fixed.

[0045] 101. The Producer sends the message id...

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 message processing method and system, a message destination end device and a distributed message system. The method comprises the steps that Producer generates a message identifier for a message group to be sent, wherein the message identifier is used for uniquely identifying the message group; the message identifier and the message group are sent to Broker; Broker receives and stores the message identifier and the message group, wherein the message identifier and the message group are sent by Producer; when Producer determines that the message group needs to be sent again, the message identifier of the message group is acquired from the generated message identifier; the message identifier and the message group are sent to Broke; and when Broker determines that the message group corresponding to the message identifier is received again according to the received message identifier, deduplication is carried out on the received message group this time. According to the technical scheme of the invention, miscalculation rate can be removed on a Broker end, which improves the efficiency of message processing.

Description

technical field [0001] The invention relates to the technical field of information processing, in particular to a message processing method and system, a message destination device and a distributed message system. Background technique [0002] In the application of the distributed message system, the message issued by the message source device (Producer) is forwarded to the message destination device (Consumer) by the message broker device (Broker), during which the flow of messages reaches a large amount, because it is also distributed The complexity of the system is high, and the probability of message duplication or loss is magnified. Therefore, in the application of distributed message systems, it is particularly important to deduplicate messages and prevent message loss. [0003] In order to improve the efficiency of message transmission, the distributed message system needs to provide a clear message distribution guarantee level during the message delivery process. T...

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): H04L29/08
Inventor 董宇
Owner SHENZHEN TENCENT COMP SYST 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