⚡ API Patterns and Practices: Server-Side WebAssembly
Home Chapters Examples Diagrams Bibliography GitHub ↗
Home / Runtimes: wasmtime & wasmCloud
Part 4 3 chapters

Runtimes: wasmtime & wasmCloud

Run components standalone under wasmtime, then move to wasmCloud's distributed actor model for linking and scaling, and see where the two runtimes combine in one deployment.

Chapter 14

wasmtime

Embed wasmtime in a native Rust host: the Engine, Store and Linker lifecycle, a host-provided import satisfied by a Rust closure, and the three Store-level controls (fuel, epoch interruption and a ResourceLimiter) that stop a guest from running away with the process.

22 min readRead →
Chapter 15

wasmCloud

Run the same component on wasmCloud's lattice, with a capability provider, a declarative OAM link and wadm's reconcile loop in place of a single wasmtime process.

17 min readRead →
Chapter 16

wasmtime and wasmCloud Together

One WIT-conformant component, built once, runs byte-for-byte identical on wasmtime and on wasmCloud. This covers the portability payoff of contract-first design, the one real behavioral gap between the runtimes, and when to pick each.

11 min readRead →
← Previous part Interfaces: HTTP & gRPC Next part → Deploying to Kubernetes

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