liveBook · Manning

Lattice

As explained in Server-Side WebAssembly

A wasmCloud lattice is a distributed network in which multiple wasmCloud hosts communicate and coordinate application components.

A wasmCloud lattice is a distributed network where multiple wasmCloud hosts communicate and coordinate Wasm components through NATS. It supports components running on one host or distributed across hosts, while wadm monitors deployments and manages runtime links. section 6.1

A lattice combines several operational roles:

  • Hosts embed Wasmtime to execute Wasm components and provide capabilities such as HTTP serving. section 6.1
  • NATS provides the messaging layer for communication between distributed components. section 6.1
  • wadm monitors the lattice and manages deployment state, links, and component placement. section 6.1

Hello World across the lattice

A wadm manifest deploys an HTTP component and an HTTP-server capability, then links the server to the component through the wasi:http incoming-handler interface. Run wash up -d, wash build, wash app deploy ./wadm.yaml, and curl http://127.0.0.1:8000 to receive “Hello from Rust!”. section 6.1

Figure 6.1 The architecture of our “Hello, World” wasmCloud application
A screenshot of a chat

AI-generated content may be incorrect.

Use the architecture diagram to trace hosts, NATS, wadm, components, and capability links. section 6.1

How Server-Side WebAssembly covers it

How deep it goes
Explains hosts, NATS, wadm, deployment manifests, and runtime linking, but stops short of multi-machine deployment details.
Examples
Uses a Rust HTTP Hello World component, a wadm manifest, one instance, and a local curl request.
What it assumes
Assumes basic Wasm application development while teaching lattice processes, manifests, links, and local startup.
What you can do after
Operate a local lattice with wash, deploy linked components, inspect hosts, and verify an HTTP response.
How it connects
Connects Wasm components with wasmCloud hosts, NATS, wadm, capability providers, and runtime linking.

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.