Remote Procedural Call (RPC) Mechanism (original) (raw)

Last Updated : 2 Feb, 2026

A Remote Procedure Call (RPC) is a communication protocol that enables a program to request a service or execute a procedure on a remote server as though it were a local function call.

remote_procedural_call_rpc_

Remote Procedural Call (RPC)

Importance of RPC in Distributed Systems

Simplified Communication

Enhanced Modularity and Reusability

Facilitates Distributed Computing

RPC Architecture in Distributed Systems

RPC follows a client-server model, where the client requests execution of a remote procedure and the server responds.

1. Client and Server Components

2. Stubs

3. Marshalling and Unmarshalling

4. Communication Layer

5. RPC Framework

6. Error Handling and Fault Tolerance

7. Security

Types of RPC

1. Synchronous RPC

2. Asynchronous RPC

3. One-Way RPC

4. Callback RPC

5. Batch RPC