Consumption method, device, server and medium based on database message queue
A message queue and database technology, applied to devices, servers and media, consumption methods and fields based on database message queues, can solve problems such as increased time cost, cumbersome configuration, increased operation and maintenance costs, etc., to improve processing speed and expand applications Scenarios and low maintenance costs
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0025] figure 1 is an overall flow chart of the database message queue-based consumption method of the embodiment of the present invention. like figure 1 As shown, the method includes: step 110, starting a plurality of independent consumption processes; step 120, controlling each consumption process to read a sub-message queue once from the message queue data table stored in the database, and each sub-message queue includes multiple Each message has a unique message ID, and there is no intersection between the sets of message IDs contained in each sub-message queue. The message queue contains many messages, and the consumer process reads the messages for subsequent operations. This can not only realize database-based multi-process reading consumption, reduce the burden on the database, but also avoid repeated consumption of message queues.
[0026] Optionally, the message queue data table includes a message ID field, and the message ID field is a self-incrementing field; an...
Embodiment 2
[0054] Figure 4 It is a logical functional block diagram of a consumer device based on a database message queue according to an embodiment of the present invention. like Figure 4 As shown, the consumption device includes: a starting unit 210, which is used to start a plurality of independent consumption processes; a control unit 220, which is used to control each of the consumption processes to read a message queue data table stored in the database one sub In the message queue, each sub-message queue includes multiple messages, each message has a unique message ID, and there is no intersection between the sets of message IDs contained in each sub-message queue.
[0055] Optionally, the message queue data table includes a message ID field, and the message ID field is a self-incrementing field; and, the message IDs of the multiple messages included in each sub-message queue are continuously incremented.
[0056] Optionally, the message queue data table includes a message ID ...
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