What is Remote Procedure Call (RPC)?Remote Procedure Call is a software communication protocol that one program can use to request a service from a program located in another computer on a network without having to understand the network's details. RPC is used to call other processes on the remote systems like a local system. A procedure call is also sometimes known as a function call or a subroutine call. Show RPC uses the client-server model. The requesting program is a client, and the service-providing program is the server. Like a local procedure call, an RPC is a synchronous operation requiring the requesting program to be suspended until the results of the remote procedure are returned. However, the use of lightweight processes or threads that share the same address space enables multiple RPCs to be performed concurrently. The interface definition language (IDL) -- the specification language used to describe a software component's application programming interface (API) -- is commonly used in Remote Procedure Call software. In this case, IDL provides a bridge between the machines at either end of the link that may be using different operating systems (OSes) and computer languages. What does RPC do?When 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 runtime program in the local computer. The first time the client stub is invoked, it contacts a name server to determine the transport address where the server resides. The client runtime program has the knowledge of how to address the remote computer and server application and sends the message across the network that requests the remote procedure. Similarly, the server includes a runtime program and stub that interface with the remote procedure itself. Response-request protocols are returned the same way. How does RPC work?When a remote procedure call is invoked, the calling environment is suspended, the procedure parameters are transferred across the network to the environment where the procedure is to execute, and the procedure is then executed in that environment. When the procedure finishes, the results are transferred back to the calling environment, where execution resumes as if returning from a regular procedure call. During an RPC, the following steps take place:
Types of RPCThere are several RPC models and distributed computing implementations. A popular model and implementation is the Open Software Foundation's (OSF) Distributed Computing Environment (DCE). The Institute of Electrical and Electronics Engineers (IEEE) defines RPC in its ISO Remote Procedure Call Specification, ISO/IEC CD 11578 N6561, ISO/IEC, November 1991. Examples of RPC configurations include the following:
RPC spans the transport layer and the application layer in the Open Systems Interconnection (OSI) model of network communication. RPC makes it easier to develop an application that includes multiple programs distributed in a network. Alternative methods for client-server communication include message queueing and IBM's Advanced Program-to-Program Communication (APPC). Pros and cons of RPCThough it boasts a wide range of benefits, there are certainly a share of pitfalls that those who use RPC should be aware of. Here are some of the advantages RPC provides for developers and application managers:
On the other hand, some of the disadvantages of RPC include the following:
This was last updated in October 2021 Continue Reading About Remote Procedure Call (RPC)
Dig Deeper on Application development and design
What is responsible for response in clientClient computers provide an interface to allow a computer user to request services of the server and to display the results the server returns. Servers wait for requests to arrive from clients and then respond to them.
What are distributed servers?Customers with users and offices in multiple geographical locations can deploy separate clusters of the IMS Server and database in geographically separated sites. This option distributes and localizes the traffic and load.
What is the role of a client in a clientClients, also known as service requesters, are pieces of computer hardware or server software that request resources and services made available by a server. Client computing is classified as Thick, Thin, or Hybrid.
What is clientA client-server system is one that uses network resources and shared processing (by both client and server), to provide front-end applications with concurrent, shared data access.
|