28-08-2017, 01:09 PM
Remote Procedure Call (RPC) is a protocol that a program can use to request a service from a program located on another computer in a network without having to understand the details of the network. A procedure call is also sometimes known as a function call or a subroutine call.
RPC uses the client-server model. The requesting program is a client and the program that provides the service is the server. As a normal or local procedure call, an RPC is a synchronous operation that requires the requesting program to be suspended until the results of the remote procedure are returned. However, using lightweight processes or threads that share the same address space allows multiple RPCs to be run concurrently.
RPC message procedure
When the program statements that use the RPC framework are compiled into an executable program, a stub is included in the compiled code that acts as the representative of the remote procedure code. When the program is run and the procedure call is issued, the stub receives the request and forwards it to a client run program on the local machine.
The client runtime program has the knowledge of how to approach the remote computer and the server application and sends the message through the network requesting the remote procedure. Similarly, the server includes an execution program and a stub that interact with the remote procedure itself. Response request protocols are returned in the same manner.
RPC uses the client-server model. The requesting program is a client and the program that provides the service is the server. As a normal or local procedure call, an RPC is a synchronous operation that requires the requesting program to be suspended until the results of the remote procedure are returned. However, using lightweight processes or threads that share the same address space allows multiple RPCs to be run concurrently.
RPC message procedure
When the program statements that use the RPC framework are compiled into an executable program, a stub is included in the compiled code that acts as the representative of the remote procedure code. When the program is run and the procedure call is issued, the stub receives the request and forwards it to a client run program on the local machine.
The client runtime program has the knowledge of how to approach the remote computer and the server application and sends the message through the network requesting the remote procedure. Similarly, the server includes an execution program and a stub that interact with the remote procedure itself. Response request protocols are returned in the same manner.