0
10kviews
Explain the architecture of RPC.

Subject :- Data Structures

Topic :- Communication

Difficulty :- Medium

1 Answer
0
249views

RPC (Remote Procedure Call) is a technique used for for constructing distributed, client-server based applications. It provides a communication mechanism by which a procedure stored on remote machine can be called by the client. The called procedure need not to be exist in the same address space as the calling procedure. The two processes may be on the same system, or they may be on different systems with a network connecting them. By using RPC, programmers of distributed applications avoid the details of the interface with the network. The transport independence of RPC isolates the application from the physical and logical elements of the data communications mechanism and allows the application to use a variety of transports.

• RPC makes the client/server model of computing more powerful and easier to program.

• The main components of RPC architecture are Clent, Client Stub, Server, Server Stub and RPC Runtime.

Working:

• The execution phases of an RPC thread, as shown in Execution Phases of an RPC Thread include the following:

  1. The RPC operation begins in the client machine by client program, as a client application makes an RPC to its stub.

  2. The Client stub packs the parameters to be sent to server process in the form of a message.

  3. The RPC Runtime at the client forwards the message to server through the communication network.

  4. RPC Runtime component at server side forwards the message to server stub.

  5. Server stub unpacks the parameters and hands over the parameters to the remote procedure.

  6. The remote procedure gets executed, and results are sent back to the client in the reverse direction

Please log in to add an answer.