DEV Community

Cover image for An Introduction to Remote Procedure Calls (RPC's)
Desmond
Desmond

Posted on

4 1

An Introduction to Remote Procedure Calls (RPC's)

I've started studying distributed systems in college and here's a beginners view on RPC's.

What is a Remote Procedure call?

Remote Procedure calls are protocols that enable a program execute a service in a different address space or another computer for simplicity.These are normally referred to as subroutine calls or function calls.

RPC's are synchronous which means client programs requesting need to be suspended until the results of the subroutine call is returned.

In the OSI model, an RPC laps the transport layer and Application Layer.

Types of RPC

  1. The regular method in which the client continually pings the server until it responds.

  2. The client requests and continues to process without having to wait for a response from the server. note : The server doesn't respond.

  3. Sending non-blocking client calls in bulk.

  4. Sending messages to many servers and receiving replies

  5. Client makes a non-blocking client/server call , the server responds by invoking a procedure associated with the client.

AWS Q Developer image

Your AI Code Assistant

Implement features, document your code, or refactor your projects.
Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

Top comments (0)

Image of Timescale

πŸ“Š Benchmarking Databases for Real-Time Analytics Applications

Benchmarking Timescale, Clickhouse, Postgres, MySQL, MongoDB, and DuckDB for real-time analytics. Introducing RTABench πŸš€

Read full post β†’

πŸ‘‹ Kindness is contagious

If this article connected with you, consider tapping ❀️ or leaving a brief comment to share your thoughts!

Okay