The 62 diagrams from Designing Cloud-Native APIs: WebAssembly, in reading order. Each one renders
inline here and ships a paired .excalidraw source you can
open on excalidraw.com and edit.
Figure 0.1: The build toolchain: two languages, one contract, one host runtime.
Figure 5.1: The cargo domain model: what books, what plans a route, and what records history, plus the two shared value types every entity borrows from.
Figure 7.1: the Go build pipeline: generation and componentization use ordinary tools either way; only the middle band, compilation, is where TinyGo replaces go build.
Figure 7.2: same source, two compilers: go build's 64-bit Wasm target rejects the pointerful wasmexport signatures wit-bindgen-go generates; TinyGo's native 32-bit target accepts them unchanged.
Figure 9.2: a component carries no debug info of its own; DWARF, when present, lives in exactly one core module, and wasmtime's trap symbolizer reads it from there directly.
Figure 10.1: the same wasmtime host observes two structurally different kinds of failure from the identical function, get-cargo, depending on which tracking ID it passes.
Figure 10.2: Rust's Result/panic! and Go's cm.Result/panic() both map onto the same WIT result<_, cargo-error>, except for the trap path, which has no WIT representation at all.
Figure 12.2: Protobuf decode, WIT dispatch, and protobuf encode all run inside the component; the identical shape in Rust (prost) and TinyGo (a reflection-free wire codec) produces byte-identical output.
Figure 15.1: the wasmCloud lattice for cargo-http: NATS + wadm outside the host, the httpserver provider and the component linked inside it, dispatching the same app.wasm that runs under wasmtime serve single-process.
Figure 15.2: wadm's SpreadScaler reconciling the component back to one instance after a manual scale-to-zero: 500s for about two seconds, then recovery, with no redeploy.
Figure 18.1: the live request path on minikube, host to nip.io Ingress to Service to Pod to the containerd wasmtime shim to app.wasm, with no tunnel anywhere in the chain.
Figure 18.2: the build, package, load, and deploy pipeline, the same wac-plug recompose Part 3 used, now wrapped for a scheduler instead of a process, with shim install ordered before the ingress addon.
Figure 19.1: the live CRC request path: edge-TLS Route to a selector-less Service to the wasmCloud host pod to the httpserver provider to the same app.wasm export, all under restricted-v2.
Figure 19.2: the operator/lattice topology: the pinned chart brings up NATS, wadm, and the operator; a WasmCloudHostConfig becomes a host Deployment; a daemonscaler-traited wadm Application is what makes the operator create the Service.
Figure 20.1: the same interposer, two substrate expressions: wac-plug composition (one shared instance) on minikube, wadm runtime links (independent per-call instances) on CRC.
Figure 21.1: the adapter's shape translation, two substrate expressions: lossless round-trip either way, but the valid-id state finding only shows up on CRC.
Figure 21.2: the ambassador's outbound call reached only through a grant: CRC's cluster-live 404-versus-5xx link contrast, and minikube's local wasmtime capability/backoff smoke.
Figure 22.1: the two scaling levers: a Kubernetes HPA reading cgroup metrics on minikube, and a wadm spreadscaler changing in-host instance count with no Pod churn on CRC.
Figure 22.2: the scaling math: a Wasm component's millisecond cold start removes the warm-up risk a scale-down window is sized for. This chapter's CPU-based HPA never reaches a scale-out to exercise it; the KEDA HTTP add-on's scale-from-zero cold start is where the same property pays off.
Figure 23.1: two trigger types, one owner: KEDA patches a Deployment's replica count directly in both halves, request concurrency on the left and consumer-group lag on the right.
Figure 23.2: one loop, one owner: KEDA reads real consumer-group lag and scales cargo-kafka-host's replica count directly; the host embeds the Wasm runtime itself.
Figure 24.1: two emitters, two substrates: shim-level traces only on minikube (into otel-lgtm) versus host-native traces, metrics, and logs on CRC, landing in a rootless restricted-v2 collector whose debug and file exporters are the evidence sink. No otel-lgtm on CRC.
Figure 24.2: signal provenance: on minikube only traces are shim-emitted OTel (metrics and logs still exist, but through metrics-server and kubelet, not this chapter's OTLP pipeline); on CRC all three signals are host-native and OTel-native.
Figure 25.1: two Wasm worlds across the mesh: the ingress gateway's proxy-wasm filter and the cargo-http Pod's unmodified Component Model app, in separate Pods with no shared RuntimeClass.
Figure 25.2: WasmPlugin distribution to the ingress gateway's Envoy (control plane), and the request path from there, across the mesh, to the cargo-http Pod (data plane).
Figure 27.1: the inference path from a JPEG fixture through in-guest preprocessing, across the wasi:nn import boundary, into wasmtime's OpenVINO backend, and back to a ranked label list.
Figure 28.1: the assembled final-project request path on minikube: two edges (ingress-nginx, Istio gateway with the Istio-and-WebAssembly filter), two language Pods on the shim, one shared OTel pipeline.