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

Remote calling method and device, computer equipment and storage medium

A technology of remote calling and calling parties, applied in the field of data transmission, can solve problems such as impracticability, and achieve the effect of improving convenience

Pending Publication Date: 2021-01-05
彩讯科技股份有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, with the development of micro-services, it is gradually necessary for the server to obtain the information of the client, or to call each other between the clients, etc., which cannot be realized by the remote calling method in the prior art

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
  • Remote calling method and device, computer equipment and storage medium
  • Remote calling method and device, computer equipment and storage medium
  • Remote calling method and device, computer equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0026] figure 1 It is a flow chart of the remote calling method provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation where any two ends of the microservice perform remote procedure calls to each other, and the method can be executed by the remote call device provided by the embodiment of the present invention, and the device can be implemented by means of hardware and / or software Realization, generally can be integrated in computer equipment. Such as figure 1 As shown, it specifically includes the following steps:

[0027] S11. Invoke the target application program interface, and transfer invocation parameters to the target application program interface.

[0028] Remote Procedure Call (Remote Procedure Call, RPC), that is, a process that allows a computer to remotely call another computer to request services. server. In this embodiment, the caller may be a server (Server) or a client (Client). Specifically, the application pro...

Embodiment 2

[0039] figure 2 It is a flow chart of the remote calling method provided by Embodiment 2 of the present invention. The technical solution of this embodiment is further refined on the basis of the above technical solution. Optionally, before invoking the target application program interface and passing the calling parameters to the target application program interface, it also includes: registering one's own role on the gateway information and service information. Further optionally, sending the call parameters to the gateway through the target application program interface, so that the gateway determines the corresponding server, and forwards the call parameters to the service party, including: sending the call parameters to the gateway through the target application program interface, so that the The gateway judges whether the caller of the target application program interface has completed the registration and has the calling authority, and if the registration is completed...

Embodiment 3

[0051] image 3 It is a schematic diagram of the structure of the remote invoking device provided by Embodiment 3 of the present invention. The device can be implemented by hardware and / or software, and generally can be integrated into computer equipment. Such as image 3 As shown, the device includes:

[0052] The interface calling module 31 is used to call the target application program interface, and transfer the calling parameters to the target application program interface;

[0053] The parameter forwarding module 32 is used to send the call parameter to the gateway through the target application program interface, so that the gateway determines the corresponding service party, and forwards the call parameter to the service party;

[0054] The result receiving module 33 is configured to receive the result data returned by the service party through the gateway, and the result data is generated by the service party executing a command corresponding to the call parameter. ...

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 embodiment of the invention discloses a remote calling method and device, computer equipment and a storage medium. The method comprises the steps of calling a target application program interface,and transmitting calling parameters to the target application program interface; sending the calling parameter to a gateway through a target application program interface, so that the gateway determines a corresponding service party and forwards the calling parameter to the service party; and receiving result data returned by the server through the gateway, wherein the result data are generated by the server executing a command corresponding to the call parameter. According to the method provided by the embodiment of the invention, by setting the architecture of the calling party gateway service party, the mutual calling between the Server end and the Client ends, the mutual calling between the Client ends and the mutual calling between the Server ends are realized, particularly the mutual calling between the two Client ends of which the Internet Protocol (IP) addresses are not public network IPs is realized. The method is closer to the real requirement, and the convenience of programdevelopment is greatly improved.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of data transmission, and in particular to a remote calling method, device, computer equipment and storage medium. Background technique [0002] With the development of the Internet, the scale of the Internet is getting bigger and bigger, and the programs on the server side are also getting more and more complicated. In order to adapt to this state, the concept of microservices is proposed, and in order to realize microservices, the best way is to use remote procedure calls to realize the effect of calling services remotely like calling local functions. [0003] The current mainstream remote procedure calls include interface description language, binary communication protocol (Thrift) and open source distributed service framework (Dubbo), etc., and are generally based on server / client (Server / Client, C / S) mode for remote calls , so the service on the Server side can only be called ...

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/54H04L29/06
CPCG06F9/548G06F2209/541G06F2209/549H04L67/133H04L67/01
Inventor 杨良志白琳汪志新白小刚杨磊
Owner 彩讯科技股份有限公司
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