A database-based lightweight message queue implementation method and storage device

A technology of message queue and implementation method, applied in the field of lightweight message queue implementation method and storage device, can solve the difficulty of business function adaptation in business scenarios, message loss, and inability to visually display the specific content of the message and key data items Deal with the status and other issues to achieve the effect of reducing the difficulty of message tracing and monitoring.

Active Publication Date: 2022-04-22
FUJIAN RONGJI SOFTWARE
View PDF11 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] 1. The production environment must install and configure the corresponding MQ middleware products, which have higher requirements for software and hardware environment, procurement cost, compatibility, etc.;
[0004] 2. The messages in MQ products are usually temporarily stored in the memory. If the queue application goes down, the messages will be at risk of being lost; and most of them can only use the built-in management page to browse the messages in the queue, which can only meet the universal monitoring Requirements, it is impossible to visually display the specific content of the message, key data items, processing status, etc., and it is not convenient for personalized monitoring of the message;
[0005] 3. The messages in the MQ product are destroyed after consumption, and it is difficult to realize the problems of message recurrence, abnormal traceability, and message re-consumption;
[0006] 4. The same message in the MQ product is difficult to be consumed by multiple businesses, and it is difficult to adapt to complex business scenarios and business functions

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A database-based lightweight message queue implementation method and storage device
  • A database-based lightweight message queue implementation method and storage device
  • A database-based lightweight message queue implementation method and storage device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050] In order to explain in detail the technical content, structural features, achieved goals and effects of the technical solution, the following will be described in detail in conjunction with specific embodiments and accompanying drawings.

[0051] see Figure 1 to Figure 2 , in this embodiment, a database-based lightweight message queue implementation method can be applied to a storage device, including but not limited to: personal computers, servers, general-purpose computers, special-purpose computers, network devices, embedded devices, programmable devices, smart mobile terminals, etc. The specific implementation is as follows:

[0052] Step S101: Create a database table, the database table at least includes: a message table.

[0053] Step S102: receiving the request operation, and correspondingly updating the message table according to the request operation.

[0054] Step S103: Start the local message monitoring program to determine whether unprocessed messages ar...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to the technical field of message processing, in particular to a method for implementing a lightweight message queue based on a database and a storage device. The method for implementing a lightweight message queue based on a database includes the steps of: creating a database table; receiving a request operation, and updating the message table according to the request operation; starting a local message listening program, and if there is an unprocessed message detected, then Write the consumption occupancy mark in the database for the corresponding unprocessed message; push the marked message to the local consumption queue; start the local consumption thread, monitor the local consumption queue, if there is a message to be consumed, obtain the message and consume it; After the consumption is over, update the message status. The technical scheme of the present invention adopts a message processing method based on a database table, and the entire message production and consumption process does not need to use MQ middleware as a medium, which reduces various configuration requirements of the hardware environment and system environment, and realizes the function of a lightweight message queue .

Description

technical field [0001] The invention relates to the technical field of message processing, in particular to a method for implementing a lightweight message queue based on a database and a storage device. Background technique [0002] The traditional message consumption model relies on MQ message middleware for implementation: the producer program produces messages and puts them into the specified queue, and then the consumer program pulls messages from the specified queue for consumption, and at the same time monitors the consumption process through logs Record, follow-up related message tracking based on the log. Such a consumption model has the following disadvantages: [0003] 1. The production environment must install and configure the corresponding MQ middleware products, which have higher requirements for software and hardware environment, procurement cost, compatibility, etc.; [0004] 2. The messages in MQ products are usually temporarily stored in the memory. If t...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F16/2457G06F16/2455
Inventor 陈哲鲁维逸许惠亮姚少扬
Owner FUJIAN RONGJI SOFTWARE
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products