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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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. ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com