Open In App

Lightweight Remote Procedure Call in Distributed System

Lightweight Remote Procedure Call is a communication facility designed and optimized for cross-domain communications in microkernel operating systems. For achieving better performance than conventional RPC systems, LRPC uses the following four techniques: simple control transfer, simple data transfer, simple stubs, and design for concurrency.

In this article, we will go through the concept of Lightweight Remote Procedure Call (RPC) in distributed systems in detail.



Lightweight RPCs are a type of RPC in which the caller and called processes are both running on the same computer. In a distributed system, there are two types of communication:



If both processes are using a shared memory location and reside on the same machine, you might want to avoid utilizing an RPC system. So, it is to be optimized in this manner that the message can be built as a buffer and then simply written to the shared memory area.

The following considerations can help it outperform the standard RPC approach when the client and server are both executing on the same machine and you are making RPC calls between two components on the same machine.

Steps for LRPC Execution:

LRPC is a secure and transparent communication protocol that can be used by microkernel operating systems. For saving expenses that are incurred on RPC calls, it is employed in small-kernel operating systems.

LRPC employs the following strategies to improve the performance of traditional RPC systems:

 

Article Tags :