Microservice-based asynchronous processing method, server, storage medium and device

A technology of asynchronous processing and microservices, applied in the field of microservices, can solve the problem of inability to process business requests asynchronously

Pending Publication Date: 2019-04-16
深圳平安财富宝投资咨询有限公司
View PDF3 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The main purpose of the present invention is to provide an asynchronous processing method, server, storage medium, and device based on microservices, aiming to solve the technical problem that business requests cannot be processed asynchronously

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
  • Microservice-based asynchronous processing method, server, storage medium and device
  • Microservice-based asynchronous processing method, server, storage medium and device
  • Microservice-based asynchronous processing method, server, storage medium and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0053] It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0054] refer to figure 1 , figure 1 It is a schematic diagram of the server structure of the hardware operating environment involved in the solution of the embodiment of the present invention.

[0055] like figure 1As shown, the server may include: a processor 1001 , such as a CPU, a communication bus 1002 , a user interface 1003 , a network interface 1004 , and a memory 1005 . Wherein, the communication bus 1002 is used to realize connection and communication between these components. The user interface 1003 may include a display screen (Display). The optional user interface 1003 may also include a standard wired interface and a wireless interface. The wired interface of the user interface 1003 may be a USB interface in the present invention. Optionally, the network interface 1004 may include a standard wired int...

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 an asynchronous processing method, a server, a storage medium and a device based on microservice. When the service request is received, the preset thread pool for processing the service request is determined in the preset micro service access frame. A first preset thread is called from a preset thread pool, and request information is extracted from a service request throughthe first preset thread. Transmitting the request information to the second preset thread and returning the first preset thread to the preset thread pool; A service response is made to the request information by a second preset thread to realize asynchronous processing of the service request. Obviously, the complete processing of the service request is separated, the information extraction step is delivered to the first preset thread, and the information response step is delivered to the second preset thread, which is equivalent to adding the operation logic of asynchronous processing in thepreset microservice access framework. Therefore, it can be considered that it solves the technical problem that business requests cannot be processed asynchronously.

Description

technical field [0001] The present invention relates to the technical field of microservices, in particular to an asynchronous processing method, server, storage medium and device based on microservices. Background technique [0002] The Spring Cloud project is a microservice framework based on the collection of Spring Boot libraries, and the microservice framework can be further subdivided. For example, the Spring Cloud project also includes the Spring Cloud zuul subproject and the Spring Cloud Bus subproject. Among them, the Spring Cloud zuul subproject is mainly used to act as the gateway role in the microservice framework, which can carry the access of various types of business requests. [0003] However, if the business request is accessed based on the Spring Cloud zuul sub-project in the actual development process of the business system, due to its lack of asynchronous processing operation logic, it will not be possible to realize the asynchronous processing of the bus...

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/50H04L29/08
CPCG06F9/5016G06F2209/5018H04L67/60
Inventor 吴丹梁亚保
Owner 深圳平安财富宝投资咨询有限公司
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