Message queue-based data processing method and device, computer equipment and medium
A message queue and data processing technology, applied in the field of data processing based on message queue, can solve the problems of data synchronization link delay, processing progress delay, data backlog, etc., to avoid redundancy, avoid thread allocation, and realize data backlog effect of the problem
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0028] Embodiment 1 of the present application provides a data processing method based on message queues. Through this method, during the data processing process, it can be detected in time that the data backlog of message topics in the message queue is serious, and the current thread cannot consume quickly. state, and can dynamically adjust the appropriate amount of thread allocation, so that the data backlog problem can be solved within the inspection cycle and redundant thread allocation can be avoided, manual operations can be reduced, and the efficiency of program operation can be improved. specifically, figure 1 The flow chart of the message queue-based data processing method provided by Embodiment 1 of this application, such as figure 1 As shown, the message queue-based data processing method includes the following steps S101 to S104:
[0029] Step S101: Determine the consumption rate threshold of the thread corresponding to the message subject in the message queue.
...
Embodiment 2
[0084] Corresponding to Embodiment 1 above, Embodiment 2 of the present application provides a data processing device based on message queues. For corresponding technical features and corresponding technical effects, refer to Embodiment 1 above, which will not be repeated here. figure 2 A block diagram of a message queue-based data processing device provided for Embodiment 2 of the present application, such as figure 2 As shown, the device includes a determination module 201 , a first calculation module 202 , a second calculation module 203 and an adjustment module 204 .
[0085] Wherein, the determination module 201 is used to determine the consumption rate threshold of the thread corresponding to the message topic in the message queue; the first calculation module 202 is used to calculate the current data backlog and data consumption rate of the message topic at each preset inspection cycle; the second The second calculation module 203 is configured to: if the data backlog...
Embodiment 3
[0095] Embodiment 3 also provides a computer device, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a rack server, a blade server, a tower server or a cabinet server (including an independent server, Or a server cluster composed of multiple servers), etc. Such as image 3 As shown, the computer device 01 in this embodiment at least includes but is not limited to: a memory 012 and a processor 011 that can communicate with each other through a system bus, such as image 3 shown. It should be pointed out that, image 3 Only the computer device 01 is shown with components memory 012 and processor 011, but it should be understood that implementing all of the illustrated components is not a requirement and that more or fewer components may instead be implemented.
[0096] In this embodiment, the memory 012 (that is, a readable storage medium) includes a flash memory, a hard disk, a multimedia card, a card-type memory (for example, SD or DX memo...
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