Remote Call Method, System, Device, Electronic Device and Storage Medium

By using historical reference parameters in remote call requests, the historical call return value is directly obtained locally on the call receiving end, which solves the problem of wasting time in waiting process in synchronous remote call and improves the execution efficiency of the program.

CN115114047BActive Publication Date: 2025-06-03ROLLING WIRELESS SARL
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210602029.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-30
Publication Date
2025-06-03
Estimated Expiration
2042-05-30

AI Technical Summary

Technical Problem

During the synchronous remote call, the initiator needs to wait for the peer to return the value before making the next call, resulting in a waste of waiting process time and an increase in program execution time.

Method used

By adding historical reference parameters to the current call request, referring to the historical call return value of the previous call request, the call receiving end locally obtains the historical call return value, and directly performs the next call to avoid waiting for the historical call to return value.

Benefits of technology

It shortens the execution time of the program, improves the calling efficiency, and reduces the waiting time of the call initiator.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115114047B_ABST
    Figure CN115114047B_ABST
Patent Text Reader

Abstract

The present application relates to a remote call method, system, device, electronic device and storage medium, which are applied to the field of computer technology. Among them, the method includes: receiving a current call request sent by a call initiating end, where the current call request includes a historical reference parameter for referring to a historical call return value called by a previous call request, and the previous call request is a call request obtained before the current call request; obtaining the historical call return value referred to by the historical reference parameter locally; obtaining a current call return value by calling based on the historical call return value and the current call request; and sending the current call return value to the call initiating end. This solves the problem in the prior art that the call initiating end needs to wait for the return value from the other end before making the next call, resulting in a waste of waiting time and an increase in the execution duration of the program.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular, to a remote call method, system, device, electronic device, and storage medium. Background Art

[0002] Synchronous remote call is a basic technology in the service-oriented architecture. Through synchronous remote call, a local process can call a service function provided by a remote end. Generally, synchronous remote call means that a process on computer A calls a process on another computer B. Among them, the calling process on computer A is suspended, and the called process executed on computer B starts to execute. When the value is returned to computer A, the process on computer A continues to execute.

[0003] In the related art, during synchronous remote call, the process often needs to wait for the return from the peer end before the call ends. However, usually when the call initiator makes a second call, it does not need the value returned by the peer end in the first call as an input parameter for the call. Instead, the call initiator needs to wait for the peer end to return the value before making the next call, resulting in a waste of waiting time and increasing the execution duration of the program. Summary of the Invention

[0004] This application provides a remote call method, system, device, electronic device, and storage medium to solve the problem in the prior art that the call initiator needs to wait for the peer end to return the value before making the next call, resulting in a waste of waiting time and increasing the execution duration of the program.

[0005] In a first aspect, an embodiment of this application provides a remote call method, including:

[0006] Receiving a current call request sent by a call initiator, where the current call request includes a historical reference parameter, and the historical reference parameter is used to refer to a historical call return value called by a previous call request, and the previous call request is a call request obtained before the current call request;

[0007] Obtaining a historical call return value referred to by the historical reference parameter in the local;

[0008] Based on the historical call return value and the current call request, calling to obtain a current call return value;

[0009] Sending the current call return value to the call initiator.

[0010] Optionally, before receiving the current call request sent by the call initiator, it further includes:

[0011] Receiving a previous call request sent by the call initiator, where the previous call request includes a historical reference parameter;

[0012] When it is determined that the historical reference parameter is not stored in the call receiving end, a call is made based on the previous call request to obtain a historical call return value, and a mapping relationship between the historical call return value and the historical reference parameter is established.

[0013] Optionally, the obtaining the historical call return value referred to by the historical reference parameter from the call receiving end includes:

[0014] Querying and extracting from the pre-stored mapping relationship between the reference parameter and the call return value the historical call return value referred to by the historical reference parameter.

[0015] Optionally, the current call request further includes a target call count. After obtaining the current call return value by making a call based on the historical call return value and the current call request, the following steps are further included:

[0016] After obtaining the current call return value, increment the original call count by one to obtain an intermediate call count;

[0017] The sending the current call return value to the call initiating end includes:

[0018] When it is monitored that the intermediate call count is the same as the target call count, sending the current call return value to the call initiating end.

[0019] Optionally, the category of the historical reference parameter includes at least one of a key value, a serial number, and a hash value, and different historical reference parameters refer to different historical call return values.

[0020] In a second aspect, an embodiment of the present application provides a remote call method applied to a call initiating end, including:

[0021] Obtaining a historical reference parameter, where the historical reference parameter is used to refer to a historical call return value obtained by a previous call request;

[0022] Sending a current call request to a call receiving end, where the current call request includes a historical reference parameter, so that the call receiving end receives the current call request; obtaining the historical call return value referred to by the historical reference parameter in the local; obtaining a current call return value by making a call based on the historical call return value and the current call request; and sending the current call return value to the call initiating end.

[0023] In a third aspect, an embodiment of the present application provides a remote call system, including: a call initiating end and a call receiving end;

[0024] The call initiating end is used to obtain historical reference parameters, send a current call request to the call receiving end, where the current call request includes the historical reference parameters, and the historical reference parameters are used to refer to the historical call return value called by the previous call request, and the previous call request is a call request obtained before the current call request;

[0025] The call receiving end is used to receive the current call request sent by the call initiating end; obtain the historical call return value referred to by the historical reference parameter in the local; call to obtain the current call return value based on the historical call return value and the current call request; and send the current call return value to the call initiating end.

[0026] In a fourth aspect, an embodiment of the present application provides a remote call device, including:

[0027] A receiving module is used to receive the current call request sent by the call initiating end, where the current call request includes the historical reference parameters, and the historical reference parameters are used to refer to the historical call return value called by the previous call request, and the previous call request is a call request obtained before the current call request;

[0028] A first obtaining module is used to obtain the historical call return value referred to by the historical reference parameter in the local;

[0029] A calling module is used to call to obtain the current call return value based on the historical call return value and the current call request;

[0030] A first sending module is used to send the current call return value to the call initiating end.

[0031] In a fifth aspect, an embodiment of the present application provides a remote call device, including:

[0032] A second obtaining module is used to obtain the historical reference parameters, and the historical reference parameters are used to refer to the historical call return value called by the previous call request;

[0033] A second sending module is used to send a current call request to the call receiving end, where the current call request includes the historical reference parameters, so that the call receiving end receives the current call request; obtain the historical call return value referred to by the historical reference parameter in the local; call to obtain the current call return value based on the historical call return value and the current call request; and send the current call return value to the call initiating end.

[0034] In a sixth aspect, an embodiment of the present application provides an electronic device, including: a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;

[0035] The memory is used to store a computer program;

[0036] The processor is used to execute the program stored in the memory to implement the remote call method described in the first aspect or the second aspect.

[0037] In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the remote call method described in the first aspect or the second aspect is implemented.

[0038] The above technical solution provided by the embodiment of the present application has the following advantages compared with the prior art: In the method provided by the embodiment of the present application, by receiving a current call request sent by a call initiating end, the current call request includes a historical reference parameter for referring to a historical call return value called by a previous call request, and the previous call request is a call request obtained before the current call request; obtaining the historical call return value referred to by the historical reference parameter locally; obtaining a current call return value by calling based on the historical call return value and the current call request; and sending the current call return value to the call initiating end. In this way, by adding a historical reference parameter to the current call request, since the historical reference parameter can refer to the historical call return value of the previous call, when making this call, there is no need to wait for the historical call return value, and the historical call return value can be directly obtained locally at the call receiving end, saving the time for the call initiating end to wait for the historical call return value to be returned, shortening the execution duration of the program, and improving the call efficiency. Description of the Drawings

[0039] The drawings here are incorporated into the specification and form a part of the specification, showing embodiments consistent with the present invention and used together with the specification to explain the principles of the present invention.

[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0041] Figure 1 It is a flowchart of a remote call method provided by an embodiment of the present application;

[0042] Figure 2 It is a flowchart of a remote call method provided by another embodiment of the present application;

[0043] Figure 3 It is a flowchart of a remote call method provided by yet another embodiment of the present application;

[0044] Figure 4 The structural diagram of the remote call system provided by an embodiment of the present application;

[0045] Figure 5 The structural diagram of the remote call device provided by an embodiment of the present application;

[0046] Figure 6 The structural diagram of the remote call device provided by another embodiment of the present application;

[0047] Figure 7 The structural diagram of the electronic device provided by an embodiment of the present application. Detailed implementation manners

[0048] To make the objectives, 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 accompanying drawings in the embodiments of the present application. Apparently, the described embodiments are some but not all of the embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.

[0049] An embodiment of the present application provides a remote call method, which can be applied to any form of electronic device, such as a terminal or a server at the call receiving end. As Figure 1 shown, the remote call method includes:

[0050] Step 101, receiving a current call request sent by a call initiating end, where the current call request includes a historical reference parameter, and the historical reference parameter is used to refer to a historical call return value called by a previous call request, and the previous call request is a call request obtained before the current call request.

[0051] In some embodiments, to avoid the situation where the call initiating end starts the next process after obtaining the call return value, resulting in waste of time, when the call initiating end sends the current call request to the call receiving end, a reference parameter is added to the current call request. Thus, the reference parameter is used to refer to the call return value, so that in the next call, instead of using the previous return value as an input parameter, the reference parameter that refers to it is sent to the call receiving end, and the call return value of the previous call is determined through the reference parameter, and then this call is made.

[0052] Wherein, after obtaining the historical reference parameter, the call initiating end adds the historical reference parameter to the current call request, so as to obtain the current call request including the historical reference parameter.

[0053] The calling receiving end obtains the current call request sent by the calling initiating end, and extracts the historical reference parameter carried therein from the current call request.

[0054] Among them, there are various types of historical reference parameters. For example, the categories of historical reference parameters include at least one of key value, serial number, and hash value.

[0055] Furthermore, since the call return value is different each time, to avoid confusing different call return values. The historical reference parameter corresponds one-to-one with the historical call return value, and different historical call return values refer to different historical reference parameters.

[0056] It can be understood that the above previous call request can be the call request immediately before the current call request, or any one or more of the previous several call requests. When the previous call request is multiple times, the historical reference parameter is multiple and is consistent with the number of call requests.

[0057] In an alternative embodiment, before receiving the current call request sent by the call initiating end, it further includes:

[0058] Receiving the previous call request sent by the call initiating end, the previous call request includes a historical reference parameter; when it is determined that the historical reference parameter is not stored in the call receiving end, a call is made based on the previous call request to obtain a historical call return value, and a mapping relationship between the historical call return value and the historical reference parameter is established.

[0059] In some embodiments, for the call initiating end to avoid the waiting time for the call return value to be returned, when the previous call request sent by the call initiating end carries a historical reference parameter, if the historical reference parameter is not stored in the call receiving end, after the call receiving end calls to obtain the historical call return value of this call, a mapping relationship between the historical call return value and the historical reference parameter is established. Since the call sending end does not need to wait for the return of this call return value, after initiating this call, it can initiate the next call.

[0060] It can be understood that in another embodiment, a corresponding relationship between the historical call return value and the historical reference parameter can also be directly established. In the next current call request, this historical reference parameter is carried. If the next current call request still does not need to wait for the call return value, a current reference parameter different from the historical reference parameter can be added to the next current call request, and the current reference parameter and the historical reference parameter are jointly sent to the call receiving end with the current call request, so as to determine the corresponding historical call return value based on the historical reference parameter in the current call request, and establish a corresponding relationship between the current reference parameter and the current call return value obtained from the current call.

[0061] Step 102: Obtain the historical call return value referred to by the historical reference parameter locally.

[0062] In some embodiments, the historical call return value of the previous call is stored in the memory of the call receiving end corresponding to the historical reference parameter it refers to. Therefore, after obtaining the historical reference parameter, the historical call return value stored by its reference can be obtained by querying the memory of the call receiving end according to the historical reference parameter.

[0063] In an alternative embodiment, the obtaining the historical call return value referred to by the historical reference parameter locally includes:

[0064] Query from the pre-stored mapping relationship between the reference parameter and the call return value to obtain the historical call return value referred to by the historical reference parameter.

[0065] Optionally, in the memory of the call receiving end, the mapping relationship between all call return values and reference parameters before the current call is stored. Therefore, after obtaining the historical reference parameter, the historical call return value referred to by the historical reference parameter can be found from the stored mapping relationship.

[0066] Step 103: Invoke to obtain the current call return value based on the historical call return value and the current call request.

[0067] In some embodiments, after obtaining the historical call return value, a remote call can be made based on the historical call return value and the current call request, so as to obtain the current call return value corresponding to the current call request.

[0068] Step 104: Send the current call return value to the call initiating end.

[0069] In some embodiments, after invoking to obtain the current call return value, the current call return value can be sent to the call initiating end. Among them, the current call return value can be directly sent to the call initiating end after being obtained by the call, or can be sent to the call initiating end after meeting the return condition.

[0070] Exemplarily, the return condition can be to return the current call return value after receiving the return value request sent by the call initiating end.

[0071] In an alternative embodiment, the current call request further includes the target call count. After invoking to obtain the current call return value based on the historical call return value and the current call request, it further includes:

[0072] After obtaining the return value of the current call, increment the original call count by one to obtain the intermediate call count;

[0073] Sending the current call return value to the call initiator includes:

[0074] When it is monitored that the intermediate call count is the same as the target call count, send the current call return value to the call initiator.

[0075] In some embodiments, the call initiator may need to make multiple calls to obtain the final desired call return value. Based on this, set the call count in the current call request. After each call is completed, increment the original call count by one to obtain the intermediate call count; when it is monitored that the intermediate call count is the same as the call count, send the result of the remote call to the call initiator. Among them, the initial value of the original call count can be, but is not limited to, 0.

[0076] Among them, the call count is used to indicate the number of times the call initiator needs to make calls. It can be understood that after each remote call is completed, when making the next call, the call count in the current call request can be decremented by one until the call count reaches zero, and then the call return value representing the call is sent to the call initiator.

[0077] Based on the remote call method of the present application, by using object reference to reduce the number of times the remote call client (i.e., the call initiator) program waits for the return value in consecutive synchronous calls, shorten the execution time of the program, and improve the program execution efficiency. Moreover, by reducing the number of times variable values are passed in remote calls, reduce the risk of being recognized and cracked when being monitored by the network.

[0078] In a specific embodiment, refer to Figure 2 , the remote call method includes:

[0079] When the remote call client program makes consecutive synchronous calls, when the return value of the first remote call is only used as the input parameter of the second remote call, in fact, the remote call client does not need to know the actual return value of the first remote call. It can specify this return value to the remote call server (i.e., the call receiving end) through a key value. Therefore, when the remote call client program makes the first remote call, it can directly use a key value to represent the return value it needs and pass it as an input parameter to the remote call server program. The remote call server program recognizes this key value and uses it as the reference key value for the remote call return value. When the remote call client makes the second remote call and needs to use the return value of the first remote call as an input parameter, it directly uses the key value in the first remote call to represent this input parameter. When the remote call server receives the second remote call, it recognizes this key value and maps its actual value to the input parameter of the second remote call.

[0080] It can be understood that Figure 2 Although the number of calls shown in is two, it does not mean that all remote calls are only made twice. It can be specifically set according to the actual situation.

[0081] The remote call method of the present application is based on the idea that a variable only needs to be assigned a value when it is used. By aggregating the return values of remote synchronous calls, it reduces the execution time of the remote call program and reduces the number of small data packets in the network.

[0082] Based on the same concept, an embodiment of the present application provides a remote call method. The specific implementation of this method can refer to the description in the method embodiment part above, and the repeated parts will not be elaborated. This method can be applied to any form of electronic device, such as a terminal or a server at the call initiation end. As Figure 3 shown, this remote call method includes:

[0083] Step 301, obtain a historical reference parameter, where the historical reference parameter is used to refer to the historical call return value called by the previous call request;

[0084] Step 302, send a current call request to the call receiving end. The current call request includes the historical reference parameter, so that the call receiving end receives the current call request; obtain the historical call return value referred to by the historical reference parameter locally; call to obtain the current call return value based on the historical call return value and the current call request; and send the current call return value to the call initiation end.

[0085] Based on the same concept, an embodiment of the present application provides a remote call system. The specific implementation of this system can refer to the description in the method embodiment part above, and the repeated parts will not be elaborated. As Figure 4As shown in the figure, the system mainly includes: a call initiation end 401 and a call receiving end 402;

[0086] The call initiation end 401 is used to obtain historical reference parameters, send a current call request to the call receiving end, where the current call request includes the historical reference parameters, and the historical reference parameters are used to refer to the historical call return value called by the previous call request, and the previous call request is the call request obtained before the current call request;

[0087] The call receiving end 402 is used to receive the current call request sent by the call initiation end; obtain the historical call return value referred to by the historical reference parameter in the local; call to obtain the current call return value based on the historical call return value and the current call request; and send the current call return value to the call initiation end.

[0088] Based on the same concept, an embodiment of the present application provides a remote call device. For the specific implementation of this device, reference can be made to the description in the method embodiment part, and the repeated parts will not be elaborated. As Figure 5 shown in the figure, this device mainly includes:

[0089] A receiving module 501 is used to receive the current call request sent by the call initiation end, where the current call request includes the historical reference parameters, and the historical reference parameters are used to refer to the historical call return value called by the previous call request, and the previous call request is the call request obtained before the current call request;

[0090] A first acquisition module 502 is used to acquire the historical call return value referred to by the historical reference parameter in the local;

[0091] A call module 503 is used to call to obtain the current call return value based on the historical call return value and the current call request;

[0092] A first sending module 504 is used to send the current call return value to the call initiation end.

[0093] Based on the same concept, an embodiment of the present application provides a remote call device. For the specific implementation of this device, reference can be made to the description in the method embodiment part, and the repeated parts will not be elaborated. As Figure 6 shown in the figure, this device mainly includes:

[0094] A second acquisition module 601 is used to acquire the historical reference parameters, and the historical reference parameters are used to refer to the historical call return value called by the previous call request;

[0095] The second sending module 602 is configured to send a current call request to the calling receiving end, where the current call request includes a historical reference parameter, so that the calling receiving end receives the current call request; obtain a historical call return value referred to by the historical reference parameter in the local area; call a current call return value based on the historical call return value and the current call request; and send the current call return value to the call initiating end.

[0096] Based on the same concept, an electronic device is further provided in an embodiment of the present application, as Figure 7 shown. The electronic device mainly includes: a processor 701, a memory 702, and a communication bus 703. Among them, the processor 701 and the memory 702 complete mutual communication through the communication bus 703. Among them, a program executable by the processor 701 is stored in the memory 702, and the processor 701 executes the program stored in the memory 702 to implement the following steps:

[0097] Receive a current call request sent by a call initiating end, where the current call request includes a historical reference parameter, and the historical reference parameter is used to refer to a historical call return value called by a previous call request, and the previous call request is a call request obtained before the current call request;

[0098] Obtain a historical call return value referred to by the historical reference parameter in the local area;

[0099] Call a current call return value based on the historical call return value and the current call request;

[0100] Send the current call return value to the call initiating end. Or,

[0101] Obtain a historical reference parameter, where the historical reference parameter is used to refer to a historical call return value called by a previous call request;

[0102] Send a current call request to the calling receiving end, where the current call request includes a historical reference parameter, so that the calling receiving end receives the current call request; obtain a historical call return value referred to by the historical reference parameter in the local area; call a current call return value based on the historical call return value and the current call request; and send the current call return value to the call initiating end.

[0103] The communication bus 703 mentioned in the above 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 the sake of convenience of representation, Figure 7 only a thick line is used to represent it in Figure 7 , but it does not mean that there is only one bus or one type of bus.

[0104] The memory 702 may include a Random Access Memory (RAM), and may also include a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located far from the aforementioned processor 701.

[0105] The aforementioned processor 701 may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc., and may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0106] The electronic device provided by the embodiments of the present application may specifically be a module capable of implementing a communication function or a terminal device including the module, etc. The terminal device may be a mobile terminal or an intelligent terminal. The mobile terminal may specifically be at least one of a mobile phone, a tablet computer, a notebook computer, etc.; the intelligent terminal may specifically be a terminal containing a wireless communication module such as an intelligent vehicle, an intelligent watch, a shared bicycle, an intelligent cabinet, etc.; the module may specifically 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, an NB-IOT communication module, etc.

[0107] In another embodiment of the present application, a computer-readable storage medium is further provided. A computer program is stored in the computer-readable storage medium. When the computer program runs on a computer, the computer is enabled to execute the remote call method described in the above embodiments.

[0108] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can 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 the computer instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions are transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, microwave, etc.). The computer-readable storage medium can be any available medium that the computer can access or a data storage device such as a server or data center that includes one or more integrated available media. The available medium can be a magnetic medium (such as a floppy disk, hard disk, magnetic tape, etc.), an optical medium (such as a DVD), or a semiconductor medium (such as a solid-state drive), etc.

[0109] It should be noted that in this document, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising a..." does not exclude the presence of additional identical elements in the process, method, article or device comprising the element.

[0110] The above are only specific embodiments of the present invention, enabling those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to these embodiments shown herein, but rather to the broadest scope consistent with the principles and novel features claimed herein.

Claims

1. A remote call method, characterized in that, applied to a call receiving end, comprising: receiving a current call request sent by a call initiating end, where the current call request includes a historical reference parameter for referring to a historical call return value called by a previous call request, and the previous call request is a call request obtained before the current call request; obtaining the historical call return value referred to by the historical reference parameter in the local; invoking to obtain a current call return value based on the historical call return value and the current call request; sending the current call return value to the call initiating end.

2. The remote call method according to claim 1, characterized in that, before receiving the current call request sent by the call initiating end, further comprising: receiving a previous call request sent by the call initiating end, where the previous call request includes a historical reference parameter; when it is determined that the historical reference parameter is not stored in the call receiving end, invoking based on the previous call request to obtain a historical call return value, and establishing a mapping relationship between the historical call return value and the historical reference parameter.

3. The remote call method according to claim 2, characterized in that, the obtaining the historical call return value referred to by the historical reference parameter in the local includes: querying and extracting from a pre-stored mapping relationship between reference parameters and call return values the historical call return value referred to by the historical reference parameter.

4. The remote call method according to claim 1, characterized in that, the current call request further includes a target call count, and after invoking to obtain a current call return value based on the historical call return value and the current call request, further comprising: after obtaining the current call return value, incrementing the original call count by one to obtain an intermediate call count; the sending the current call return value to the call initiating end includes: when it is monitored that the intermediate call count is the same as the target call count, sending the current call return value to the call initiating end.

5. The remote call method according to any one of claims 1-4, characterized in that, the category of the historical reference parameter includes at least one of a key value, a serial number, and a hash value, and different historical reference parameters referred to by different historical call return values are different.

6. A remote call method, characterized in that, applied to a call initiating end, comprising: obtaining a historical reference parameter for referring to a historical call return value called by a previous call request; sending a current call request to a call receiving end, where the current call request includes a historical reference parameter, so that the call receiving end receives the current call request; obtaining the historical call return value referred to by the historical reference parameter in the local; invoking to obtain a current call return value based on the historical call return value and the current call request; sending the current call return value to the call initiating end.

7. A remote call system, characterized in that, comprising: a call initiating end and a call receiving end; The calling initiating end is configured to obtain historical reference parameters, and send a current calling request to the calling receiving end. The current calling request includes the historical reference parameters, where the historical reference parameters are used to refer to the historical calling return value called by a previous calling request, and the previous calling request is a calling request obtained before the current calling request; The calling receiving end is configured to receive the current calling request sent by the calling initiating end; Obtain the historical calling return value referred to by the historical reference parameter locally; obtain a current calling return value by calling based on the historical calling return value and the current calling request; Send the current calling return value to the calling initiating end.

8. A remote calling device, characterized in that, applied to the calling receiving end, includes: A receiving module, configured to receive a current calling request sent by a calling initiating end. The current calling request includes historical reference parameters, where the historical reference parameters are used to refer to the historical calling return value called by a previous calling request, and the previous calling request is a calling request obtained before the current calling request; A first obtaining module, configured to obtain the historical calling return value referred to by the historical reference parameter locally; A calling module, configured to obtain a current calling return value by calling based on the historical calling return value and the current calling request; A first sending module, configured to send the current calling return value to the calling initiating end.

9. A remote calling device, characterized in that, applied to the calling initiating end, includes: A second obtaining module, configured to obtain historical reference parameters, where the historical reference parameters are used to refer to the historical calling return value called by a previous calling request; A second sending module, configured to send a current calling request to the calling receiving end. The current calling request includes historical reference parameters, so that the calling receiving end receives the current calling request; obtain the historical calling return value referred to by the historical reference parameter locally; obtain a current calling return value by calling based on the historical calling return value and the current calling request; send the current calling return value to the calling initiating end.

10. An electronic device, characterized in that, includes: A processor, a communication interface, a memory, and a communication bus. Among them, the processor, the communication interface, and the memory complete communication with each other through the communication bus; The memory is configured to store a computer program; The processor is configured to execute the program stored in the memory to implement the remote calling method according to any one of claims 1-5 or the remote calling method according to claim 6.

11. A computer-readable storage medium storing a computer program, characterized in that, when the computer program is executed by a processor, it implements the remote calling method according to any one of claims 1-5 or the remote calling method according to claim 6.

Citation Information

Patent Citations

  • Reply content generation method and device, equipment and storage medium

    CN112632251A

  • Mock test method and device, equipment and storage medium

    CN113778871A