CN115114047A - Remote calling method, system, device, electronic equipment and storage medium - Google Patents
Remote calling method, system, device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN115114047A CN115114047A CN202210602029.1A CN202210602029A CN115114047A CN 115114047 A CN115114047 A CN 115114047A CN 202210602029 A CN202210602029 A CN 202210602029A CN 115114047 A CN115114047 A CN 115114047A
- Authority
- CN
- China
- Prior art keywords
- calling
- current
- return value
- request
- call
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/547—Remote procedure calls [RPC]; Web services
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/54—Indexing scheme relating to G06F9/54
- G06F2209/544—Remote
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer And Data Communications (AREA)
- Telephonic Communication Services (AREA)
Abstract
The application relates to a remote calling method, a system, a device, electronic equipment and a storage medium, which are applied to the technical field of computers, wherein the method comprises the following steps: receiving a current calling request sent by a calling initiator, wherein the current calling request comprises a history reference parameter, the history reference parameter is used for referring to a history calling return value called by a previous calling request, and the previous calling request is a calling request acquired before the current calling request; obtaining a history calling return value referred by the history reference parameter in the local area; obtaining a current calling return value based on the historical calling return value and the current calling request calling; and sending the current call return value to the call initiating end. The method and the device solve the problems that in the prior art, the calling initiating terminal needs to wait for the return value of the opposite terminal and then can call next time, so that the waiting process time is wasted, and the execution time of a program is prolonged.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a remote invocation method, system, apparatus, electronic device, and storage medium.
Background
The synchronous remote call is a basic technology in a service-oriented architecture, and a local process can call a service function provided by a remote end through the synchronous remote call. Generally, a synchronous remote call refers to a process on computer A calling a process on another computer B, wherein the calling process on computer A is suspended and the called process executing on computer B begins executing and the computer A process continues when a value is returned to computer A.
In the related art, when synchronous remote invocation is performed, a process often needs to wait for the return of an opposite terminal, and then the invocation is ended. However, when the call initiator calls for the second time, it is not necessary for the first time to call the value that the opposite terminal needs to return as the entry parameter, and the call initiator needs to wait for the value that the opposite terminal returns before calling for the next time, which results in the waste of the waiting time and increases the execution time of the program.
Disclosure of Invention
The application provides a remote calling method, a remote calling system, a remote calling device, an electronic device and a storage medium, which are used for solving the problems that in the prior art, a calling initiating terminal needs to wait for a return value of an opposite terminal and then can carry out next calling, so that the waste of waiting process time is caused, and the execution time of a program is prolonged.
In a first aspect, an embodiment of the present application provides a remote invocation method, including:
receiving a current calling request sent by a calling initiator, wherein the current calling request comprises a history reference parameter, the history reference parameter is used for referring to a history calling return value called by a previous calling request, and the previous calling request is a calling request acquired before the current calling request;
obtaining a history calling return value referred by the history reference parameter in the local area;
obtaining a current calling return value based on the historical calling return value and the current calling request calling;
and sending the current call return value to the call initiating end.
Optionally, before receiving the current call request sent by the call initiator, the method further includes:
receiving a previous calling request sent by the calling initiator, wherein the previous calling request comprises history reference parameters;
and when the historical reference parameters are determined not to be stored in the calling receiving terminal, calling based on the previous calling request to obtain a historical calling return value, and establishing a mapping relation between the historical calling return value and the historical reference parameters.
Optionally, the obtaining the historical invocation return value referred by the historical reference parameter from the invocation receiving end includes:
and inquiring and extracting the historical calling return value referred by the historical reference parameter from a mapping relation between the pre-stored reference parameter and the calling return value.
Optionally, the current invocation request further includes a target invocation frequency, and after obtaining the current invocation return value based on the historical invocation return value and the current invocation request, the method further includes:
after the current calling return value is obtained, adding one to the original calling times to obtain intermediate calling times;
the sending the current call return value to the call initiating terminal includes:
and when the intermediate calling times are monitored to be the same as the target calling times, sending the current calling return value to the calling initiating end.
Optionally, the category of the history reference parameter includes at least one of a key value, a sequence number and a hash value, and the history reference parameters referred by different history call return values are different.
In a second aspect, an embodiment of the present application provides a remote invocation method, applied to an invocation initiator, including:
acquiring a history reference parameter, wherein the history reference parameter is used for referring to a history calling return value called by a previous calling request;
sending a current calling request to a calling receiving terminal, wherein the current calling request comprises historical reference parameters so that the calling receiving terminal receives the current calling request; obtaining a history calling return value referred by the history reference parameter in the local area; obtaining a current calling return value based on the historical calling return value and the current calling request calling; and sending the current call return value to the call initiating end.
In a third aspect, an embodiment of the present application provides a remote invocation system, including: calling an initiating terminal and calling a receiving terminal;
the calling initiating terminal is used for acquiring historical reference parameters and sending a current calling request to a calling receiving terminal, wherein the current calling request comprises the historical reference parameters, the historical reference parameters are used for referring to historical calling return values called by a previous calling request, and the previous calling request is a calling request acquired before the current calling request;
the call receiving end is used for receiving the current call request sent by the call initiating end; obtaining a history calling return value referred by the history reference parameter in the local area; obtaining a current calling return value based on the historical calling return value and the current calling request calling; and sending the current call return value to the call initiating end.
In a fourth aspect, an embodiment of the present application provides a remote invocation device, including:
a receiving module, configured to receive a current call request sent by a call initiator, where the current call request includes a history reference parameter, the history reference parameter is used to refer to a history call return value called by a previous call request, and the previous call request is a call request obtained before the current call request;
the first acquisition module is used for acquiring a history calling return value referred by the history reference parameter in the local area;
the calling module is used for calling based on the historical calling return value and the current calling request to obtain a current calling return value;
and the first sending module is used for sending the current call return value to the call initiating end.
In a fifth aspect, an embodiment of the present application provides a remote invocation device, including:
the second acquisition module is used for acquiring historical reference parameters, and the historical reference parameters are used for referring to historical calling return values called by the previous calling request;
the second sending module is used for sending a current calling request to a calling receiving terminal, wherein the current calling request comprises historical reference parameters so that the calling receiving terminal receives the current calling request; obtaining a history calling return value referred by the history reference parameter in the local area; obtaining a current calling return value based on the historical calling return value and the current calling request calling; and sending the current call return value to the call initiating end.
In a sixth aspect, an embodiment of the present application provides an electronic device, including: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
the memory for storing a computer program;
the processor is configured to execute the program stored in the memory to implement the remote invocation method of the first aspect or the second aspect.
In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the remote invocation method of the first aspect or the second aspect.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages: according to the method provided by the embodiment of the application, a current calling request sent by a calling initiator is received, the current calling request comprises a history reference parameter, the history reference parameter is used for referring to a history calling return value called by a previous calling request, and the previous calling request is a calling request acquired before the current calling request; obtaining a history calling return value referred by the history reference parameter in the local area; obtaining a current calling return value based on the historical calling return value and the current calling request calling; and sending the current call return value to the call initiating end. . Therefore, the historical calling return value can be directly obtained at the calling receiving end locally without waiting for the historical calling return value when the calling is called, so that the time for the calling initiating end to wait for the historical calling return value to return is saved, the execution time of the program is shortened, and the calling efficiency is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a flowchart of a remote invocation method according to an embodiment of the present application;
FIG. 2 is a flow chart of a remote invocation method according to another embodiment of the present application;
FIG. 3 is a flowchart of a remote invocation method according to another embodiment of the application;
FIG. 4 is a block diagram of a remote invocation system provided in an embodiment of the present application;
FIG. 5 is a block diagram of a remote invocation device according to an embodiment of the present application;
FIG. 6 is a block diagram of a remote invocation device according to another embodiment of the present application;
fig. 7 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
An embodiment of the present application provides a remote invocation method, which may be applied to any form of electronic devices, such as a terminal or a server of an invocation receiving end. As shown in fig. 1, the remote invocation method includes:
In some embodiments, in order to avoid the situation that the call initiator starts to perform the next process after obtaining the call return value, and time is wasted, when the call initiator sends the current call request to the call receiver, a reference parameter is added to the current call request, so that the reference parameter refers to the call return value, when calling next time, the reference parameter is sent to the call receiver without taking the previous return value as an input parameter, and the call return value called last time is determined through the reference parameter, and then the call is performed.
After obtaining the historical reference parameters, the call initiating end adds the historical reference parameters to the current call request, so that the current call request comprising the historical reference parameters is obtained.
The calling receiving end obtains the current calling request sent by the calling initiating end and extracts the historical reference parameters carried by the current calling request from the current calling request.
The types of the history reference parameters are various, for example, the types of the history reference parameters include at least one of key values, sequence numbers and hash values.
Further, since the call return value is different at each time, the different call return values are not mixed up. The historical reference parameters correspond to the historical calling return values one by one, and the historical reference parameters referred by different historical calling return values are different.
It is to be understood that the previous invocation request may be an invocation request of the previous invocation request of the current invocation request, or may be any one or more of the previous invocation requests. When the previous calling request is multiple times, the history reference parameter is multiple and is consistent with the number of the calling requests.
In an optional embodiment, before receiving the current invocation request sent by the invocation initiator, the method further includes:
receiving a previous calling request sent by the calling initiator, wherein the previous calling request comprises history reference parameters; and when the historical reference parameters are determined not to be stored in the calling receiving terminal, calling based on the previous calling request to obtain a historical calling return value, and establishing a mapping relation between the historical calling return value and the historical reference parameters. .
In some embodiments, for avoiding the waiting time for the call initiator to wait for the return of the call return value, when the history reference parameter is carried in the previous call request sent by the call initiator, if the history reference parameter is not stored in the call receiver, the mapping relationship between the history call return value and the history reference parameter is established after the call receiver calls the history call return value obtained by the call, and the call initiator does not need to wait for the return of the call return value, so that the call initiator can initiate the next call after initiating the call.
It can be understood that, in another embodiment, a corresponding relationship between a history call return value and a history reference parameter may also be directly established, the history reference parameter is carried in a next current call request, if the next current call request still does not need to wait for the call return value, a current reference parameter different from the history reference parameter may be added in the next current call request, the current reference parameter and the history reference parameter are jointly sent to a call receiving end together with the current call request, so that the history call return value corresponding to the current reference parameter is determined based on the history reference parameter in the current call request, and the corresponding relationship between the current reference parameter and the current call return value obtained by the current call is established.
And 102, acquiring a history calling return value referred by the history reference parameter in the local area.
In some embodiments, the history calling return value for the previous calling and the history reference parameter referred by the history calling return value are stored in the memory of the calling receiving terminal correspondingly, so that after the history reference parameter is acquired, the history calling return value can be inquired from the memory of the calling receiving terminal according to the history reference parameter, and after the history reference parameter in the memory is inquired, the history calling return value referred to and stored is obtained.
In an optional embodiment, the obtaining a history call return value referred by the history reference parameter in the local includes:
and inquiring to obtain the historical calling return value referred by the historical reference parameter from the mapping relation between the pre-stored reference parameter and the calling return value.
Optionally, the memory of the call receiving end stores the mapping relationship between all the call return values and the reference parameters before the current call, so that after the historical reference parameters are obtained, the historical call return values referred by the historical reference parameters can be searched from the stored mapping relationship.
And 103, calling based on the historical calling return value and the current calling request to obtain a current calling return value.
In some embodiments, after the historical call return value is obtained, remote call may be performed based on the historical call return value and the current call request, so as to obtain a current call return value corresponding to the current call request.
And step 104, sending the current call return value to the call initiating end.
In some embodiments, after the call obtains the current call return value, the current call return value may be sent to the call initiator. The current call return value may be directly sent to the call originating terminal after the call is obtained, or may be sent to the call originating terminal after the return condition is satisfied.
For example, the return condition may be that the current call return value is returned after receiving a return value request sent by the call initiator.
In an optional embodiment, the current call request further includes a target number of calls, and after obtaining a current call return value based on the historical call return value and the current call request call, the method further includes:
after the current calling return value is obtained, adding one to the original calling times to obtain intermediate calling times;
the sending the current call return value to the call initiating terminal includes:
and when the intermediate calling times are monitored to be the same as the target calling times, sending the current calling return value to the calling initiating end.
In some embodiments, the call initiator may require multiple calls to be able to obtain the final desired call return value. Based on the method, the calling times are set in the current calling request, and after each calling is finished, the original calling times are added by one to obtain the intermediate calling times; and when the intermediate calling times are monitored to be the same as the calling times, sending a remote calling result to the calling initiating end. The initial value of the original number of calls may be, but is not limited to, 0.
The calling times are used for indicating the times that the calling initiating end needs to call. It can be understood that, after each remote call is completed, when the next call is performed, the number of calls in the current call request is reduced by one, and a call return value indicating the call is sent to the call initiation end until the number of calls is zero.
According to the remote calling method, the number of times of waiting for a return value in continuous synchronous calling of a remote calling client (namely a calling initiator) program is reduced through object reference, the execution time of the program is shortened, and the execution efficiency of the program is improved. And moreover, the risk of being identified and cracked when being monitored by a network is reduced by reducing the times of transmitting variable values in remote calling.
In a specific embodiment, referring to fig. 2, the remote invocation method includes:
when a remote calling client program is continuously and synchronously called, when a return value of first remote calling is only used as an input parameter of second remote calling, the remote calling client does not need to know the actual return value of the first remote calling actually, and the return value is appointed to a remote calling server (namely a calling receiving end) through a key value; therefore, when the remote calling client program carries out the first remote calling, the required return value can be directly referred by using a key value and is transmitted to the remote calling server program as an input parameter. The remote call server program identifies this key value and takes it as the reference key value for the remote call return value. When the remote calling client calls the client program to perform the second remote calling and needs to use the return value of the first remote calling as the entry parameter, the key value in the first remote calling is directly used to refer to the entry parameter. When the remote calling server receives the second remote calling, the key value is identified, and the real value of the key value is mapped to the entry parameter of the second remote calling.
It should be understood that, although fig. 2 shows that the number of calls is two, it does not mean that all remote calls are performed only twice, and the number can be set according to actual situations.
The remote calling method reduces the execution time of the remote calling program and reduces the number of small data packets in the network by aggregating the remote synchronous calling return values based on the idea that the variables need to be assigned when in use.
Based on the same concept, an embodiment of the present application provides a remote invocation method, and specific implementation of the method may refer to the description of the above method embodiment, and repeated details are not described again. The method can be applied to any form of electronic equipment, such as a terminal or a server of a call initiating terminal. As shown in fig. 3, the remote invocation method includes:
301, obtaining a history reference parameter, wherein the history reference parameter is used for referring to a history calling return value called by a previous calling request;
Based on the same concept, the embodiment of the present application provides a remote invocation system, and the specific implementation of the system may refer to the description of the method embodiment section, and repeated details are not repeated, as shown in fig. 4, the system mainly includes: an invoking initiating terminal 401 and an invoking receiving terminal 402;
the call initiator 401 is configured to obtain a history reference parameter, and send a current call request to a call receiver, where the current call request includes the history reference parameter, the history reference parameter is used to refer to a history call return value called by a previous call request, and the previous call request is a call request obtained before the current call request;
a call receiving end 402, configured to receive the current call request sent by the call initiating end; obtaining a history calling return value referred by the history reference parameter in the local; obtaining a current calling return value based on the historical calling return value and the current calling request calling; and sending the current call return value to the call initiating end.
Based on the same concept, embodiments of the present application provide a remote invocation device, and specific implementation of the device may refer to descriptions in the method embodiment section, and repeated descriptions are omitted, as shown in fig. 5, the device mainly includes:
a receiving module 501, configured to receive a current call request sent by a call initiator, where the current call request includes a history reference parameter, the history reference parameter is used to refer to a history call return value called by a previous call request, and the previous call request is a call request obtained before the current call request;
a first obtaining module 502, configured to obtain a history call return value referred by the history reference parameter in a local area;
a calling module 503, configured to call based on the historical call return value and the current call request to obtain a current call return value;
a first sending module 504, configured to send the current call return value to the call initiating end.
Based on the same concept, embodiments of the present application provide a remote invocation device, and specific implementation of the device may refer to descriptions in the method embodiment section, and repeated descriptions are omitted, as shown in fig. 6, the device mainly includes:
a second obtaining module 601, configured to obtain a history reference parameter, where the history reference parameter is used to refer to a history call return value called by a previous call request;
a second sending module 602, configured to send a current invocation request to an invocation receiving end, where the current invocation request includes a history reference parameter, so that the invocation receiving end receives the current invocation request; obtaining a history calling return value referred by the history reference parameter in the local area; obtaining a current calling return value based on the historical calling return value and the current calling request calling; and sending the current call return value to the call initiating end.
Based on the same concept, an embodiment of the present application further provides an electronic device, as shown in fig. 7, the electronic device mainly includes: a processor 701, a memory 702, and a communication bus 703, wherein the processor 701 and the memory 702 communicate with each other via the communication bus 703. The memory 702 stores a program executable by the processor 701, and the processor 701 executes the program stored in the memory 702 to implement the following steps:
receiving a current calling request sent by a calling initiator, wherein the current calling request comprises a history reference parameter, the history reference parameter is used for referring to a history calling return value called by a previous calling request, and the previous calling request is a calling request acquired before the current calling request;
obtaining a history calling return value referred by the history reference parameter in the local area;
obtaining a current calling return value based on the historical calling return value and the current calling request calling;
and sending the current call return value to the call initiating end. Or the like, or, alternatively,
acquiring a history reference parameter, wherein the history reference parameter is used for referring to a history calling return value called by a previous calling request;
sending a current calling request to a calling receiving terminal, wherein the current calling request comprises historical reference parameters so that the calling receiving terminal receives the current calling request; obtaining a history calling return value referred by the history reference parameter in the local area; obtaining a current calling return value based on the historical calling return value and the current calling request calling; and sending the current call return value to the call initiating end.
The communication bus 703 mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus 703 may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 7, but this is not intended to represent only one bus or type of bus.
The Memory 702 may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Alternatively, the memory may be at least one memory device located remotely from the processor 701.
The Processor 701 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like, or may be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic devices, discrete gates or transistor logic devices, and discrete hardware components.
The electronic device provided by the embodiment of the application can be a module capable of realizing a communication function or a terminal device comprising the module, and the terminal device can be a mobile terminal or an intelligent terminal. The mobile terminal can be at least one of a mobile phone, a tablet computer, a notebook computer and the like; the intelligent terminal can be a terminal containing a wireless communication module, such as an intelligent automobile, an intelligent watch, a shared bicycle, an intelligent cabinet and the like; the module may be a wireless communication module, such as any one of a 2G communication module, a 3G communication module, a 4G communication module, a 5G communication module, and an NB-IOT communication module.
In yet another embodiment of the present application, there is also provided a computer-readable storage medium having stored therein a computer program which, when run on a computer, causes the computer to execute the remote invocation method described in the above embodiment.
In the above embodiments, all or part of the implementation may be realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wirelessly (e.g., infrared, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more of the available media. The available media may be magnetic media (e.g., floppy disks, hard disks, tapes, etc.), optical media (e.g., DVDs), or semiconductor media (e.g., solid state drives), among others.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (11)
1. A remote calling method is applied to a calling receiving end and comprises the following steps:
receiving a current calling request sent by a calling initiator, wherein the current calling request comprises a history reference parameter, the history reference parameter is used for referring to a history calling return value called by a previous calling request, and the previous calling request is a calling request acquired before the current calling request;
obtaining a history calling return value referred by the history reference parameter in the local area;
obtaining a current calling return value based on the historical calling return value and the current calling request calling;
and sending the current call return value to the call initiating end.
2. The remote invocation method according to claim 1, wherein before receiving the current invocation request sent by the invocation initiator, the method further comprises:
receiving a previous calling request sent by the calling initiator, wherein the previous calling request comprises history reference parameters;
and when the historical reference parameters are determined not to be stored in the calling receiving terminal, calling based on the previous calling request to obtain a historical calling return value, and establishing a mapping relation between the historical calling return value and the historical reference parameters.
3. The remote invocation method according to claim 2, wherein the obtaining of the historical invocation return value referred by the historical reference parameter in the local invocation comprises:
and inquiring and extracting the historical calling return value referred by the historical reference parameter from a mapping relation between the pre-stored reference parameter and the calling return value.
4. The remote invocation method according to claim 1, wherein the current invocation request further includes a target number of invocations, and after obtaining a current invocation return value based on the historical invocation return value and the current invocation request invocation, further includes:
after the current calling return value is obtained, adding one to the original calling times to obtain intermediate calling times;
the sending the current call return value to the call initiating terminal includes:
and when the intermediate calling times are monitored to be the same as the target calling times, sending the current calling return value to the calling initiating end.
5. The remote invocation method according to any one of claims 1 to 4, wherein the category of the historical reference parameter comprises at least one of a key value, a sequence number and a hash value, and the historical reference parameter referred to by different return values of the historical invocation is different.
6. A remote calling method is applied to a call initiating terminal and comprises the following steps:
acquiring a history reference parameter, wherein the history reference parameter is used for referring to a history calling return value called by a previous calling request;
sending a current calling request to a calling receiving terminal, wherein the current calling request comprises historical reference parameters so that the calling receiving terminal receives the current calling request; obtaining a history calling return value referred by the history reference parameter in the local area; obtaining a current calling return value based on the historical calling return value and the current calling request calling; and sending the current call return value to the call initiating end.
7. A remote invocation system, comprising: calling an initiating terminal and a calling receiving terminal;
the calling initiating terminal is used for acquiring historical reference parameters and sending a current calling request to a calling receiving terminal, wherein the current calling request comprises the historical reference parameters, the historical reference parameters are used for referring to historical calling return values called by a previous calling request, and the previous calling request is a calling request acquired before the current calling request;
the call receiving end is used for receiving the current call request sent by the call initiating end; obtaining a history calling return value referred by the history reference parameter in the local area; obtaining a current calling return value based on the historical calling return value and the current calling request calling; and sending the current call return value to the call initiating end.
8. A remote invocation device, comprising:
a receiving module, configured to receive a current call request sent by a call initiator, where the current call request includes a history reference parameter, the history reference parameter is used to refer to a history call return value called by a previous call request, and the previous call request is a call request obtained before the current call request;
the first acquisition module is used for acquiring a history calling return value referred by the history reference parameter in the local area;
the calling module is used for calling based on the historical calling return value and the current calling request to obtain a current calling return value;
and the first sending module is used for sending the current call return value to the call initiating end.
9. A remote invocation device, comprising:
the second acquisition module is used for acquiring historical reference parameters, and the historical reference parameters are used for referring to historical calling return values called by the previous calling request;
the second sending module is used for sending a current calling request to a calling receiving terminal, wherein the current calling request comprises historical reference parameters so that the calling receiving terminal receives the current calling request; obtaining a history calling return value referred by the history reference parameter in the local area; obtaining a current calling return value based on the historical calling return value and the current calling request calling; and sending the current call return value to the call initiating end.
10. An electronic device, comprising: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
the memory for storing a computer program;
the processor, configured to execute the program stored in the memory, and to implement the remote invocation method of any one of claims 1-5 or the remote invocation method of claim 6.
11. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the remote invocation method of any of claims 1-5 or the remote invocation method of claim 6.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210602029.1A CN115114047A (en) | 2022-05-30 | 2022-05-30 | Remote calling method, system, device, electronic equipment and storage medium |
PCT/CN2022/137142 WO2023231357A1 (en) | 2022-05-30 | 2022-12-07 | Remote calling method, system and apparatus, and electronic device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210602029.1A CN115114047A (en) | 2022-05-30 | 2022-05-30 | Remote calling method, system, device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115114047A true CN115114047A (en) | 2022-09-27 |
Family
ID=83327279
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210602029.1A Pending CN115114047A (en) | 2022-05-30 | 2022-05-30 | Remote calling method, system, device, electronic equipment and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN115114047A (en) |
WO (1) | WO2023231357A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023231357A1 (en) * | 2022-05-30 | 2023-12-07 | 锐凌无线有限责任公司 | Remote calling method, system and apparatus, and electronic device and storage medium |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003114824A (en) * | 2001-10-04 | 2003-04-18 | Canon I-Tech Inc | Distributed processing system |
JP5635760B2 (en) * | 2009-10-16 | 2014-12-03 | キヤノン株式会社 | Information processing system, information processing method, and computer program |
CN103645940A (en) * | 2013-12-04 | 2014-03-19 | 清华大学 | Remote calling method and system |
CN113778871A (en) * | 2021-09-07 | 2021-12-10 | 未鲲(上海)科技服务有限公司 | Mock testing method, device, equipment and storage medium |
CN115114047A (en) * | 2022-05-30 | 2022-09-27 | 锐凌无线有限责任公司 | Remote calling method, system, device, electronic equipment and storage medium |
-
2022
- 2022-05-30 CN CN202210602029.1A patent/CN115114047A/en active Pending
- 2022-12-07 WO PCT/CN2022/137142 patent/WO2023231357A1/en unknown
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023231357A1 (en) * | 2022-05-30 | 2023-12-07 | 锐凌无线有限责任公司 | Remote calling method, system and apparatus, and electronic device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2023231357A1 (en) | 2023-12-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108449312B (en) | Protocol conversion method, device, system and gateway | |
CN113141383A (en) | Device information subscription method, client, server, system and storage medium | |
CN113364853A (en) | Business service system, business request method and gateway equipment | |
CN110275790A (en) | Inter-process communication synchronization callback method, system and related equipment in application program | |
CN111581502A (en) | Information notification method and device | |
CN114090623A (en) | Method and device for creating cache resources, electronic equipment and storage medium | |
CN115114047A (en) | Remote calling method, system, device, electronic equipment and storage medium | |
CN113312374A (en) | Data query method, device, equipment and storage medium | |
CN112818336A (en) | Data access method, data access device and computer readable storage medium | |
CN108733527B (en) | System, method and apparatus for testing server functionality | |
CN114327710A (en) | Function management method, management device, terminal equipment and readable storage medium | |
CN109510850A (en) | The processing method of browse request, apparatus and system | |
CN112468585B (en) | Data transmission method and device, electronic equipment and storage medium | |
CN114090268B (en) | Container management method and container management system | |
CN114285890B (en) | Cloud platform connection method, device, equipment and storage medium | |
CN113760487B (en) | Service processing method and device | |
CN112540804B (en) | Applet running method and device, electronic equipment and medium | |
CN114764713A (en) | Method and device for generating merchant patrol task, electronic equipment and storage medium | |
CN112306791B (en) | Performance monitoring method and device | |
CN113742101A (en) | Data intercommunication method, device, equipment and readable storage medium | |
CN113014456A (en) | Monitoring data transmission system, method, device, equipment and storage medium | |
CN113590234A (en) | Method, device and equipment for automatically acquiring data and storage medium | |
CN112306797A (en) | Embedded point information reporting method and device, storage medium and electronic equipment | |
CN112651212A (en) | Method and terminal for remotely acquiring word stock | |
CN115208936A (en) | Remote calling method, system, device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |