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

Service processing method and device and storage medium

A technology for business processing and storage media, applied in the Internet field, can solve problems such as difficult to read, difficult to maintain and difficult to write

Active Publication Date: 2019-09-17
TENCENT TECH (SHENZHEN) CO LTD
View PDF11 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The embodiment of the present application provides a business processing method, device, and storage medium, which can be used to solve code fragmentation corresponding to business requests that are implemented asynchronously and require cross-process data acquisition in related technologies, are difficult to read and maintain, and are difficult to write. big problem

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
  • Service processing method and device and storage medium
  • Service processing method and device and storage medium
  • Service processing method and device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0031] Before explaining the embodiment of the present application in detail, the application scenarios involved in the embodiment of the present application will be introduced first.

[0032] Usually, the application client installed in the terminal can request service data by sending a service request to the application server during operation. The application server may receive multiple service requests sent by multiple application clients installed on multiple terminals. In the process of processing business requests, the first process used to process these business requests may need to obtain data across processes. Therefore, in order to ensure the speed of business processing, currently, the first process uses asynchronous proces...

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 service processing method and device and a storage medium, and relates to the technical field of the Internet. According to the method and the device, after the data acquisition request is sent to the second process through the first coroutine, the first process can be switched from the first coroutine to the second coroutine, and the current state information of the first coroutine is stored. Due to the fact that the first coroutine does not process other services after sending of the data acquisition request is completed, when service data returned by the second process are received subsequently, the first coroutine can be switched back from the second coroutine according to the current state information of the first coroutine, and the service data are processed continuously. Therefore, the first coroutine only executes the code corresponding to the service request. Therefore, the code corresponding to the service request is complete instead of fragmentized, so that the service request is easier to read and maintain, and the maintenance cost is reduced. Moreover, the code is not fragmented any more, so that the complexity of the service processing logic is reduced, and the code writing difficulty is reduced.

Description

technical field [0001] The present application relates to the technical field of the Internet, and in particular to a service processing method, device and storage medium. Background technique [0002] Currently, various application clients are usually installed in the terminal. The application client can send a service request to the application server, and after receiving the service request, the application server can process the service request and return a corresponding processing result. [0003] In related technologies, there is a first process for processing service requests in the application server. The first process may receive multiple service requests from different application clients, and process the multiple service requests asynchronously. For example, when processing a first business request, if the first process needs to request data from the second process, the first process can send a data acquisition request to the second process according to the firs...

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): H04L29/08
CPCH04L67/51H04L67/567
Inventor 成贤斌
Owner TENCENT 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