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

Method for disguising synchronous request by asynchronous request

A technology of asynchronous request and synchronous request, applied in the direction of program synchronization, multi-program device, inter-program communication, etc., to achieve the effect of ensuring fluency and coherence, improving flexibility and responsiveness, and reducing coupling

Active Publication Date: 2020-10-09
武汉众邦银行股份有限公司
View PDF8 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The present invention relates to the field of asynchronous request invocation, and provides a method for disguising an asynchronous request as a synchronous request. Its main purpose is to solve the problem that the business process must maintain continuity from top to bottom, but the back-end service is an asynchronous invocation method. In this case, it is necessary to wait for the asynchronous return As a result, the continuity of the business can be guaranteed. The solution to this problem is: the back-end still requests asynchronously, but pretends to be a synchronous request to the front-end. The front-end maintains the continuity of the business, and at the same time, the back-end must be an asynchronous request.

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] In order to make the object, technical solution and advantages of the present invention more clear, the present invention will be further described in detail below in conjunction with the examples. It should be understood that the specific embodiments described here are only used to explain the present invention, and are not intended to limit the present invention, that is, the described embodiments are only some of the embodiments of the present invention, but not all of the embodiments.

[0043] The detailed description of the embodiments of the invention is not intended to limit the scope of the claimed invention but to represent only selected embodiments of the invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative efforts belong to the protection scope of the present invention.

[0044] It should be noted that relative terms such as the terms "first" and "second" are only 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
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to the field of asynchronous request calling, and provides a method for disguising a synchronous request by an asynchronous request. The method aims to enable a rear end to be anasynchronous request, but disguise the asynchronous request as a synchronous request to a front end, and the front end maintains the continuity of services. According to the main scheme, the method comprises the steps of requesting a rear-end interface by a front-end page; customizing an asynchronous actuator class, wherein the asynchronous actuator class is used for customizing an asynchronous annotation at Async; defining a class of asynchronous processing results, supporting generic T in the class, and receiving a returned result class by the generic T; defining an isDone method in the asynchronous processing result class, and judging whether the asynchronous method is executed or not through the isDone method; newly establishing a calling instance, and obtaining a corresponding returnprocessing result by judging whether the isDone method is executed or not in the instance; the front end obtains the processing result, if the result is a normal result, the result is displayed as required, and if the result is abnormal, an independent query result request method is requested, an execution result is returned, and meanwhile, a friendly prompt appears on a page to prompt a serviceto wait for a long time.

Description

technical field [0001] The invention relates to the field of asynchronous request invocation, and provides a method for disguising an asynchronous request as a synchronous request. Background technique [0002] While pursuing efficiency and high-speed response more and more, there are also some applications embracing AI or process robots. These intelligent things are more calculations, model training and anthropomorphic operations, which means that there will be a lot of calculations behind them. , which means that it takes a long time, so some of the API interfaces they provide are called asynchronously, but many business scenarios require business continuity and need to wait for the result synchronously. Based on this scenario, an asynchronous request is generated to pretend to be synchronous the method of request processing; Contents of the invention [0003] The present invention relates to the field of asynchronous request invocation, and provides a method for disgui...

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/52G06F9/54
CPCG06F9/52G06F9/547Y02D10/00
Inventor 吴修国李耀彭磊杨志文
Owner 武汉众邦银行股份有限公司
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