CN106713238A - Remote process calling method, device and system - Google Patents

Remote process calling method, device and system Download PDF

Info

Publication number
CN106713238A
CN106713238A CN201510784155.3A CN201510784155A CN106713238A CN 106713238 A CN106713238 A CN 106713238A CN 201510784155 A CN201510784155 A CN 201510784155A CN 106713238 A CN106713238 A CN 106713238A
Authority
CN
China
Prior art keywords
rpc
time
server
application result
application
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.)
Granted
Application number
CN201510784155.3A
Other languages
Chinese (zh)
Other versions
CN106713238B (en
Inventor
邹勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201510784155.3A priority Critical patent/CN106713238B/en
Publication of CN106713238A publication Critical patent/CN106713238A/en
Application granted granted Critical
Publication of CN106713238B publication Critical patent/CN106713238B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/133Protocols for remote procedure calls [RPC]

Abstract

The invention provides a remote process calling method, device and system. The method comprises steps that after an RPC application calling request is sent to a server, an RPC application calling response sent by the server is received; the RPC application calling response comprises the unique identifier information representing the RPC application calling request; on the condition that preset conditions are satisfied, an RPC result acquiring request containing the identifier information is sent to the server; an RPC result acquiring response containing the application result information sent by the server is received; the application result information is acquired by the server from an application result region corresponding to the identifier information, and the application result information at least comprises an application result state. The method is advantaged in that a client does not need to construct an independent thread or consume CPU resources to monitor whether a callback function is called by the server, and thereby a processing process of the client can be simplified.

Description

Remote procedure calling (PRC) method, apparatus and system
Technical field
The application is related to communication technical field, more particularly to a kind of remote procedure calling (PRC) method, device and is System.
Background technology
In network technical development rapid today, many technology applications can be developed on server, so as to visitor The application of family end remote call service device, so as to realize the purpose of client.Remote procedure call (Remote Procedure Call) is generally divided into RPC asynchronous calls and RPC synchronization calls.
For RPC synchronization calls, because instantaneity requirement of the RPC synchronization calls to application result is higher, So after user end to server sends RPC application call requests, server can immediately obtain correlation Resource simultaneously generates application result using related resource;Then application result is added to and is called with RPC applications In asking corresponding RPC application to call response, to send application result to client.In RPC synchronizations In invoked procedure, client only need to obtain application result in response is called in RPC applications, perform Journey is relatively simple.
For RPC asynchronous calls, because RPC asynchronous calls are less demanding to the instantaneity of application result, So after user end to server sends RPC application call requests, server need not be obtained immediately Related resource, but related resource is obtained again after other instantaneity applications request is met.Due to service The time that device obtains related resource is uncontrollable, and this causes the time of server generation application result also uncontrollable.
In the case of the time of server generation application result is uncontrollable, Shen is obtained in order to reach client Please result purpose, traditional RPC asynchronous call processes are:Being called in client transmission RPC applications please After asking, server is to one call back function of client feedback.Shen is generated in server by utilizing related resource The call back function of client please actively be called after result, notify that client obtains application result with this.
Because server will not store application result after application result is generated, but can call back immediately Letter of transfer number notifies that client obtains application result, and when the uncertain server of client calls readjustment Function, so in order to ensure that client can obtain application result, it is necessary to set up one on the client solely Vertical thread.The separate threads are used to ceaselessly monitor whether server calls call back function, so as in service Application result is obtained immediately after device generation application result.But, individually create separate threads different to realize The process of step is extremely complex and takes more cpu resource, is unfavorable for client to realize remotely mistake Journey is called.
Accordingly, it is now desired to a kind of remote procedure calling (PRC) method, different in RPC so as to simplify client Implementation procedure in the case of step use.
The content of the invention
This application provides a kind of remote procedure calling (PRC) method, apparatus and system, the application can simplify visitor Implementation procedure of the family end in the case of RPC asynchronous calls.
To achieve these goals, this application provides following technological means:
A kind of remote procedure calling (PRC) method, including:
After RPC application call requests are sent to server, the RPC Shens that the server sends are received Please call response;Wherein, the RPC applications call response to show that the RPC applications are called including only table The identification information of request;
Meet it is pre-conditioned under, to the server send comprising the identification information RPC obtain knot Fruit is asked;
Receive the acquisition result responses of the RPC comprising application result information that the server sends;Wherein, The application result information is obtained by server in the application result region corresponding with the identification information, Also, the application result information at least includes application result state.
Preferably, the acquisition knots of the RPC comprising application result information that the server sends are received described After fruit response, also include:
Determine the application result state, the application result state includes:Wait state, completion status Or halted state;
Wherein, the wait state represents that the server does not generate the state of application result;The completion Server described in state representation has generated the state of application result;The final state represents the server After the very first time is more than default time-out time, the state of application result is not generated yet, when described first Between be that RPC applications call request has used the time described in the server process.
Preferably, in the case of it is determined that the application result state is wait state, methods described is also wrapped Include:
Continuously carry out and send the step that the RPC comprising the identification information obtains result request to the server Suddenly, it is not the wait state until being unsatisfactory for described pre-conditioned or described application result state.
Preferably, the application result information also includes application result;It is determined that the application result state In the case of completion status, methods described also includes:
Preserve the application result in the application result information.
Preferably, it is determined that the application result state during the RPC obtains result response is final state In the case of, methods described also includes:
Stop the RPC invoked procedure corresponding with the identification information;
The release cpu resource corresponding with the identification information.
Preferably, it is described to meet pre-conditioned determination process and include:
Judged for the second time whether more than default time-out time;Wherein, second time is at client That manages the RPC applications call request has used the time;
If second time is more than the default time-out time, judgement is unsatisfactory for pre-conditioned;
If second time is not more than the default time-out time, judgement meets pre-conditioned.
Preferably, also include:
The RPC applications comprising the identification information are sent to the server stop request.
A kind of remote procedure calling (PRC) method, including:
After the RPC application call requests that client sends are received, sent comprising mark to the client Response is called in the RPC applications of knowledge information;Wherein, the identification information is used for RPC Shens described in unique mark Please call request;
Build the mapping relations of the identification information and application result region;
Result is obtained in the RPC comprising the identification information for receiving the client transmission to ask and meet After pre-conditioned, send the RPC comprising application result information to the client and obtain result response; Wherein, the application result information is the letter that the application result region corresponding with the identification information is included Breath, and the application result information at least includes application result state.
Preferably, the application result state includes:Wait state, completion status or halted state;
Wherein, the wait state represents that the server does not generate the state of application result;The completion Server described in state representation has generated the state of application result;The final state represents the server After the very first time is more than default time-out time, the state of application result is not generated yet, when described first Between be that RPC applications call request has used the time described in the server process.
Preferably, also include:
The acquisition result requests of the RPC comprising the identification information that the client sends persistently are received, and The step of RPC acquisition result responses comprising application result information are sent to the client, until discontented Foot is pre-conditioned.
Preferably, it is described to meet pre-conditioned determination process and include:
Judge the very first time whether more than default time-out time;Wherein, the very first time is the service Device treatment RPC application call request has used the time;
If the very first time is more than default time-out time, judgement is unsatisfactory for pre-conditioned;
If the very first time is not more than default time-out time, judgement meets pre-conditioned.
Preferably, exceed the time limit the time or to receive the client and send comprising described more than default in the very first time The RPC applications of identification information stop after request, and methods described also includes:
Stop the RPC invoked procedure corresponding with the identification information;
Corresponding resource information is asked in the release RPC resource bid corresponding with the identification information.
Preferably, the building process of the identification information includes:
After the RPC applications call request is received, it is determined that processing the RPC applications call request Current thread is identified and current time;
Using current thread mark and the current time, the identification information is built.
A kind of remote procedure call device, including:
First receiving unit, for after RPC application call requests are sent to server, receiving described Response is called in the RPC applications that server sends;Wherein, RPC application calls the response to include only table Show that the RPC applies for the identification information of call request;
First transmitting element, for meet it is pre-conditioned under, to the server send include the mark The RPC of knowledge information obtains result request;
Second receiving unit, obtains for receiving the RPC comprising application result information that the server sends Take result response;Wherein, the application result information by server in the Shen corresponding with the identification information Please be obtained in results area, also, the application result information at least includes application result state.
Preferably, also include:
Determining unit, for determining the application result state, the application result state includes:Wait State, completion status or halted state;
Wherein, the wait state represents that the server does not generate the state of application result;The completion Server described in state representation has generated the state of application result;The final state represents the server After the very first time is more than default time-out time, the state of application result is not generated yet, when described first Between be that RPC applications call request has used the time described in the server process.
Preferably, in the case of it is determined that the application result state is wait state, also include:
First transmitting element is additionally operable to, and continuously carries out and is sent comprising the mark letter to the server The step of RPC acquisitions result of breath is asked, until being unsatisfactory for described pre-conditioned or described application result State is not the wait state.
Preferably, the application result information also includes application result;It is determined that the application result state In the case of for completion status, also include:
Storage unit, for preserving the application result in the application result information.
Preferably, it is determined that the application result state during the RPC obtains result response is final state In the case of, also include:
First stop element, for stopping the RPC invoked procedure corresponding with the identification information;
First releasing unit, for discharging the cpu resource corresponding with the identification information.
Preferably, also include:
First judging unit, for judging for the second time whether more than default time-out time;Wherein, it is described Second time used the time for RPC applications call request described in client process;
First identifying unit, if being more than the default time-out time for second time, judges not Meet pre-conditioned;
Second identifying unit, if being not more than the default time-out time for second time, judges Meet pre-conditioned.
Preferably, also include:
Second transmitting element, stops for sending the RPC applications comprising the identification information to the server Only ask.
A kind of remote procedure call device, including:
3rd transmitting element, for after the RPC application call requests that client sends are received, to institute State RPC application of the client transmission comprising identification information and call response;Wherein, the identification information is used for RPC applications call request described in unique mark;
Construction unit, the mapping relations for building the identification information and application result region;
4th transmitting element, for receiving the RPC comprising the identification information that the client sends Obtain result ask and meet it is pre-conditioned after, sent comprising application result information to the client RPC obtains result response;Wherein, the application result information is the application corresponding with the identification information The information that results area is included, and the application result information at least includes application result state.
Preferably, the application result state includes:Wait state, completion status or halted state;
Wherein, the wait state represents that the server does not generate the state of application result;The completion Server described in state representation has generated the state of application result;The final state represents the server After the very first time is more than default time-out time, the state of application result is not generated yet, when described first Between be that RPC applications call request has used the time described in the server process.
Preferably, the 4th transmitting element, for persistently receiving that the client sends comprising described The RPC of identification information obtains result request, and is sent comprising application result information to the client The step of RPC obtains result response, it is pre-conditioned until being unsatisfactory for.
Preferably, also include:
Second judging unit, for judging the very first time whether more than default time-out time;Wherein, it is described The very first time is that RPC applications call request has used the time described in the server process;
3rd identifying unit, if being more than default time-out time for the very first time, judgement is unsatisfactory for It is pre-conditioned;
4th identifying unit, if being not more than default time-out time for the very first time, judges to meet It is pre-conditioned.
Preferably, exceed the time limit the time or to receive the client and send comprising described more than default in the very first time The RPC applications of identification information stop after request, and methods described also includes:
Second stop element, for stopping the RPC invoked procedure corresponding with the identification information;
Second releasing unit, correspondence is asked for discharging the RPC resource bid corresponding with the identification information Resource information.
Preferably, the 3rd transmitting element includes construction unit, for building the identification information;
The construction unit, specifically includes:
Determining unit, for after the RPC applications call request is received, it is determined that processing the RPC Apply for the current thread mark and current time of call request;
Identity information element is built, for using current thread mark and the current time, building The identification information.
A kind of RPC system, including:
The server that client is connected with the client;
The client, for after RPC application call requests are sent to server, receiving the clothes Response is called in the RPC applications that business device sends;Meet it is pre-conditioned under, to the server send include The RPC of the identification information obtains result request;Receive believing comprising application result for the server transmission The RPC of breath obtains result response;Wherein, the application result information is believed by server with the mark Acquisition in corresponding application result region is ceased, also, the application result information at least includes application result State;
The server, for after the RPC application call requests that client sends are received, to described Client sends the RPC applications comprising identification information and calls response;Wherein, the RPC applications are called and answered Answer including uniquely representing that the RPC applies for the identification information of call request;Build the identification information and Shen Please results area mapping relations;Receiving the RPC comprising the identification information that the client sends Obtain result ask and meet it is pre-conditioned after, sent comprising application result information to the client RPC obtains result response;Wherein, the application result information is the application corresponding with the identification information The information that results area is included, and the application result information at least includes application result state.
By above content, it can be seen that the application has the advantages that:
Server can store application result after application result is generated in the application, so as to need not pass through The mode of call back function is called to inform that client obtains application result.Therefore, the application client need not Create separate threads and expend cpu resource and monitor whether server calls call back function, it is possible to letter Change the processing procedure of client.Reduced because client takes cpu resource, so client can be by CPU Resource performs other treatment, such that it is able to improve the execution efficiency of client.
Brief description of the drawings
In order to illustrate more clearly of the embodiment of the present application or technical scheme of the prior art, below will be to reality The accompanying drawing to be used needed for example or description of the prior art is applied to be briefly described, it should be apparent that, below Accompanying drawing in description is only some embodiments of the present application, for those of ordinary skill in the art, On the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of structural representation of RPC system disclosed in the embodiment of the present application;
Fig. 2 is a kind of flow chart of remote procedure calling (PRC) method disclosed in the embodiment of the present application;
Fig. 3 is the flow chart of another remote procedure calling (PRC) method disclosed in the embodiment of the present application;
Fig. 4 is the flow chart of another remote procedure calling (PRC) method disclosed in the embodiment of the present application;
Fig. 5 is the flow chart of another remote procedure calling (PRC) method disclosed in the embodiment of the present application;
Fig. 6 is the flow chart of another remote procedure calling (PRC) method disclosed in the embodiment of the present application;
Fig. 7 is a kind of structural representation of remote procedure call device disclosed in the embodiment of the present application;
Fig. 8 is the structural representation of another remote procedure call device disclosed in the embodiment of the present application;
Fig. 9 is the structural representation of another remote procedure call device disclosed in the embodiment of the present application;
Figure 10 is the structural representation of another remote procedure call device disclosed in the embodiment of the present application;
Figure 11 is the structural representation of another remote procedure call device disclosed in the embodiment of the present application;
Figure 12 is the structural representation of another remote procedure call device disclosed in the embodiment of the present application;
Figure 13 is the structural representation of another remote procedure call device disclosed in the embodiment of the present application.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the embodiment of the present application is carried out Clearly and completely describe, it is clear that described embodiment is only some embodiments of the present application, and It is not all, of embodiment.Based on the embodiment in the application, those of ordinary skill in the art are not doing Go out the every other embodiment obtained under the premise of creative work, belong to the scope of the application protection.
In order to clearly introduce the application scenarios of the present embodiment, referring to Fig. 1, this application provides a kind of long-range mistake Journey calling system, specifically includes:Client 100 and server 200.
Client 100 can send RPC application call requests to server 200, so as to invoking server 200 technology application.Server 200, can be according to RPC after RPC application call requests are received Application call request obtains related resource, and generates application result using related resource.Client 100 can After the generation application result of server 200, application result is obtained on server 200.
Based on the RPC system shown in Fig. 1, this application provides a kind of remote procedure call side Method, for simplifying implementation procedure of the client in the case of RPC asynchronous calls.It is long-range the application is introduced Before the specific embodiment of procedure calling (PRC) method, the substantially execution thinking of the application is introduced first:
From background technology, implementation procedure of the client in the case of RPC asynchronous calls in the prior art Complex basic reason is:Server is in generation application result corresponding with RPC applications call request Afterwards, it is impossible to store application result.Therefore, the application is on the server, unique expression RPC Shens are set up Please call request identification information, and set up the application result region corresponding with identification information.Server can After application result is generated, application result is stored into application result region.
Therefore, in the application server after application result is generated, no longer calling the side of call back function Formula notifies client, but application result is stored into the application result region corresponding with identification information, To wait client that application result is obtained on server.This causes utilizing individual threads without client Whether call back function is constantly called monitoring server, and institute is no longer to need client to set up independent lines Journey, such that it is able to simplify the implementation procedure of client.
A kind of specific embodiment of remote procedure calling (PRC) method of the application offer is provided.Such as Fig. 2 institutes Show that a kind of remote procedure calling (PRC) method that the application is provided specifically includes following steps:
Step S201:After RPC application call requests are sent to server, the server hair is received Response is called in the RPC applications sent;Wherein, the RPC applications call response to show described including only table RPC applies for the identification information of call request.
Client sends to server RPC applications call request, can be wrapped in RPC application call requests The information such as handle, parameter are included, so that server can apply for call request to obtain related money using RPC Source, and generate application result using related resource.
Need to set separate threads on the client in the prior art, constantly to monitor whether server is adjusted With call back function, because separate threads take the cpu resource of client and processing procedure is complex. Therefore, the application is not provided for monitoring the separate threads of server on the client, such that it is able to simplification The implementation procedure of client executing RPC asynchronous calls.
Individual threads are not provided with client to monitor in the case that whether server call call back function, be Realize that client obtains the purpose of application result, server can be adjusted RPC application is received in the application It is that RPC application call requests create a unique identification information after with request;Then will be unique Identification information is called in response added to RPC applications, and calls response to send to client RPC applications, So that client obtains unique identification information for representing RPC application call requests.
Step S202:Meet it is pre-conditioned under, sent comprising the identification information to the server RPC obtains result request.
On judging to meet pre-conditioned process, will be described in detail after the present embodiment.
Because the time of server generation application result is uncontrollable, when the uncertain server of client generates Application result, but certainly, server after RPC application call requests are received, Bu Huili Generate application result.Therefore, a Preset Time can be set in client, server hair is being obtained The RPC applications sent can wait Preset Time after calling response.After Preset Time is waited, then to Server sends RPC and obtains result request, thinks server reserves Preset Time to generate application result.
Client can perform its treated with same in the Preset Time of waiting for server generation application result Journey, to accelerate the treatment effeciency of client.Preset Time in this step can as the case may be by Technical staff sets, and does not limit herein.
Step S203:The acquisition results of the RPC comprising application result information for receiving the server transmission should Answer;Wherein, the application result information at least includes application result state.
Server can set up the mapping of identification information and application result region after identification information is created Relation.Information included in application result region is referred to as application result information, in application result information extremely Include application result state less, application result state is used to represent that server process RPC applies for call request State.When server does not generate application result, application result information only includes application result state. In server after application result is generated, application result can be stored into application result region, this When application result information then include application result and application result state.
After user end to server sends the RPC acquisition result requests comprising the identification information, clothes Business device obtains identification information in RPC obtains result request.Then, server can be in memory space The application result region corresponding with identification information is searched, and application result letter is obtained in application result region Breath.During application result information can be obtained result response by server added to RPC, and RPC is obtained Result response is sent to client, so that client learns application result information.
By above content, it can be seen that the application has the advantages that:
Server can store application result after application result is generated in the application, so as to need not pass through The mode of call back function is called to inform that client obtains application result.Therefore, the application client need not Create separate threads and expend cpu resource and monitor whether server calls call back function, it is possible to letter Change the processing procedure of client.Reduced because client takes cpu resource, so client can be by CPU Resource performs other treatment, such that it is able to improve the execution efficiency of client.
Additionally, client has the initiative for obtaining application result in the application compared with prior art, i.e., Client can actively choose when to obtain application result, informed rather than passively being serviced device and obtained Take application result.Because the time of server generation application result is uncontrollable, so client need not be frequent Ground obtains application result to server, and can be wait Preset Time, then obtains application knot to server Really.Waiting in Preset Time, client executing other processing procedures, therefore can further improve visitor The treatment effeciency at family end.
It is related to application result information in step S203, application result information is described in detail below:
Because the time of server generation application result is uncontrollable, so, send RPC in client and obtain When result is asked, server may generate application result, application result may not generated or Terminate performing the remote procedure call corresponding with identification information.
In order that obtaining client understands the treatment state that server process RPC applies for call request, application knot At least include application result state in fruit information.Application result state can with wait state, completion status or Final state.
Three kinds of states are described in detail separately below:
The first:Wait state, represents that the server does not generate the state of application result.
Server just enters at the application result region that structure is corresponding with identification information to application result state Row initialization, init state is wait state.Wait state represents that server is processing RPC applications Call request, i.e. server may obtain related resource, or, generated using related resource Application result.Due to not there is application result also, so in the case, application result information only includes etc. Treat state.
Second:Completion status, represents that the server has generated the state of application result.
If server has utilized related resource to generate application result, by the application in application result region Result phase is changed to completion status;Also, the application result of generation can be stored to application and tied by server In fruit region.Therefore in the case, application result information includes application result and completion status.
The third:Final state, represents that the server has terminated performing corresponding with identification information remote The state of the journey invocation of procedure.
Abnormal conditions are likely to occur when server process RPC applies for call request.For example, obtaining resource Failure cannot generate application result, or, exception occurs in client cannot in time obtain the feelings such as application result Condition.In the case, if server processes RPC application call requests always, RPC applications are called Request can always take the cpu resource of server, then can cause the wasting of resources.
Therefore, can have a default time-out time on server, for representing server process RPC Apply for the maximum time of call request.If the very first time of server process RPC application call requests surpasses Cross default time-out time, then it represents that RPC applications call request is likely to occur abnormal conditions.Now, service Device stops performing RPC application call requests, and the application result state in application result region is changed to Final state.
Server obtains default time-out time process can be divided into two kinds of situations:
The first situation:Prestored into server by technical staff.
Technical staff can determine a default time-out time according to actual conditions.Then by default time-out Time is set into server.The RPC call requests of multiple client can be responded due to server, In the case of the first, server is consistent for the default time-out time of each client.
But, each client is needed to be treated differently in some cases, i.e., each client is default super When the time be probably what is differed.Therefore, this application provides second situation.
Second situation:Receive the default time-out time that client is carried in RPC application call requests.
Because the default time-out time of each client does not know, server can store each client Default time-out time, if in the case where client terminal quantity is larger, storing the default super of each client When the time amount of storage it is too big.
Client obtain RPC obtain result response after, can obtain RPC obtain result response in Application result information, and by the application result state in application result information, determine RPC at server Apply for the treatment state of call request.Client can be performed different under different application result states Processing procedure.Client is described in detail below it is determined that processing procedure after application result state.
The first:Wait state.
If client determines that application result state is wait state, then it represents that server is processing RPC Shens Please call request, do not generate application result also simply.Client can wait for a period of time in the case. After waiting a period of time, then send the RPC comprising identification information to server and obtain result request.
If it is wait shape to receive application result state during server feedback RPC obtains result response again State, continues waiting for a period of time.Step S202 can be again performed after waiting a period of time to service Device sends the RPC comprising identification information and obtains result request, until being unsatisfactory for described pre-conditioned or institute It is not wait state to state application result state.
That is, in the application client can meet it is pre-conditioned under, repeatedly to server send RPC obtain Result request is taken, to obtain application result.
Second:Completion status.
In the case where application result state is completion status, application result is included in application result information.In visitor Family end determines that application result state, for completion status, just can preserve application result, to be tied using application Fruit performs other processing procedures.
The third:Final state.
Determine that application result state is final state in client, then it represents that server has stopped performing RPC applies for the remote procedure call of call request.Due to cannot on the server obtain application result, visitor Family end can also stop the RPC invoked procedure corresponding with the identification information, and discharge related to identification information Cpu resource, so as to perform other processing procedures using cpu resource.
The above describes client in detail it is determined that implementation procedure after application result state.Upper Give an account of in continuing it can be seen that being related to default bar in step S202 and in wait state associated description Part.Pre-conditioned related content is described in detail below.
Pre-conditioned in the application can be two kinds of situations:
The first situation:Empty condition.It is equivalently employed without pre-conditioned.
It is pre-conditioned for empty condition in the case of, in step S202 client can at any time to Server sends the RPC comprising identification information and obtains result request, and application result is obtained with to server.
But, server may cannot generate application result for a long time in some cases, if client On be not provided with related safeguard measure, client may need to continue to server send RPC obtain result please Ask, this causes the RPC far call processes, can always take the cpu resource of client.
Therefore, client can set a default time-out time for RPC application call requests, preset super When the time be used to represent the maximum time that one RPC of client process applies for call request.If client Second time for the treatment of RPC application call requests is more than default time-out time, then illustrate exception now occur Situation.In order to save the cpu resource of client, client can stop corresponding with the identification information RPC invoked procedures, and discharge the cpu resource corresponding with identification information.
It is described below in step S202 and meets pre-conditioned determination process.As shown in figure 3, specifically including Following steps:
Step S301:Judged for the second time whether more than default time-out time;Wherein, second time RPC applications call request has used the time described in client process.If so, then enter step S302, Otherwise enter step S303.
One timer can be set on the client, and sending RPC applications in user end to server calls After request, just can be with opening timing device.Now, the second time on timer just can represent client That holds treatment RPC application call requests has used the time.RPC is sent in user end to server obtain result Before request, first determined whether for the second time whether more than default time-out time.
Step S302:If second time is more than the default time-out time, judgement is unsatisfactory for presetting Condition.
If the second time was more than default time-out time, illustrate abnormal conditions occur on client or server, Client and server cpu resource is now saved, judgement is unsatisfactory for pre-conditioned.It is being unsatisfactory for default bar In the case of part, client no longer sends RPC and obtains result request to server.In order to further save Client resource, client can stop the remote procedure call corresponding with identification information, and discharge correlation Cpu resource.
Step S303:If second time is not more than the default time-out time, judge to meet default Condition.
In the case where the second time was not more than default time-out time, then default user end and server are in Normal condition, now judges to meet pre-conditioned.Meet it is pre-conditioned under, client still can be to clothes Business device sends RPC and obtains result request, and application result is obtained with to server.
Once user end to server initiates RPC application call requests in the prior art, then it represents that long-range The invocation of procedure starts.Remote procedure call only process time exceedes default time-out time or client is obtained Take and can just terminate after application result.But, in some cases, client may be in server also not In the case of generation application result, just no longer need to obtain application result.In the case, if client End and server still process RPC application call requests, then can waste client resource and server resource.
Therefore, the application client has the power to make decision for stopping remote procedure call.I.e. client can be true Itself do not need calmly after application result, can be sent comprising the identification information to the server RPC applications stop request;Server just stops believing with mark after receiving RPC applications and stopping request Corresponding remote procedure call is ceased, and discharges the cpu resource corresponding with identification information.Also, client The remote procedure call related to RPC applications call request can also be stopped and cpu resource is discharged.
Above content describes the specific implementation procedure of client in detail, and server is described below performs step Suddenly.Referring to Fig. 4, this application provides a kind of remote procedure calling (PRC) method, following steps are specifically included:
Step S401:After the RPC application call requests that client sends are received, to the client Send the applications of the RPC comprising identification information and call response;Wherein, the identification information is used for unique mark The RPC applies for call request.
Server is RPC application call request wounds after the RPC application call requests for receiving client Build a unique mark.As long as it is understood that identification information uniquely can apply for call request by RPC , its create process can as the case may be depending on.
The detailed process that a kind of server creates identification information is provided below, referring to Fig. 5, specifically includes:
Step S501:After the RPC applications call request is received, it is determined that processing the RPC Shens Please call request current thread mark and current time.
There can be multiple threads on server, after RPC application call requests are received, server can To select a thread to apply for the current thread of call request as treatment RPC.Because a thread is same One time was only capable of one RPC application call request for the treatment of, therefore mark letter is built using this uniqueness Breath.
Step S502:Using current thread mark and the current time, the identification information is built.
By the information comprising current thread mark and current time, as identification information.Due to same thread A RPC application call request can only be processed in a time, it is possible to so that identification information has only One property.
An instantiation for structure identification information is lifted, it (can be current thread to obtain current thread mark Number), and current thread is identified the character string for being converted into certain length, if the character string after conversion Length not enough, can before character string mend 0 by way of come cause character string reach certain length. Then, acquisition current time, and current time is converted into the character string of certain length, if length is not Enough above Jia 0.Current thread is identified into corresponding character string and the corresponding character string connection of current time Get up, as identification information.
Fig. 4 is then returned to, into step S402:Build reflecting for the identification information and application result region Penetrate relation.
Because server may need to process the RPC application call requests that multiple client sends, in order to divide The application result information that each RPC applies for call request is not preserved, and server is distributed for each identification information One application result region, and set up the mapping relations of identification information and application result region.
Step S403:Receiving the acquisition results of the RPC comprising the identification information that the client sends Ask and meet it is pre-conditioned after, to the client send comprising application result information RPC obtain Result response;Wherein, the application result information is the application result region corresponding with the identification information Comprising information, and the application result information at least include application result state.
Server can set up the mapping of identification information and application result region after identification information is created Relation.Information included in application result region is referred to as application result information, in application result information extremely Include application result state less, application result state is used to represent that server process RPC applies for call request State.When server does not generate application result, application result information only includes application result state. In server after application result is generated, application result can be stored into application result region, this When application result information then include application result and application result state.
After user end to server sends the RPC acquisition result requests comprising the identification information, clothes Business device obtains identification information in RPC obtains result request.Then, server can be in memory space The application result region corresponding with identification information is searched, and application result letter is obtained in application result region Breath.During application result information can be obtained result response by server added to RPC, and RPC is obtained Result response is sent to client, so that client learns application result information.
By above content, it can be seen that the application has the advantages that:
Server can store application result after application result is generated in the application, so as to need not pass through The mode of call back function is called to inform that client obtains application result.Therefore, the application client need not Create separate threads and expend cpu resource and monitor whether server calls call back function, it is possible to letter Change the processing procedure of client.Reduced because client takes cpu resource, so client can be by CPU Resource performs other treatment, such that it is able to improve the execution efficiency of client.
Additionally, server to client call call back function, therefore need not can also simplify holding for server Row process.
Result phase of asking in server includes:Wait state, completion status or halted state;Wherein, The wait state represents that the server does not generate the state of application result;The completion status represents institute State the state that server has generated application result;The final state represents the server in the very first time After more than default time-out time, the state of application result is not generated yet, the very first time is the clothes What business device processed RPC application call request has used the time.
Detailed description on application result state describes in detail in the embodiment shown in Figure 2, Will not be repeated here.
If server does not give birth to application result also, application result state is wait state.Server to In the case that the application result state of client feedback is wait state, server can continue to receive described The RPC comprising the identification information that client sends obtains result request, and is sent to the client The step of RPC comprising application result information obtains result response, it is pre-conditioned until being unsatisfactory for.
If server has generated application result, application result state is completion status.In server To the application result state of client feedback in the case of completion status, client can be on the server Obtain application result.After client obtains application result, server can discharge and identification information pair The cpu resource answered.
If server terminates performing RPC application call requests, application result state is final state. In server to the application result state of client feedback in the case of final state, client and service Device can stop the remote procedure call with identification information, and discharge related cpu resource.
It is related in the associated description of step S403 and wait state pre-conditioned.Default bar is described below Two kinds of situations of part:
The first situation:Empty condition.It is equivalently employed without pre-conditioned.
It is pre-conditioned for empty condition in the case of, server can connect at any time in step S403 RPC of the packet receiving containing identification information obtains result request, and sends RPC application result responses to client. But, server may cannot generate application result for a long time in some cases, if on server not Related safeguard measure is set, and the RPC that server may process client obtains result request, and this causes this RPC far call processes, can always take the cpu resource of server.
Therefore, server can set a default time-out time for RPC application call requests, preset super When the time be used to represent the maximum time that one RPC of server process applies for call request.If server The very first time for the treatment of RPC application call requests is more than default time-out time, then illustrate exception now occur Situation.In order to save the cpu resource of server, server can stop corresponding with the identification information RPC invoked procedures, and discharge the cpu resource corresponding with identification information.
It is described below in step S403 and meets pre-conditioned determination process.As shown in fig. 6, specifically including Following steps:
Step S601:Judge the very first time whether more than default time-out time;Wherein, the very first time RPC applications call request has used the time described in the server process.
One timer can be set on the server, after RPC application call requests are received, just may be used With opening timing device.Now, the very first time on timer just can represent server process RPC apply Call request has used the time.Persistently judge that the very first time is during treatment RPC application call requests It is no more than default time-out time.
Step S602:If the very first time is more than default time-out time, judgement is unsatisfactory for pre-conditioned.
If the very first time is more than default time-out time, illustrate abnormal conditions occur on client or server, Server cpu resource is now saved, judgement is unsatisfactory for pre-conditioned.It is being unsatisfactory for pre-conditioned situation Under, server can stop the remote procedure call corresponding with identification information.For the service of further saving Device resource, server discharges cpu resource related to identification information.
Step S603:If the very first time is not more than default time-out time, judgement meets pre-conditioned.
In the case where the very first time is not more than default time-out time, then default user end and server are in Normal condition, now judges to meet pre-conditioned.Meet it is pre-conditioned under, server can normally be located Reason RPC application call requests, the RPC that can still receive client transmission obtains result request.
Server exceeds the time limit the time or to receive the client and send comprising the mark in the very first time more than default The RPC applications of knowledge information stop after request, and methods described also includes:Stop and the identification information pair The RPC invoked procedures answered;Corresponding money is asked in the release RPC resource bid corresponding with the identification information Source information.
Detailed content is discussed in detail in the above, will not be repeated here.
Corresponding with the embodiment shown in Fig. 2, the application also provides a kind of remote procedure call device, such as Shown in Fig. 7, specifically include:
First receiving unit 71, for after RPC application call requests are sent to server, receiving institute Response is called in the RPC applications for stating server transmission;Wherein, the RPC applications call response including unique Represent that the RPC applies for the identification information of call request;
First transmitting element 72, for meet it is pre-conditioned under, sent comprising described to the server The RPC of identification information obtains result request;
Second receiving unit 73, for receiving the RPC comprising application result information that the server sends Obtain result response;Wherein, the application result information by server corresponding with the identification information Obtained in application result region, also, the application result information at least includes application result state.
As shown in figure 8, the remote procedure call device that the application is provided can also include:
Second transmitting element 74, applies for sending the RPC comprising the identification information to the server Stop request.
Determining unit 75, for determining the application result state, the application result state includes:Deng Treat state, completion status or halted state.
Wherein, the wait state represents that the server does not generate the state of application result;The completion Server described in state representation has generated the state of application result;The final state represents the server After the very first time is more than default time-out time, the state of application result is not generated yet, when described first Between be that RPC applications call request has used the time described in the server process.
In the case of it is determined that the application result state is wait state, first transmitting element 72 is also For continuously carrying out and sending what the RPC acquisition results comprising the identification information were asked to the server Step, is not the wait state until being unsatisfactory for described pre-conditioned or described application result state.
The application result information also includes application result;It is determined that the application result state is completion shape In the case of state, described device also includes:Storage unit 76, for preserving the application result information in The application result.
In the case of it is determined that the application result state during the RPC obtains result response is final state, Described device also includes:
First stop element 77, for stopping the RPC invoked procedure corresponding with the identification information;
First releasing unit 78, for discharging the cpu resource corresponding with the identification information.
As shown in figure 9, pre-conditioned deterministic process is met in first transmitting element, including:
First judging unit 91, for judging for the second time whether more than default time-out time;Wherein, institute Stated for the second time and used the time for RPC applications call request described in client process;
First identifying unit 92, if being more than the default time-out time for second time, judges It is unsatisfactory for pre-conditioned;
Second identifying unit 93, if being not more than the default time-out time for second time, sentences Surely meet pre-conditioned.
It is corresponding with a kind of remote procedure calling (PRC) method shown in Fig. 4, present invention also provides a kind of long-range Invocation of procedure device, as shown in Figure 10, specifically includes:
3rd transmitting element 101, after applying for call request in the RPC for receiving client transmission, The RPC applications comprising identification information are sent to the client call response;Wherein, the identification information For RPC applications call request described in unique mark;
Construction unit 102, the mapping relations for building the identification information and application result region;
4th transmitting element 103, for receiving that the client sends comprising the identification information RPC obtain result ask and meet it is pre-conditioned after, to the client send include application result believe The RPC of breath obtains result response;Wherein, the application result information is corresponding with the identification information The information that application result region is included, and the application result information at least includes application result state.
Wherein, the application result state includes:Wait state, completion status or halted state.
The wait state represents that the server does not generate the state of application result;The completion status table Show that the server has generated the state of application result;The final state represents the server first Time is more than after default time-out time, and the state of application result is not generated yet, and the very first time is institute That states RPC applications call request described in server process has used the time.
4th transmitting element 103, for persistently receiving believing comprising the mark for the client transmission The RPC of breath obtains result request, and the RPC acquisitions comprising application result information are sent to the client It is the step of result response, pre-conditioned until being unsatisfactory for.
As shown in figure 11, the remote procedure call device that the application is provided, also includes:
Exceed the time limit the time or to receive the client and send comprising the identification information more than default in the very first time RPC application stop request after, methods described also includes:
Second stop element 104, for stopping the RPC invoked procedure corresponding with the identification information;
Second releasing unit 105, for discharging the RPC resource bid request corresponding with the identification information Corresponding resource information.
As shown in figure 12, judge to meet pre-conditioned process in the 4th transmitting element 103, including:
Second judging unit 121, for judging the very first time whether more than default time-out time;Wherein, institute It is that RPC applications call request has used the time described in the server process to state the very first time;
3rd identifying unit 122, if being more than default time-out time for the very first time, judges discontented Foot is pre-conditioned;
4th identifying unit 123, if being not more than default time-out time for the very first time, judges full Foot is pre-conditioned.
As shown in figure 13, the 3rd transmitting element 91 builds the process construction unit of the identification information, Specifically include:
Determining unit 131, for after the RPC applications call request is received, it is determined that treatment is described The current thread mark and current time of RPC application call requests;
Identity information element 132 is built, for using current thread mark and the current time, structure Build the identification information.
Referring to Fig. 1, this application provides a kind of RPC system, including:
The server 200 that client 100 is connected with the client.
In the implementation procedure remote procedure calling (PRC) method of the client 100 and the server 200 Describe in detail, will not be repeated here.
If function described in the present embodiment method is to realize in the form of SFU software functional unit and as independent Production marketing or when using, can store in a computing device read/write memory medium.Based on so Understanding, the part or the part of the technical scheme that the embodiment of the present application contributes to prior art can Embodied with the form of software product, the software product is stored in a storage medium, if including Dry instruction is used to so that a computing device (can be personal computer, server, mobile computing device Or the network equipment etc.) perform all or part of step of each embodiment methods described of the application.And it is preceding The storage medium stated includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), Random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can With the medium of store program codes.
Each embodiment is described by the way of progressive in this specification, and each embodiment is stressed The difference with other embodiments, between each embodiment same or similar part mutually referring to.
The foregoing description of the disclosed embodiments, enables professional and technical personnel in the field to realize or use The application.Various modifications to these embodiments will be for those skilled in the art aobvious and easy See, generic principles defined herein can in the case where spirit herein or scope is not departed from, Realize in other embodiments.Therefore, the application is not intended to be limited to the embodiments shown herein, And it is to fit to the most wide scope consistent with principles disclosed herein and features of novelty.

Claims (27)

1. a kind of remote procedure calling (PRC) method, it is characterised in that including:
After RPC application call requests are sent to server, the RPC Shens that the server sends are received Please call response;Wherein, the RPC applications call response to show that the RPC applications are called including only table The identification information of request;
Meet it is pre-conditioned under, to the server send comprising the identification information RPC obtain knot Fruit is asked;
Receive the acquisition result responses of the RPC comprising application result information that the server sends;Wherein, The application result information is obtained by server in the application result region corresponding with the identification information, Also, the application result information at least includes application result state.
2. the method for claim 1, it is characterised in that receive the server and send described RPC comprising application result information obtain result response after, also include:
Determine the application result state, the application result state includes:Wait state, completion status Or halted state;
Wherein, the wait state represents that the server does not generate the state of application result;The completion Server described in state representation has generated the state of application result;The final state represents the server After the very first time is more than default time-out time, the state of application result is not generated yet, when described first Between be that RPC applications call request has used the time described in the server process.
3. method as claimed in claim 2, it is characterised in that it is determined that the application result state is In the case of wait state, methods described also includes:
Continuously carry out and send the step that the RPC comprising the identification information obtains result request to the server Suddenly, it is not the wait state until being unsatisfactory for described pre-conditioned or described application result state.
4. method as claimed in claim 2, it is characterised in that the application result information also includes Shen Please result;In the case of it is determined that the application result state is completion status, methods described also includes:
Preserve the application result in the application result information.
5. method as claimed in claim 2, it is characterised in that it is determined that the RPC obtain result should In the case that the application result state answered is final state, methods described also includes:
Stop the RPC invoked procedure corresponding with the identification information;
The release cpu resource corresponding with the identification information.
6. the method as described in claim any one of 1-5, it is characterised in that described to meet pre-conditioned Determination process include:
Judged for the second time whether more than default time-out time;Wherein, second time is at client That manages the RPC applications call request has used the time;
If second time is more than the default time-out time, judgement is unsatisfactory for pre-conditioned;
If second time is not more than the default time-out time, judgement meets pre-conditioned.
7. the method as described in claim any one of 1-5, it is characterised in that also include:
The RPC applications comprising the identification information are sent to the server stop request.
8. a kind of remote procedure calling (PRC) method, it is characterised in that including:
After the RPC application call requests that client sends are received, sent comprising mark to the client Response is called in the RPC applications of knowledge information;Wherein, the identification information is used for RPC Shens described in unique mark Please call request;
Build the mapping relations of the identification information and application result region;
Result is obtained in the RPC comprising the identification information for receiving the client transmission to ask and meet After pre-conditioned, send the RPC comprising application result information to the client and obtain result response; Wherein, the application result information is the letter that the application result region corresponding with the identification information is included Breath, and the application result information at least includes application result state.
9. method as claimed in claim 8, it is characterised in that the application result state includes:Deng Treat state, completion status or halted state;
Wherein, the wait state represents that the server does not generate the state of application result;The completion Server described in state representation has generated the state of application result;The final state represents the server After the very first time is more than default time-out time, the state of application result is not generated yet, when described first Between be that RPC applications call request has used the time described in the server process.
10. the method for claim 1, it is characterised in that also include:
The acquisition result requests of the RPC comprising the identification information that the client sends persistently are received, and The step of RPC acquisition result responses comprising application result information are sent to the client, until discontented Foot is pre-conditioned.
11. methods as claimed in claim 8, it is characterised in that described to meet pre-conditioned determination Process includes:
Judge the very first time whether more than default time-out time;Wherein, the very first time is the service Device treatment RPC application call request has used the time;
If the very first time is more than default time-out time, judgement is unsatisfactory for pre-conditioned;
If the very first time is not more than default time-out time, judgement meets pre-conditioned.
12. methods as claimed in claim 11, it is characterised in that exceed the time limit more than default in the very first time After time or reception RPC applications of the client transmission comprising the identification information stop asking, institute Stating method also includes:
Stop the RPC invoked procedure corresponding with the identification information;
Corresponding resource information is asked in the release RPC resource bid corresponding with the identification information.
13. method as described in claim any one of 8-12, it is characterised in that the identification information Building process includes:
After the RPC applications call request is received, it is determined that processing the RPC applications call request Current thread is identified and current time;
Using current thread mark and the current time, the identification information is built.
A kind of 14. remote procedure call devices, it is characterised in that including:
First receiving unit, for after RPC application call requests are sent to server, receiving described Response is called in the RPC applications that server sends;Wherein, RPC application calls the response to include only table Show that the RPC applies for the identification information of call request;
First transmitting element, for meet it is pre-conditioned under, to the server send include the mark The RPC of knowledge information obtains result request;
Second receiving unit, obtains for receiving the RPC comprising application result information that the server sends Take result response;Wherein, the application result information by server in the Shen corresponding with the identification information Please be obtained in results area, also, the application result information at least includes application result state.
15. devices as claimed in claim 14, it is characterised in that also include:
Determining unit, for determining the application result state, the application result state includes:Wait State, completion status or halted state;
Wherein, the wait state represents that the server does not generate the state of application result;The completion Server described in state representation has generated the state of application result;The final state represents the server After the very first time is more than default time-out time, the state of application result is not generated yet, when described first Between be that RPC applications call request has used the time described in the server process.
16. devices as claimed in claim 15, it is characterised in that it is determined that the application result state In the case of for wait state, also include:
First transmitting element is additionally operable to, and continuously carries out and is sent comprising the mark letter to the server The step of RPC acquisitions result of breath is asked, until being unsatisfactory for described pre-conditioned or described application result State is not the wait state.
17. devices as claimed in claim 15, it is characterised in that the application result information also includes Application result;In the case of it is determined that the application result state is completion status, also include:
Storage unit, for preserving the application result in the application result information.
18. devices as claimed in claim 15, it is characterised in that it is determined that the RPC obtains result In the case that application result state in response is final state, also include:
First stop element, for stopping the RPC invoked procedure corresponding with the identification information;
First releasing unit, for discharging the cpu resource corresponding with the identification information.
19. device as described in claim any one of 14-18, it is characterised in that also include:
First judging unit, for judging for the second time whether more than default time-out time;Wherein, it is described Second time used the time for RPC applications call request described in client process;
First identifying unit, if being more than the default time-out time for second time, judges not Meet pre-conditioned;
Second identifying unit, if being not more than the default time-out time for second time, judges Meet pre-conditioned.
20. device as described in claim any one of 14-18, it is characterised in that also include:
Second transmitting element, stops for sending the RPC applications comprising the identification information to the server Only ask.
A kind of 21. remote procedure call devices, it is characterised in that including:
3rd transmitting element, for after the RPC application call requests that client sends are received, to institute State RPC application of the client transmission comprising identification information and call response;Wherein, the identification information is used for RPC applications call request described in unique mark;
Construction unit, the mapping relations for building the identification information and application result region;
4th transmitting element, for receiving the RPC comprising the identification information that the client sends Obtain result ask and meet it is pre-conditioned after, sent comprising application result information to the client RPC obtains result response;Wherein, the application result information is the application corresponding with the identification information The information that results area is included, and the application result information at least includes application result state.
22. devices as claimed in claim 21, it is characterised in that the application result state includes: Wait state, completion status or halted state;
Wherein, the wait state represents that the server does not generate the state of application result;The completion Server described in state representation has generated the state of application result;The final state represents the server After the very first time is more than default time-out time, the state of application result is not generated yet, when described first Between be that RPC applications call request has used the time described in the server process.
23. devices as claimed in claim 22, it is characterised in that
4th transmitting element, for persistently receiving that the client sends comprising the identification information RPC obtain result request, and to the client send comprising application result information RPC obtain knot It is the step of fruit response, pre-conditioned until being unsatisfactory for.
24. devices as claimed in claim 21, it is characterised in that also include:
Second judging unit, for judging the very first time whether more than default time-out time;Wherein, it is described The very first time is that RPC applications call request has used the time described in the server process;
3rd identifying unit, if being more than default time-out time for the very first time, judgement is unsatisfactory for It is pre-conditioned;
4th identifying unit, if being not more than default time-out time for the very first time, judges to meet It is pre-conditioned.
25. devices as claimed in claim 24, it is characterised in that exceed the time limit more than default in the very first time After time or reception RPC applications of the client transmission comprising the identification information stop asking, institute Stating method also includes:
Second stop element, for stopping the RPC invoked procedure corresponding with the identification information;
Second releasing unit, correspondence is asked for discharging the RPC resource bid corresponding with the identification information Resource information.
26. device as described in claim any one of 21-24, it is characterised in that the described 3rd sends single Unit includes construction unit, for building the identification information;
The construction unit, specifically includes:
Determining unit, for after the RPC applications call request is received, it is determined that processing the RPC Apply for the current thread mark and current time of call request;
Identity information element is built, for using current thread mark and the current time, building The identification information.
A kind of 27. RPC systems, it is characterised in that including:
The server that client is connected with the client;
The client, for after RPC application call requests are sent to server, receiving the clothes Response is called in the RPC applications that business device sends;Meet it is pre-conditioned under, to the server send include The RPC of the identification information obtains result request;Receive believing comprising application result for the server transmission The RPC of breath obtains result response;Wherein, the application result information is believed by server with the mark Acquisition in corresponding application result region is ceased, also, the application result information at least includes application result State;
The server, for after the RPC application call requests that client sends are received, to described Client sends the RPC applications comprising identification information and calls response;Wherein, the RPC applications are called and answered Answer including uniquely representing that the RPC applies for the identification information of call request;Build the identification information and Shen Please results area mapping relations;Receiving the RPC comprising the identification information that the client sends Obtain result ask and meet it is pre-conditioned after, sent comprising application result information to the client RPC obtains result response;Wherein, the application result information is the application corresponding with the identification information The information that results area is included, and the application result information at least includes application result state.
CN201510784155.3A 2015-11-16 2015-11-16 Remote procedure calling method, device and system Active CN106713238B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510784155.3A CN106713238B (en) 2015-11-16 2015-11-16 Remote procedure calling method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510784155.3A CN106713238B (en) 2015-11-16 2015-11-16 Remote procedure calling method, device and system

Publications (2)

Publication Number Publication Date
CN106713238A true CN106713238A (en) 2017-05-24
CN106713238B CN106713238B (en) 2020-10-30

Family

ID=58931610

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510784155.3A Active CN106713238B (en) 2015-11-16 2015-11-16 Remote procedure calling method, device and system

Country Status (1)

Country Link
CN (1) CN106713238B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109426571A (en) * 2017-08-28 2019-03-05 阿里巴巴集团控股有限公司 Function call and the method for data access, system, storage medium, processor and device
CN109857507A (en) * 2019-02-21 2019-06-07 成都安恒信息技术有限公司 A kind of method that automation remote executes Windows program
CN110618875A (en) * 2018-06-20 2019-12-27 北京三快在线科技有限公司 Communication method, distributed system, electronic device, and storage medium
CN112565286A (en) * 2020-12-17 2021-03-26 金蝶软件(中国)有限公司 Task response method, device, equipment and storage medium based on RPC access
CN112769824A (en) * 2021-01-07 2021-05-07 深圳市大富网络技术有限公司 Information transmission state updating method, terminal, device and storage medium
CN113778702A (en) * 2021-01-12 2021-12-10 北京沃东天骏信息技术有限公司 Method and device for determining timeout time, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101262498A (en) * 2008-04-22 2008-09-10 华为技术有限公司 A distributed message call method and device
CN102158389A (en) * 2010-06-25 2011-08-17 青岛海信传媒网络技术有限公司 Asynchronous data transmission method, device and system
CN104735137A (en) * 2015-03-09 2015-06-24 广州杰赛科技股份有限公司 Method and system for achieving asynchronous interaction of client and server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101262498A (en) * 2008-04-22 2008-09-10 华为技术有限公司 A distributed message call method and device
CN102158389A (en) * 2010-06-25 2011-08-17 青岛海信传媒网络技术有限公司 Asynchronous data transmission method, device and system
CN104735137A (en) * 2015-03-09 2015-06-24 广州杰赛科技股份有限公司 Method and system for achieving asynchronous interaction of client and server

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109426571A (en) * 2017-08-28 2019-03-05 阿里巴巴集团控股有限公司 Function call and the method for data access, system, storage medium, processor and device
CN110618875A (en) * 2018-06-20 2019-12-27 北京三快在线科技有限公司 Communication method, distributed system, electronic device, and storage medium
CN109857507A (en) * 2019-02-21 2019-06-07 成都安恒信息技术有限公司 A kind of method that automation remote executes Windows program
CN109857507B (en) * 2019-02-21 2022-03-08 成都安恒信息技术有限公司 Method for automatically and remotely executing Windows program
CN112565286A (en) * 2020-12-17 2021-03-26 金蝶软件(中国)有限公司 Task response method, device, equipment and storage medium based on RPC access
CN112769824A (en) * 2021-01-07 2021-05-07 深圳市大富网络技术有限公司 Information transmission state updating method, terminal, device and storage medium
CN112769824B (en) * 2021-01-07 2023-03-07 深圳市大富网络技术有限公司 Information transmission state updating method, terminal, device and storage medium
CN113778702A (en) * 2021-01-12 2021-12-10 北京沃东天骏信息技术有限公司 Method and device for determining timeout time, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN106713238B (en) 2020-10-30

Similar Documents

Publication Publication Date Title
CN106713238A (en) Remote process calling method, device and system
US8621031B2 (en) Method and apparatus using connection pools in communication networks
CN106209682B (en) Business scheduling method, device and system
CN108681777B (en) Method and device for running machine learning program based on distributed system
US10250482B2 (en) Distributed task execution in different locations with dynamic formation of testing groups
CN105516086B (en) Method for processing business and device
US9800516B2 (en) Method and apparatus for managing allocation of communication resources
CN107688502B (en) Inter-process communication method and device
CN108933829A (en) A kind of load-balancing method and device
CN113849312B (en) Data processing task allocation method and device, electronic equipment and storage medium
WO2021159831A1 (en) Programming platform user code running method, platform, node, device and medium
CN106713388A (en) Emergent business processing method and device
CN105978938A (en) Service processing equipment service status determining method and scheduling equipment
CN107807848B (en) Cloud desktop system
US20140317172A1 (en) Workload placement in a computer system
CN109818977B (en) Access server communication optimization method, access server and communication system
CN113377498A (en) Resource scheduling method and device, electronic equipment and storage medium
CN113391925A (en) Cloud resource management method, system, medium, and computer device
CN111835809B (en) Work order message distribution method, work order message distribution device, server and storage medium
CN110502343B (en) Resource allocation method, system, device and computer readable storage medium
CN111552577A (en) Method for preventing invalid request from occurring, storage medium
CN112448977A (en) System, method, apparatus and computer readable medium for assigning tasks
CN113726881B (en) Communication connection establishment method, related device and computer readable storage medium
CN111031123B (en) Spark task submission method, system, client and server
CN115002219B (en) Service calling method, device, equipment, system, storage medium and product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant