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

Client request timeout processing method and device

A client request and timeout processing technology, applied in electrical components, transmission systems, etc., can solve problems such as time-consuming timeout judgment, affect subsequent request acceptance, and queue cannot be added, so as to avoid waste of processing resources and improve timeout detection efficiency , to avoid the effect of repeated processing

Active Publication Date: 2018-04-20
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF7 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the above timeout processing scheme, since the timeout time of different requests in the queue may be different and has nothing to do with the order of the requests in the queue, that is to say, any request in the queue will reach the timeout time, so , the timing thread needs to traverse the entire request queue. When the length of the queue reaches tens of thousands, it will take a long time to traverse it. In addition, the judgment and processing time of each data will lead to a very time-consuming judgment of a queue timeout.
In addition, the length of each request queue is limited. If the timeout request is not processed in time and the timeout request cannot be deleted from the queue in time, it will appear: due to the existence of the timeout request, the queue is full and new requests cannot be added to The situation in the queue, in this way, will cause subsequent requests to be rejected, resulting in a very poor user experience
[0005] It can be seen that the existing timeout processing scheme has the problem that the timed out request in the request queue cannot be processed in time, which affects the acceptance of subsequent requests, and then affects the service performance of the system

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
  • Client request timeout processing method and device
  • Client request timeout processing method and device
  • Client request timeout processing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] In order to make the purpose, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0023] The core idea of ​​the present invention is: establish timeout monitoring queue according to the delay threshold value of connection request (that is, the extension degree of the maximum request processing time that can be received), after the server receives the connection request, put the task corresponding to the request into the In the timeout monitoring queue corresponding to the delay threshold, and the tasks in each timeout monitoring queue are arranged in ascending order according to the timeout time of the task, so that when monitoring the timeout of the task, it is not necessary to traverse each timeout monitoring queue, as long as When it is detected that a task in the timeout monitoring queue does not time out, there is ...

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 present invention discloses a client request timeout processing method and device. The method includes the following steps that: a server end packages each currently received connection request into tasks, adds the tasks to a to-be-processed request task pool, and timeout monitoring queues corresponding to delay threshold values of the tasks, wherein the timeout monitoring queues in the serverend are in one-to-one correspondence with delay threshold values supported by the server, the tasks in each timeout monitoring queue are arranged in ascending order according to timeout time points;when the to-be-processed request task pool is not empty, the tasks are taken out from the pool, and an execution process of the tasks according to task statuses is triggered; timeout tasks in each timeout monitoring queue are searched out according to a preset timeout scanning period, the timeout tasks are deleted, and the timeout tasks are arranged in a timeout processing thread pool when the timeout tasks are in unprocessed states; and when the timeout processing thread pool is not empty, the timeout tasks are taken out from the pool, and a timeout processing process of the tasks according to task statuses is triggered. With the client request timeout processing method and device of the present invention adopted, timeout requests can be processed in time.

Description

technical field [0001] The invention relates to computer application technology, in particular to a method and device for overtime processing of client requests. Background technique [0002] With the rapid development of the Internet, the number of WEB application systems continues to increase, and the subsequent emergence of distributed systems leads to the intersection of services between various systems, which will involve the mutual calling of interfaces between systems. Especially systems involving different companies, such as between shopping system and warehouse system, shopping system and payment system, etc. The interaction between the external system and the internal system generally adopts the HTTP interface. With the increasing number of users, the number of interactions between the interfaces is also increasing. Correspondingly, the access pressure of the system is also increased. In this case, when the connection request arrives at the server, there will be a...

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): H04L29/08
CPCH04L67/02H04L67/62
Inventor 韩松
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD