Request timeout processing method and device, terminal and storage medium

A timeout processing and processor technology, applied in multi-programming devices, electrical digital data processing, program startup/switching, etc., can solve problems such as slow requests, increased back-end system load, avalanche effects, etc., to reduce additional burdens, The effect of improving processing density and reducing trigger frequency

Inactive Publication Date: 2021-01-08
INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When the backend processes some requests slowly, it will trigger the timeout retry mechanism of the frontend request, resulting in a further increase in the load on the backend system, resulting in an avalanche effect, resulting in slower requests

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
  • Request timeout processing method and device, terminal and storage medium
  • Request timeout processing method and device, terminal and storage medium
  • Request timeout processing method and device, terminal and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0037] Such as figure 1 As shown, this embodiment provides a request timeout processing method, including the following steps:

[0038] S1, when a front-end request is received, determine whether there is a task with the same request being processed;

[0039] S2, if not, create task information and perform task processing;

[0040] S3, if there is, save the request response, and feed back the processing result to the front end after the task corresponding to the same request is processed.

[0041] Through the above method, when a request takes a long time to process, when the request generated by the retry mechanism is sent to the backend again, since the same request is already being processed at the backend, the backend will respond to the new request (referring to the request generated by the retry mechanism) ) will only save the request response and will not trigger a new task. After the task processing of the first request is completed, the processing result will be fed...

Embodiment 2

[0053] Such as image 3 As shown, in combination with Embodiment 1, this embodiment provides a request timeout processing device, including the following functional modules.

[0054] Request receiving processing module 101: receiving the request sent by the front end, and judging whether there is a task with the same request being processed;

[0055] Task information establishment module 102: establish task information;

[0056] Processing control module 103: perform task processing;

[0057] Response saving module 104: when the same request task is being processed, save the request response to the newly received request;

[0058] Response control module 105: Feedback the processing result to the front end after the processing of the request task is completed.

[0059] In this embodiment, the task information establishment module 102 also sets the processing callback and response callback of the task information; wherein the processing callback defines the specific process ...

Embodiment 3

[0065] This embodiment provides a terminal, and the terminal includes a processor and a memory.

[0066] The memory is used to store instructions for the processor to execute. Memory can be implemented by any type of volatile or non-volatile storage terminals or a combination of them, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic Disk or Optical Disk. When the execution instructions in the memory are executed by the processor, the terminal is enabled to execute some or all of the steps in the foregoing method embodiments.

[0067] The processor is the control center of the storage terminal, using various interfaces and lines to connect various parts of the entire electronic terminal, by running or executing software programs and / or modules stored in the memory, and call...

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 request timeout processing method and device, a terminal and a storage medium, and the method comprises the steps: judging whether tasks with the same request are processed or not when a front-end request is received; if not, establishing task information, and performing task processing; and if yes, storing the request response, and feeding back a processing result to thefront end after the corresponding same request task is processed. According to the invention, the number of processing tasks generated by the retry request can be reduced, the triggering frequency ofthe retry request is reduced, the additional burden of the retry on the service is reduced, and the effective task processing density of the service is improved.

Description

technical field [0001] The present invention relates to the field of request processing, in particular to a request timeout processing method, device, terminal and storage medium. Background technique [0002] The usual way for the back-end business to process the front-end request is synchronous processing, asynchronous waiting for processing, etc. After the task processing is completed, the processing result is returned to the front-end, and an independent back-end processing task will be triggered for each front-end request without distinguishing between requests Whether to be triggered by the retry mechanism. When the backend processes some requests slowly, it will trigger the timeout retry mechanism of the frontend requests, resulting in a further increase in the load on the backend system, resulting in an avalanche effect, resulting in slower requests. Contents of the invention [0003] In order to solve the above problems, the present invention provides a request t...

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): G06F11/07G06F9/48G06F9/50
CPCG06F9/4881G06F9/5022G06F11/0757
Inventor 王勇
Owner INSPUR SUZHOU INTELLIGENT TECH CO LTD
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