liveBook · Manning

Remote procedure call

As explained in Server-Side WebAssembly

A remote procedure call is a communication mechanism that lets a program invoke a function or procedure on another system.

A remote procedure call (RPC) lets one program execute a function or procedure on another system, simplifying communication across distributed components. section 6.1

In wasmCloud, component links established through wadm enable components on the same host or across hosts to communicate over NATS using the component-native wRPC protocol. section 6.1

Hello World across a wasmCloud link

A Rust HTTP component exports an incoming-handler interface. A wadm manifest links it to an HTTP server capability, which routes requests to the component; curl http://127.0.0.1:8000 returns “Hello from Rust!”. section 6.1

How Server-Side WebAssembly covers it

How deep it goes
Defines RPC and explains its wasmCloud architecture, but stops short of detailing the wRPC protocol internals.
Examples
Demonstrates an HTTP component, a linked HTTP server capability, a wadm manifest, NATS, and a curl response.
What you can do after
Evaluate how wasmCloud components communicate locally or across hosts through configured runtime links.
How it connects
Connects remote procedure call with distributed systems, WebAssembly components, wasmCloud, NATS, wRPC, and wadm.

Also explained in

Compare how 5 books explain remote procedure call →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Server-Side WebAssembly. The section links point to the parts of the book it draws on.