Check patentability & draft patents in minutes with Patsnap Eureka AI!

Method and terminal for realizing retry

A terminal, real-time update technology, applied in the Internet field, can solve the problems of calling system avalanche risk, repeated user clicks, etc., to reduce server pressure, avoid traffic impact, and improve stability.

Pending Publication Date: 2019-07-09
FUJIAN TIANQUAN EDUCATION TECH LTD
View PDF6 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Retry is to try again after a certain interface call fails. During the retry process, if it is used improperly, it may bring an avalanche risk to the calling system. Since retrying means double the amount of requests to the calling system, a function cannot Use may cause users to click repeatedly, which will bring a larger-scale traffic impact and bring huge pressure to 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
  • Method and terminal for realizing retry
  • Method and terminal for realizing retry
  • Method and terminal for realizing retry

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0076] Please refer to figure 1 with image 3 , this embodiment is described from the perspective of a computing module, a method for implementing retry, including steps:

[0077] receiving a first message of an interface access request, where the first message includes an identifier of the interface;

[0078] receiving a second message indicating that the interface access is successful, where the second message includes an identifier of the interface;

[0079] Specifically, the client requests the interface, and the interface sends the first message to the computing module when receiving the interface access request;

[0080] When the interface successfully processes the business logic required by the interface access request, sending a second message to the computing module;

[0081] The computing module receives the first message and the second message of the plurality of interfaces;

[0082] S01. Real-time statistics of the number of access requests of each interface c...

Embodiment 2

[0103] The difference between this embodiment and embodiment one is:

[0104] The request success rate of each interface within the preset time corresponds to a cache expiration time;

[0105] Specifically, within a preset time, when the interface receives an access request, it needs to update the corresponding request success rate according to whether the access is successful, and refresh the cache expiration time corresponding to the request success rate while updating the request success rate ;

[0106] Preferably, the cache expiration time is 30 minutes, and within the preset time, if the interface does not receive an access request within 20 minutes, there are 10 minutes left before the request success rate corresponding to the interface expires. At this time, if the interface receives an access request and updates the corresponding request success rate according to the status of the access request, the cache expiration time of the request success rate is refreshed, and ...

Embodiment 3

[0115] Please refer to figure 2 , a terminal 1 for realizing retry, comprising a memory 2, a processor 3 and a computer program stored in the memory 2 and operable on the processor 3, when the processor 3 executes the computer program, the implementation Steps in Example 1.

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 method and a terminal for realizing retry. The method comprises the following steps: when access to an interface fails, obtaining the request success rate of the cached interface updated in real time, judging whether the request success rate is greater than a preset value; if not, not sending the retry request; if yes, sending a retry request to the interface, judging whether the access in the retry is successful or not; if the request success rate is not successful, acquiring the request success rate again to determine whether to retry. The state of the correspondinginterface can be reflected to a certain degree through the request success rate, retry is not conducted when the request success rate is low, the number of times of retry can be controlled, large-scale flow impact is avoided, server pressure is reduced, and stability is improved.

Description

technical field [0001] The invention relates to the technical field of the Internet, in particular to a method and a terminal for realizing retry. Background technique [0002] In Internet products, each product application has a corresponding server, and many servers use microservices or data mutual calls to interact and assemble data. In general, use RPC or HTTP to realize the data call, but when using these calling methods, due to problems such as network failure or abnormality of the other party's server, there may be cases where the call fails, and the request needs to be made again. At this time, the most important thing in the system A commonly used method is the retry mechanism. [0003] Retry is to try again after a certain interface call fails. During the retry process, if it is used improperly, it may bring an avalanche risk to the calling system. Since retrying means double the amount of requests to the calling system, a function cannot Using it may cause users...

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/54
CPCG06F9/547
Inventor 刘德建林伟郭玉湖
Owner FUJIAN TIANQUAN EDUCATION TECH LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More