Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for processing call request of service interface

A technology of service interface and invocation request, applied in the field of computer and information interaction, it can solve the problems of system suspended animation, exhaustion of connection pool connections, etc., and achieve the effect of avoiding suspended animation of the system.

Active Publication Date: 2017-08-29
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF4 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

As a result, it is easier to cause the connection in the connection pool to be exhausted, so that a large number of other threads are in a waiting state, and even the system freezes.

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] The application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain related inventions, rather than to limit the invention. It should also be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings.

[0025] It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and embodiments.

[0026] figure 1 An exemplary system architecture 100 of an embodiment of the method for processing a service interface invocation request or the apparatus for processing a service interface invocation request of the present application can be applied.

[0027] Such as figu...

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 application discloses a method and a device for processing the call request of a service interface. According to specific embodiments of the invention, the method for processing the call request of the service interface comprises the steps of upon receiving a call request of a service interface, acquiring the state of the service interface; if the state of the service interface is normal, sending the call request of the service interface to the providing end of the service interface through a connection pool and waiting for an execution result, wherein the execution result comprises the response result of the call request of the service interface sent from the providing end of the service interface; after waiting for a predetermined length of time, if no execution result is obtained, updating the pre-stored failure count value of the service interface; if the updated failure count value is greater than a predetermined threshold, setting the state of the service interface to be abnormal. According to the technical scheme of the invention, when the service interface is abnormal, the connection in the connection pool is not occupied for a long time by the process of the call request of the service interface. Furthermore, the occurrence of system crash phenomenon is avoided.

Description

technical field [0001] The present application relates to the field of computer technology, specifically to the field of information interaction technology, and in particular to a method and device for processing service interface call requests. Background technique [0002] At present, information exchange between different systems is usually realized by calling service interfaces. In the prior art, when calling a service interface, it usually obtains a connection from the connection pool first, then sends a service interface call request to the service interface provider through the obtained connection, and waits for the service interface provider to return the response result of the service interface . [0003] However, when there is an abnormality in the service interface requested to be called, if the existing technology is used, the thread used to request the call service interface will occupy the connection in the connection pool for a long time, and the connection c...

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/08G06F9/48
CPCG06F9/4806H04L67/60
Inventor 曹志飞
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products