Queue-based service request asynchronous processing method and device

A business request, asynchronous processing technology, applied in the field of data processing, can solve the problems of difficult to trace the cause of business errors, business interaction, slow response speed, etc., to achieve the effect of improving performance and reliability, reducing response time, and avoiding timeout exceptions

Active Publication Date: 2020-05-05
JIANGSU SUNING LOGISTICS CO LTD
View PDF2 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In order to solve the problems in the prior art, the embodiment of the present invention provides a queue-based asynchronous processing method and device for service requests, so as to overcome the problems in the prior art such as slow response speed, mutual influence between services, and difficulty in tracing the causes of service errors.

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
  • Queue-based service request asynchronous processing method and device
  • Queue-based service request asynchronous processing method and device
  • Queue-based service request asynchronous processing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0056]In order to make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only Some, but not all, embodiments of the invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0057] figure 1 is a schematic diagram of an application environment shown according to an exemplary embodiment, refer to figure 1 As shown, in the embodiment of the present invention, from the perspective of the application server, a queue-based asynchronous processing method for business requests is provided, wherein the user sends a business request (such as a login...

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 discloses a queue-based service request asynchronous processing method and device, and the method comprises the steps: obtaining a service request received by a foreground server, and packaging the service request and processing information corresponding to the service request into a message according to a preset packaging format; performing delay processing on the message accordingto a preset delay mechanism, and storing the delayed message into cache middleware; periodically reading expired messages in the cache middleware; and selecting a corresponding message queue accordingto the service type of the service request, sending the read message to a corresponding background server for asynchronous processing, and returning response information to the foreground server. According to the method and the device, during asynchronous processing of the service, response is returned firstly, and then post-processing are carried out on the service, so that the response time ofthe service is shortened, meanwhile, overtime abnormity of the system is avoided, messages of different levels pass through different queues, unimportant services are prevented from influencing important services, the performance and the reliability of the system are improved, and meanwhile, the complexity of the system is reduced.

Description

technical field [0001] The invention relates to the technical field of data processing, in particular to a queue-based asynchronous processing method and device for service requests. Background technique [0002] In the business scenario of distributed, highly concurrent, and high-availability service commodity sales, the system often encounters the problem that the response time of business requests times out. For example, the response time of some business requests will exceed 500ms, which seriously affects the user experience and system stability. In particular, during the big promotion period, when the traffic peaks, some requests may even cause data loss due to timeout, which makes it difficult to locate such problems in the follow-up investigation, and it is difficult for the wrong data to heal itself. Therefore, it is urgent to propose a new business request processing method to improve the response speed, make the original request traceable and the abnormal service ...

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 Applications(China)
IPC IPC(8): G06F9/54
CPCG06F9/546G06F2209/548G06F2209/547G06F2209/549
Inventor 姚璋江明
Owner JIANGSU SUNING LOGISTICS CO LTD
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