WebAssembly (Wasm) in Cloud Native
Running WebAssembly workloads on Kubernetes and serverless platforms for near-native performance, instant cold starts, and sandboxed multi-tenancy.
Overview
Wasm beyond the browser
WebAssembly (Wasm) was designed for the browser. Its properties (compact binary format, near-native speed, sandboxed security and language agnosticism) make it increasingly attractive for server-side and cloud-native workloads.
The path from source code to a running workload has three stages. You write the code in Rust, C or another language that compiles to Wasm, and the compiler produces a Wasm module that talks to the outside world through WASI. You push that module to an OCI registry and pull it back like a container image. From the registry it can run in three kinds of places: a standalone runtime such as Wasmtime, WasmEdge or Spin; a Kubernetes pod, through the runwasi shim; or a CDN edge node.
Key concepts
- WASI (WebAssembly System Interface)
- Wasmtime
- WasmEdge
- Spin (Fermyon)
- runwasi
- Component model
Interview questions
- What advantages does WebAssembly offer over containers for edge and serverless computing?
Sign up free to read the full topic
More DevOps topics
Start free on Cariara · Coding problems · System design studio