Unlock instant, AI-driven research and patent intelligence for your innovation.

A method and device for responding to a request

A technology that responds to requests and access failures. It is applied in the computer field and can solve problems such as server downtime, long time consumption of access requests, and many access requests, so as to avoid downtime, prevent blocking, and reduce pressure.

Active Publication Date: 2021-01-22
JUHAOKAN TECH CO LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The embodiment of the present invention provides a method for answering requests and a corresponding device for answering requests, so as to solve the above-mentioned problems that the terminal equipment has too many concurrent access requests and some access requests take too long to cause server downtime

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
  • A method and device for responding to a request
  • A method and device for responding to a request
  • A method and device for responding to a request

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0045] In order to make the technical problems, technical solutions and beneficial effects solved by the embodiments of the present invention clearer, the embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings and the embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0046] refer to figure 1 , shows a flow chart of the steps of Embodiment 1 of a method for answering a request in an embodiment of the present invention, the method is applied to a server, and the server includes a plurality of APIs (Application Programming Interface, Application Programming Interface), and the API With a corresponding value value, the server is connected to the terminal device, which may specifically include the following steps:

[0047] Step 101, when the terminal device sends an access request to the server t...

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 embodiment of the present invention provides a method and device for responding to a request. The method includes: when a terminal device sends an access request to a server through an API, the server obtains the value corresponding to the API; Whether the value exceeds the preset threshold; when the value exceeds the preset threshold within the preset period, a specific message is sent to the API corresponding to the value; when the specific message is sent to the After the API, obtain the first access failure time and the second access time; judge whether the difference between the first access failure time and the second access time is less than the preset time threshold; API access exception information; if not, then respond to the normal business information for the request; in the embodiment of the present invention, it can prevent the access request blocking in the server, reduce the pressure on the server, and avoid the server from having too many concurrent access requests. consequences of downtime.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a method and a device for answering requests. Background technique [0002] In the information transmission process between the existing terminal device and the server, there are usually multiple terminal devices sending access requests to the server at the same time, and the server can receive the access requests sent by multiple terminal devices through API (Application Programming Interface, Application Programming Interface). access request. [0003] When the server sends data to the terminal device in response to the access request, it may need to go through very time-consuming operations, such as complex database queries, to obtain the data that needs to be sent to the terminal device. In this way, the same moment from the terminal device A large number of access requests will put a lot of pressure on the server, and even cause the server to go down, because there are to...

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 Patents(China)
IPC IPC(8): H04L29/08H04L29/06H04L12/26
CPCH04L67/14H04L43/062H04L43/067H04L43/16H04L67/62H04L67/01
Inventor 尹正飞陈晓慧
Owner JUHAOKAN TECH CO LTD