Editorial question19.4K views742 votes0 answers4,939 following
AI-generatedPer-request compileStreaming vs pre-compiled Module shared to workers for tail latency
Goal is to keep tail latency stable for a WebAssembly service under concurrent requests. Single-request benchmarks hide contention that appears when multiple requests trigger compilation and instantiation at the same time. Approach A uses per-request WebAssembly.compileStreaming and instantiateStreaming to compile while bytes arrive. Approach B compiles once