Follow us
Breaking
Tech News

Unikraft, Firecracker, and the Wasm networking shift

Unikraft delivers 50-100% better throughput than standard Linux, offering a high-performance alternative for cloud teams. This technology enables Prisma to run thousands of PostgreSQL instances on single servers while providing millisecond boot times for scaling AI workloads.

Share

Unikraft provides 50-100% better throughput than standard Linux. Prisma uses Unikraft to run thousands of PostgreSQL instances on single servers to achieve near-zero scaling costs. This technology solves cold start problems and reduces infrastructure expenses. Cloud teams selecting between Firecracker microVMs and Wasm runtimes must weigh these performance gains against isolation requirements. I find that Unikraft occupies the optimal space for AI workloads that require frequent scaling. Unikernels package applications with minimal OS components and deliver millisecond boot times. While Docker uses kernel namespaces and cgroups to isolate processes, Unikraft reduces the attack surface by removing unnecessary OS layers. Docker relies on PID namespaces for separate process trees and mount namespaces for unique filesystems. It uses network namespaces for isolated IP addresses and UTS namespaces for hostnames. It also uses IPC namespaces for isolated inter-process communication. User namespaces allow a container to map UID 0 to an unprivileged user on the host. Cgroups limit resource consumption through memory, CPU, I/O, and PID limits. I believe Unikraft provides the better choice for high-density database deployments because it bypasses the overhead of full Linux distributions.

Firecracker usually needs hardware virtualization like KVM to run. This limitation forced developers to rely on bare metal or cloud VMs with nested virtualization enabled. Ant Group and Alibaba introduced PVM to solve this. PVM lets Firecracker run even on VMs without KVM. The introduction of PVM by Ant Group and Alibaba allows developers to run Firecracker microVMs in environments where nested virtualization remains unavailable, which significantly expands the potential for secure, isolated workloads in CI/CD pipelines. This development expands adoption of microVM technology beyond specialized setups. I view this as a way to enable secure workloads in serverless and sandboxed apps. Alex Ellis reported that the technology is still in early days requiring patches and custom kernels. This makes the technology feel similar to the early days of Docker. This shift expands the use of microVMs to environments where nested virtualization is not an option.

Wasm security uses Software Fault Isolation to execute modules in a sandboxed environment. Each module runs in a single, contiguous linear memory region that the host runtime zero-initializes by default. The runtime performs bounds-checking on every access to this memory. Modules cannot escape the sandbox without explicitly granted APIs. The Wasm security model guarantees that all accessible functions and their types must be declared at load time. Firefox uses the RLBox framework to sandbox third-party libraries like font and XML parsers. Google’s V8 engine implements its own heap sandbox SFI mechanism to protect billions of users. A 2025 ACM CCS paper identified 19 security bugs in V8’s heap sandbox through controlled fault injection. WASI 0.2, which became stable in January 2024, includes the Component Model and wasi-sockets. This version also includes wasi-http, wasi-io, and wasi-clocks. The Component Model uses WIT definitions to describe interfaces between components. WASI 0.3 targets 2026 for standardization and adds native async I/O. The Go ecosystem recently proposed GOOS=wasip3 support to enable idiomatic use of goroutines. Wasm modules cannot open sockets without a network capability handle granted by the host. This capability-based access provides a different security posture than native binaries. Wasm networking relies on specifications like WebTransport for low-latency, bidirectional, client-server communication over HTTP/3 and QUIC. WebTransport supports multiple streams, unidirectional streams, out-of-order delivery, and both reliable and unreliable transport. QUIC eliminates head-of-line blocking because only the stream affected by packet loss stalls. This makes Wasm networking more viable for multiplexed dev-server proxying. Over 40% of web traffic now travels via QUIC/HTTP/3. For performance-critical bulk transfers, native binaries still hold an advantage because Wasm faces JIT warm-up and browser sandbox overhead. Does Wasm’s performance ever truly match Unikraft’s throughput for heavy database workloads?

Share

Technewsdaily

Senior tech writer covering AI, gadgets and cybersecurity. Breaking down the news that matters, every day.