AlgoViz

Remote procedure calls (RPC)

medium 26 min

A remote procedure call lets a program call a function that runs on another machine, using code that looks like a local call.

Where it shows up

The same pattern appears across everyday software.

  • Google

    Google describes connecting its microservices for over a decade with one internal RPC system, Stubby, before releasing gRPC.

  • Kubernetes and etcd

    etcd, which stores Kubernetes cluster state, offers its version 3 API over gRPC, including streams that watch keys for changes.

  • Network file system

    NFS was built on Sun RPC: opening a remote file becomes calls to another machine.

  • Ethereum nodes

    Wallets and tools talk to nodes through a JSON-RPC interface.

  • Language servers

    Code editors talk to language servers with JSON-RPC messages, often between two processes on one machine.

  • Apache Thrift

    Created at Facebook for calls between programs in different languages, and now an Apache project.