1. Three-component wasi:http composition with host keyvalue
Edge Platform EngineerBackground
An engineering team is building an API gateway that delegates auth and key-value caching to pluggable WebAssembly components running on Wasmtime and V8.
Problem
The team needs to verify plug order, estimate composition overhead, and ensure that experimental interfaces and JSPI flags do not violate strict cold-start budgets.
How to use
Enter the three components with matching interface imports/exports, select Wasmtime and V8 runtimes, check JSPI and streaming options, and configure budget targets.
components: api-gateway, wasi:http/[email protected] wasi:keyvalue/[email protected], wasi:http/[email protected], 850
auth-plug, -, wasi:http/[email protected], 220
kv-cache, -, wasi:keyvalue/[email protected], 150
targetRuntimes: [wasmtime, v8]
requiredInterfaces: [wasi-http-proxy, wasi-keyvalue]
useJspi: true
streamingResponses: true
expectedInstances: 100
instanceMemoryMb: 16
sizeBudgetKb: 2048
coldStartBudgetMs: 50
ttfbBudgetMs: 100Outcome
Generates a 2-link wac plug sequence, calculates an 8% composition overhead, flags wasi:keyvalue as an active proposal, and validates memory usage across 100 instances.