Supercharge Your Innovation With Domain-Expert AI Agents!

Method and device for processing service calling request

A technology of target service and request invocation, which is applied in the computer field and can solve problems such as request blocking

Inactive Publication Date: 2019-10-25
SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
View PDF3 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] It can be seen from the above description that based on the existing method of processing requests, if many requests are suspended, a large number of requests will be blocked.

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 device for processing service calling request
  • Method and device for processing service calling request

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work belong to the protection of the present invention. scope.

[0051] Such as figure 1 As shown, the embodiment of the present invention provides a method for processing a request for invoking a service, and the method may include the following steps:

[0052] Step 101: the circuit breaker intercepts at least one target request for invoking the target service in real time;

[0053] Step 102: The circuit breaker o...

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 provides a method and device for processing a service calling request, and the method comprises the steps that a circuit breaker intercepts a target request in real time; the circuit breaker acquires the latest circuit breaker state in real time, forbids the target requests to call the target service when the circuit breaker state is open, and returns a call failure response to eachtarget request; when the state of the circuit breaker is closed, the target request is allowed to call the target service; when the state of the circuit breaker is semi-open, the latest target proportion is obtained, the target requests of the target proportion are allowed to call the target service, and a call failure response is returned to each target request forbidding to call the target service; and the compensation module detects whether each target request allowed to call the target service fails to be called in real time, and adjusts the state and the target proportion of the circuit breaker according to the number of the target requests allowed to call the target service and failed to be called. According to the invention, the request blockage can be reduced.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for processing a request for invoking a service. Background technique [0002] As technologies in the field of cloud computing and microservices continue to mature, more and more traditional single applications are split into a large number of microservices and begin to migrate to the cloud. The original local method calls have become cross-network service calls. [0003] In the prior art, after a sender that needs to invoke a service sends a request, if the request fails to invoke the service, the request will be suspended until the request times out. The sender has been in the state of requesting to call the service during this period. After the request times out, the sender gets the feedback of the call failure. [0004] It can be seen from the above description that based on the existing method of processing requests, if many requests are suspended, a l...

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
IPC IPC(8): H04L12/813H04L29/08H04L47/20
CPCH04L47/20H04L67/62
Inventor 郑强王刚高传集
Owner SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO 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