⚡ API Patterns and Practices: Server-Side WebAssembly
Home Chapters Examples Diagrams Bibliography GitHub ↗
Home / Foundations
Part 1 5 chapters

Foundations

Where server-side Wasm fits alongside containers, how the sandboxed execution model and capability-based security work, the Component Model and WIT as the contract between components, WASI Preview 2's host interfaces, and the shared cargo domain this site builds as components.

Chapter 1

Why Server-Side WebAssembly

The case for running server-side workloads as Wasm components, where they fit against containers, and what this site builds to show it.

12 min readRead →
Chapter 2

The Execution Model

How Wasm modules and linear memory work, the sandbox they run inside, and the capability-based security model that replaces ambient authority.

20 min readRead →
Chapter 3

The Component Model and WIT

Interfaces as the contract between components, how a WIT world describes imports and exports, and what it takes to compose components together.

22 min readRead →
Chapter 4

WASI Preview 2

What capabilities WASI Preview 2 grants a component, the host interfaces it defines, and the standard WASI worlds a component can target.

17 min readRead →
Chapter 5

The Shared Cargo Domain as Components

The shipping and cargo domain every later chapter builds on, modeled as three WIT interfaces and two worlds that the Rust and Go implementations share.

22 min readRead →
← Previous part Prerequisites Next part → Building Components in Rust & Go

API Patterns and Practices: Server-Side WebAssembly

Designing and deploying server-side WebAssembly components well, with runnable examples in Rust and Go against one WIT contract, running on wasmtime and wasmCloud and deployed to Kubernetes on minikube and OpenShift Local.

Site

  • Outline
  • Bibliography

Reference

  • Component Model ↗
  • WASI ↗
  • wasmtime ↗
  • View on GitHub ↗
  • Issues ↗
Open source · MIT Last built 2026-11-11