Component calling method, device and system, server and readable medium

An application server and server technology, applied in the computer field, can solve problems such as failure to guarantee normal call of components, unavailability, failure to receive call requests normally, etc.

Pending Publication Date: 2020-08-11
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] When thread blocking occurs in the component market, it may lead to the inability to normally receive the invocation request of the new component invoking the application server, and / or the inability to normally receive the invocation result sent by the application server provided by the component, which wastes the thread resources of the server in the component market, and The normal invocation of components cannot be guaranteed; when a large number of components in parallel received by the component market call the application server, the thread resources of the server in the component market may be exhausted, which may cause the performance of each interface in the component market to degrade or even become unavailable, making the component Abnormal call or even the server crash of the component market, that is, the server stability of the component market is poor

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
  • Component calling method, device and system, server and readable medium
  • Component calling method, device and system, server and readable medium
  • Component calling method, device and system, server and readable medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0073] image 3 It is a flowchart of a method for invoking a component provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation of invoking components. The method can be implemented by a component market server, specifically through software and / or hardware in the server. see image 3 , the component calling method includes the following steps:

[0074] S310. Receive a component invocation request sent by the component invocation application server, wherein the component invocation request includes a callback parameter.

[0075] Wherein, the callback parameters include: the Internet protocol address, the port number and the callback token of the component calling the application server. Wherein, the callback parameter can be used for the component to provide the application server to call back the result of invoking the component method to the component invoking the callback step of the application server.

[0076] Among them, the In...

Embodiment 2

[0094] Figure 4 It is a flow chart of a method for invoking a component provided by Embodiment 2 of the present invention. This embodiment is applicable to the situation of invoking a component. The method can be implemented by invoking an application server by a component, and can be specifically implemented by software and / or hardware in the server . see Figure 4 , the component calling method includes the following steps:

[0095] S410. Receive a component calling instruction, and generate a component calling request including a callback parameter according to the component calling instruction;

[0096] S420. Send the component calling request to the component market server, so that the component market server sends the component calling request to the component providing application server;

[0097] S430. Receive an invocation success message sent by the component market server, wherein the invocation success message is sent to the component market server by the compo...

Embodiment 3

[0105] Figure 5 It is a flow chart of a method for invoking a component provided by Embodiment 3 of the present invention. This embodiment is applicable to the situation of invoking a component. The method can be implemented by an application server provided by the component, and can be specifically implemented by software and / or hardware in the server . see Figure 5 , the component calling method includes the following steps:

[0106] S510. Receive a component invocation request including a callback parameter sent by the component market server; the component invocation request is sent by the component invocation application server to the component market server;

[0107] S520. Generate a call success message according to the component call request, and send the call success message to the component market server, so that the component market server terminates the first thread for processing the component call request according to the call success message, and send the ca...

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

An embodiment of the invention discloses a component calling method, a component calling device, a component calling system, a server and a readable medium. The component calling method comprises thefollowing steps of: receiving a component calling request comprising callback parameters; transmitting the component calling request to a component providing application server through a created firstthread, enabling the component providing application server to generate a calling success message and calls a component method, transmitting the calling success message to a component market server,and calling a result of calling the component method back to the component calling application server according to the callback parameters; and receiving the calling success message, terminating the first thread according to the calling success message, and transmitting the calling success message to a component calling application server, so that the component calling application server waits forthe result called back by the component providing application server. According to the component calling method, the component calling device, the component calling system, the server and the readable medium provided by the embodiment of the invention, normal calling of the component is ensured, and the stability and the resource utilization rate of the servers in the component market are improved.

Description

technical field [0001] The embodiment of the present invention relates to computer technology, and in particular to a component calling method, device, system, server and readable medium. Background technique [0002] In the prior art, the commonly used component invocation method flow is mainly: the component invocation application server sends a component invocation request to the component providing application server through the component market; the component providing application server also successfully invokes the invocation result to the component invoking application through the component market server. [0003] In the course of realizing the present invention, the inventor finds that there are at least the following problems in the prior art: [0004] When thread blocking occurs in the component market, it may lead to the inability to normally receive the invocation request of the new component invoking the application server, and / or the inability to normally rec...

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/445
CPCG06F9/44521
Inventor 韩铭
Owner BEIJING JINGDONG SHANGKE INFORMATION 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