Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Message queue-based request processing method and device, equipment, and storage medium

A message queue and request processing technology, applied in the Internet field, can solve problems such as database bottlenecks, business volumes that cannot be completed in time, and low processing efficiency

Pending Publication Date: 2019-01-25
PING AN TECH (SHENZHEN) CO LTD
View PDF0 Cites 24 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, once the business volume increases and more threads need to be opened to digest task data, the method of locking and reading task data will cause database locks to wait, resulting in bottlenecks in the database, threads waiting, and low processing efficiency. Setting the current business volume The occurrence of problems such as failure to complete in time

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
  • Message queue-based request processing method and device, equipment, and storage medium
  • Message queue-based request processing method and device, equipment, and storage medium
  • Message queue-based request processing method and device, equipment, and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0055] figure 1 It is a flow chart of the message queue-based request processing method provided by Embodiment 1 of the present invention. According to different requirements, the execution sequence in the flow chart can be changed, and some steps can be omitted.

[0056] S11: When receiving a user request, encapsulate the user request into a corresponding message according to a preset message format.

[0057] In this embodiment, the user may send a request through a device, and the device refers to an electronic device capable of data processing, such as a client computer.

[0058] User requests may include, but are not limited to: registration, login, uploading documents or applying for insurance, etc. After receiving the user request, the system encapsulates the user request into a corresponding message according to a preset message format. For example, after the system receives the user's registration request, it encapsulates the registration request into a correspondin...

Embodiment 2

[0110] figure 2 It is a functional block diagram of a preferred embodiment of the message queue-based request processing device of the present invention.

[0111] In some embodiments, the message queue-based request processing device 20 runs in a server. The message queue-based request processing device 20 may include a plurality of functional modules composed of program code segments. The program codes of each program segment in the message queue-based request processing device 20 can be stored in a memory, and executed by at least one processor to execute (see for details figure 1 and its related description) method of request processing based on message queue.

[0112] In this embodiment, the message queue-based request processing device 20 may be divided into multiple functional modules according to the functions it performs. The functional modules may include: an encapsulation module 201 , a sending module 202 , a storage module 203 , a judgment module 204 , an execut...

Embodiment 3

[0165] image 3 It is a schematic diagram of the equipment provided in Embodiment 3 of the present invention.

[0166] Said device 3 comprises: a memory 31 , at least one processor 32 , a computer program 33 stored in said memory 31 and executable on said at least one processor 32 , and at least one communication bus 34 .

[0167] When the at least one processor 32 executes the computer program 33, the steps in the above embodiments of the message queue-based request processing method are implemented.

[0168] Exemplarily, the computer program 33 may be divided into one or more modules / units, and the one or more modules / units are stored in the memory 31 and executed by the at least one processor 32 . The one or more modules / units may be a series of computer program instruction segments capable of accomplishing specific functions, and the instruction segments are used to describe the execution process of the computer program 33 in the device 3 .

[0169] The device 3 may be c...

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

A message queue-based request processing method includes: when a user request is received, packaging the user request into a corresponding message and sending the message to a first server; Accordingto the location identification number in the message, the message is stored in the message queue through the first server, and the message is synchronized to a plurality of second servers through thefirst server. Screening a second server whose current load is lower than a preset load threshold according to the current load of the plurality of second servers; A corresponding thread pool is established through the selected second server to process the message. The invention also provides a request processing device, a device and a storage medium based on a message queue. The invention is basedon the cloud transmission technology, by introducing the message queue in the first server and synchronously informing the second server to process the message by using the message queue, the servercan be separated from the database and the running efficiency of the system can be improved.

Description

technical field [0001] The present invention relates to the technical field of the Internet, in particular to a message queue-based request processing method, device, equipment and storage medium. Background technique [0002] With the increasing business volume of the company, the architecture of the traditional order issuing system can no longer meet the current business needs. In the traditional architecture, functions that are not the main process, such as document image upload, insurance policy generation and other functions, are processed in asynchronous tasks. Moreover, in order to prevent dirty reading of data, the processing method of asynchronous tasks usually adopts data lock reading when reading data from the database. In the case of less business volume and fewer open thread pools, there is no problem with the traditional architecture. However, once the business volume increases and more threads need to be opened to digest task data, the method of locking and ...

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
IPC IPC(8): G06F9/54G06F9/50
CPCG06F9/505G06F9/5061G06F9/546G06F2209/5011G06F2209/5018G06F2209/548
Inventor 王强
Owner PING AN TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products