Networking

RPC (Remote Procedure Call)

Calling a function that runs on another machine as if it were local: the arguments are serialized, sent over the network, executed on a server, and the return value is sent back.

A tRPC or gRPC client calls user.get(42) โ€” the code reads like a local call, but it round-trips to the server.

Client
getUser(42)
Network
Server
Looks local, runs on the server

Tap the example to replay it ยท press and hold to slow it down

One of 40 cards in javascript flashcards. Browse every card.