Timeout fusing method and system coping with remote call dependence

A remote invocation and fusing technology, applied in the Internet field, can solve problems such as system resource exhaustion, application collapse, application resource exhaustion, etc.

Active Publication Date: 2017-09-15
北京思特奇信息技术股份有限公司
View PDF2 Cites 28 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] Complex distributed architectures usually have many dependencies, such as HTTP, Netty, Dubbo, etc. If an application cannot isolate faults from dependencies, the application is at risk of being dragged down
In a high-traffic and high-concurrency system, once a single backend is delayed, all application resources will be exhausted within seconds
The existing processing method mainly uses the request timeout method to block through the timeout period, but this method will lead to exhaustion of system resources in the case of large mergers

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
  • Timeout fusing method and system coping with remote call dependence
  • Timeout fusing method and system coping with remote call dependence

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] The principles and features of the present invention will be described below with reference to the accompanying drawings. The examples cited are only used to explain the present invention, and are not used to limit the scope of the present invention.

[0034] figure 1 This is a schematic flowchart of a timeout fuse method for coping with remote call dependency provided by an embodiment of the present invention, such as figure 1 As shown, including the following steps:

[0035] Step 1. Obtain a service invocation request, and determine whether the target service corresponding to the service invocation request is in a fuse state, if not, perform step 2, and if yes, perform step 3;

[0036] Step 2. Call the target service, send the target service to the service usage module, and then return to step 1;

[0037] Step 3. Obtain the blown duration of the target service, and determine whether the blown duration reaches the preset recovery time, if yes, perform the preset fusing recovery...

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 particularly relates to a timeout fusing method and system coping with remote call dependence. The method comprises the following steps of obtaining a service call request, judging whether target service corresponding to the service call request is a fused state or not, if the target service is not in the fused state, calling the target service from a service providing module, and sending the target service to a service use module; and if the target service is in the fused state, obtaining fused duration of the target service, judging whether the fused duration reaches preset recovery time or not, and if the fused duration reaches the preset recovery time, carrying out a preset fusing recovery step, otherwise, returning abnormal response information to the service use module. According to the method and the system, a circuit fusing ideal is imitated, when the target service is slow in call or is excessively overtime, the call of the service is fused, and for a follow-up request, direct returning is carried out, so resources are rapidly released. If the condition of the target service is improved, the call is recovered, so the system crash problem resulting from judging timeout of traditional service call through socket timeout time is solved.

Description

Technical field [0001] The present invention relates to the field of Internet technology, in particular to a timeout fuse method and system for dealing with remote call dependence. Background technique [0002] Complex distributed architecture usually has many dependencies, such as HTTP, Netty, Dubbo, etc. If an application cannot isolate faults from dependencies, then the application is at risk of being dragged down. In a high-traffic and high-concurrency system, once a single backend is delayed, all application resources will be exhausted within a few seconds. The existing processing method is mainly through the request timeout method and blocking by the timeout period, but this method will lead to the exhaustion of system resources in the case of large coalescence. Summary of the invention [0003] The present invention provides a timeout fuse method and system for coping with remote call dependence, and solves the above-mentioned technical problems. [0004] The technical solu...

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): H04L12/24H04L12/26H04L29/08
CPCH04L41/0654H04L43/08H04L43/0823H04L43/0852H04L43/16H04L67/02H04L67/10
Inventor 张清锁
Owner 北京思特奇信息技术股份有限公司
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