Message processing method and system
A message processing and message technology, applied in the field of data processing, can solve problems such as system blocking and message backlog, and achieve the effect of avoiding system blocking, avoiding message squeeze, and improving processing efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0040]figure 1 It schematically shows a flowchart of a message processing method according to Embodiment 1 of the present application. It can be understood that the embodiments of the present application may be executed in the computer device 12. Such asfigure 2 As shown, the message processing method may include steps S100 to S104, where:
[0041]Step S100: Store multiple queue nodes corresponding to multiple messages in the target message queue, and the multiple queue nodes include multiple compressible nodes.
[0042]As an example, the target message queue is a first-in first-out queue for consumers to read and consume in the order of the queue.
[0043]As an example, the multiple queue nodes may include two types of nodes, where one type of node is an incompressible node (NormalNode), and the other type of node is a compressible node (MergeNode). That is, the target message queue may include multiple incompressible nodes and multiple compressible nodes, or multiple compressible nodes.
[00...
Embodiment 2
[0061]This embodiment is to provide an intelligent automatic compression scheme, which can monitor the message queue in real time to intelligently determine whether to compress, thereby reducing message accumulation in time, or restoring full consumption, and thereby achieving a balance between consumption processing efficiency and processing volume.
[0062]Such asFigure 6 As shown, the message processing method may include steps S600 to S604, where:
[0063]In step S600, a plurality of queue nodes are stored in the target message queue, and the plurality of queue nodes includes a plurality of compressible nodes.
[0064]Step S602: Determine the working mode of the target message queue, so as to determine whether to compress the target message queue according to the working mode.
[0065]In this embodiment, at least two working modes are provided for the target consumption queue: normal mode and compressed mode.
[0066]In the normal mode, the target message queue is not compressed.
[0067]The comp...
Embodiment 3
[0092]Picture 11 Schematically shows a block diagram of a message processing system according to the third embodiment of the present application. The message processing system can be divided into one or more program modules, one or more program modules are stored in a storage medium, and are composed of one or more program modules. Executed by multiple processors to complete the embodiments of the present application. The program module referred to in the embodiment of the present application refers to a series of computer program instruction segments capable of completing specific functions. The following description will specifically introduce the function of each program module in this embodiment.
[0093]Such asPicture 9 As shown, the message processing system 1100 may include a storage module 1110, a compression module 1120, and a consumption module 1130, where:
[0094]The storage module 1110 is configured to store multiple queue nodes corresponding to multiple messages through the ...
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