Message distribution method and device
A message distribution and message technology, applied in the field of information processing, can solve the problems of business event message backlog, low processing capacity, and reduce the timeliness of business event message processing, so as to achieve the effect of improving timeliness and reducing backlog
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0041] According to the first embodiment of the present invention, a method for distributing messages is provided, and the timeliness of message processing can be improved by distributing messages through the method for distributing messages provided by the first embodiment.
[0042] figure 2 A schematic flowchart corresponding to the message distribution method provided by the first embodiment is given, as shown in figure 2 As shown, the message distribution method mainly includes the following steps:
[0043] Step 201. Determine the number of messages stored in each message queue.
[0044] Step 202 , according to the number of messages stored in each message queue, determine the respective weight values corresponding to each message queue, where the weight value is used to indicate the number of messages that the message queue can receive continuously.
[0045] Step 203: Distribute messages to each message queue according to the weight values corresponding to each me...
Embodiment 2
[0116] Embodiment 2 of the present invention provides a specific embodiment of dynamically scheduling application servers according to the weight values of message queues after the weight values of message queues are determined according to the technical solution provided in Embodiment 1 above.
[0117] exist figure 1 In the message processing system shown, the application server group 104 is mainly used to obtain business event messages from the message queues included in the message middleware 103 for processing, and each service server included in the application server group 104 is configured with a message The corresponding relationship of the message queue included in the middleware, according to the corresponding relationship, the application server obtains the business event message from the corresponding message queue for processing.
[0118] In the technical solution provided by Embodiment 2 of the present invention, the weight values corresponding to each mess...
Embodiment 3
[0133] Embodiment 3 of the present invention provides a detailed process of implementing message distribution in a specific application scenario in Embodiment 1 above.
[0134] Specifically, the message distribution method provided by Embodiment 1 of the present invention can be applied to such as figure 1 The message processing system shown, and on this basis, the system is improved, the improved system is as follows Figure 10 shown in figure 1 On the basis of the system shown, a message queue monitoring module and a weight determination module are added, and the processing modules in the first front-end processor and the third front-end processor can be reused to improve the existing message distribution function of the processing module. Wherein, the message queue monitoring module, the weight determination module and the function-improved distribution module can constitute a message distribution device.
[0135] Specifically, the message queue monitoring module is mainl...
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