DEV Community

Cover image for What is a RPC (Remote Procedure Call)?
Douglas Moura
Douglas Moura

Posted on • Updated on • Originally published at douglasmoura.dev

What is a RPC (Remote Procedure Call)?

A remote procedure call (RPC) is a mechanism of communication between two computational environments, where one can be identified as a client, while the other can be identified as a server.

From the client's point of view, the RPC is just a matter of calling a function with the desired arguments and await for the response, in order to continue the program's execution.

Diagram on how a RPC (remote procedure call) works

Thus, using an RPC allows one programmer to distribute the system, according to their needs.

References:

RPC Vs Simple Procedure Call - Georgia Tech - Advanced Operating Systems
How RPC works
Remote Procedure Calls (RPC)
Introduction to RPC Programming
Building an end-to-end typesafe API — without GraphQL

Top comments (0)