Method and system for realizing delay message queue
A message queue and message technology, applied in the field of distributed services, can solve problems affecting the overall performance of the service, message queues do not support delayed messages, database read and write performance degradation, etc., to solve system performance degradation, zero intrusion, and avoid risks Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0028] The message queue is an important component in a distributed system. The message queue improves system performance and peak load reduction through asynchronous processing, and reduces system coupling. When the message queue server is not used, the user's request data is directly written into the database. Under certain circumstances, the pressure on the database increases, making the response speed slower. After using the message queue, the user's request data is sent to the message queue and returned immediately, and then the consumer process of the message queue obtains the data from the message queue and writes it into the database asynchronously.
[0029] The existing conventional method is to poll the database by setting a timer to realize the delayed message, which causes a sharp decline in the read and write performance of the database, thereby affecting the overall performance of the service; and the method of the present invention uses the server to periodically...
Embodiment 2
[0058] refer to Figure 4 , is the second embodiment of the present invention, and this embodiment is different from the first embodiment in that it provides a system based on implementing a delayed message queue, including a client module 100, a server module 200, and a relational database 300. In-memory database 400, client module 100, including dispatcher 101, which corresponds to server module 200 and cooperates with each other, dispatcher 101 calls the message pull interface, and writes the message subject and message expiration time, through Feedback from the server module 200 to obtain delayed message records; the server module 200 includes a processing center 201, the processing center 201 receives the message to be written, and transmits it to the relational database 300, and the processing center 201 is based on the expiry time of the message Determine the time that is greater than the current server module 200 to generate a delayed message record, and use the period...
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