VOOZH about

URL: https://thenewstack.io/why-wasi-preview-2-makes-webassembly-production-ready/

⇱ Why WASI Preview 2 Makes WebAssembly Production Ready - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2024-04-05 06:21:01
Why WASI Preview 2 Makes WebAssembly Production Ready
sponsor-nginx,sponsored-post-contributed,
Open Source / Security / WebAssembly

Why WASI Preview 2 Makes WebAssembly Production Ready

Until recently, Wasm’s reality didn’t live up to the hype. Preview 2 is the missing link that Wasm needed to become viable for production use cases.
Apr 5th, 2024 6:21am by Oscar Spencer
👁 Featued image for: Why WASI Preview 2 Makes WebAssembly Production Ready
NGINX sponsored this post.

WebAssembly, or Wasm for short, has long promised to revolutionize application development. The dream was simple yet powerful (and familiar): Write your code once and run it anywhere. Wasm also promised to run code at near-native speeds. Even better, unlike previous attempts at universal runtimes like Java applets, Wasm offered stronger security guarantees and a rock-solid default security posture with a deny-by-default nature — access to system resources is disabled unless a developer indicates otherwise.

Until recently, Wasm’s reality didn’t live up to the hype. Despite the immense potential and incredible community, Wasm lacked the necessary tooling, stable interfaces and APIs to make it truly production ready. Developers who wanted to use Wasm had to become Wasm experts themselves, venturing into murky, undocumented waters. Or they could turn to specialized Wasm platform-as-a-service companies like Cosmonic or Fermyon, which offer smoother on-ramps by hiding much of the initial complexity.

More Than a Preview: Stabilizing the Component Model

Enter WASI Preview 2. Although it is only called a “preview,” don’t let the terminology fool you. WASI Preview 2 is the missing link that Wasm needed to become a viable option for production use cases. WASI, which stands for WebAssembly System Interface, is a set of standards that define a standardized way for Wasm modules to securely interact with system resources. Preview 2 represents a significant milestone in Wasm’s evolution because it provides a solid checkpoint from which developers can build with confidence knowing that the entire platform isn’t going to change out from under them.

At the heart of WASI Preview 2 is the WebAssembly Component Model. This critical piece of the puzzle provides a way to compose Wasm components into larger components, even if they were written in different languages. It’s a major step forward in terms of flexibility and cross-language compatibility. The component model defines a Canonical ABI (application binary interface) that standardizes the way components talk to each other and prevents them from accessing other components’ memories. This eliminates the largest classes of bugs and security vulnerabilities.

Another key aspect of WASI Preview 2 is the stabilization of APIs. This ensures backward compatibility in the future for Wasm applications, giving developers the confidence to build on top of Preview 2 without worrying about future disasters. It’s analogous to the way POSIX (the Portable Operating System Interface) standardized interfaces across Unix-like operating systems, making it much easier to write portable software.

Going Beyond ‘POSIX for Wasm’

But WASI intends to go further, including interfaces for all sorts of things that aren’t necessarily system resources. (Some of us in the community are trying to change what “WASI” stands for to WebAssembly Standard Interfaces to reflect this.) WASI includes HTTP as a first-class interface, a critical networking and connection capability that isn’t present in POSIX, providing better options to keep tabs on what a module is allowed to do rather than handling it as a raw socket (of course, you can do that too). It also simplifies certain aspects compared to POSIX that make more sense for WebAssembly, such as reducing from 4 to just 2 system clocks. These improvements make WASI Preview 2 a more modern and portable interface — both for web and backend apps.

The practical implications of WASI Preview 2 are huge. Previously, developers struggled to build Wasm applications outside of specialized PaaS systems that abstracted away the complexity. The lack of stable APIs and tooling made it difficult to build confidence in Wasm as a production-grade technology. Preview 2 changes all of that, paving the way for broader, even mainstream, adoption of Wasm.

The upshot of all this? When building Wasm apps, you can now pick and choose libraries from any language ecosystem, compile them into components and compose them to make one app. Teams within your organization can all develop the systems they’re responsible for with whatever tech stack they prefer. Then, through the power of the component model, developers and teams can compose them into one monolithic application with confidence that the pieces will all fit together and perform in a predictable manner.

No doubt, Wasm has always been a technology with enormous potential. Until now, that potential was stymied by gaps in tooling, stability and critical features. WASI Preview 2 fills those gaps nicely, clearing the path for Wasm to realize its promise of developer-friendliness in production environments. WASI Preview 2 and the component model should spark a rapid increase in Wasm adoption and deployment. Above all, it’s a major step forward that should make any developer or technology leader excited about the future of Wasm and encourage them to get their hands dirty building out Wasm apps.

Every major technology shift has a tipping point that drives adoption. WASI Preview 2 should be that tipping point for Wasm. It will make developing software easier, faster and more secure for developers everywhere.

NGINX, now a part of F5, is the company behind the popular open source project, NGINX. NGINX offers a suite of technologies to develop and deliver modern applications including NGINX Plus for load balancing, App Protect for security, and NGINX Ingress Controller to get control of Kubernetes.
Learn More
The latest from NGINX
TRENDING STORIES
Oscar Spencer is a principal engineer at F5 NGINX and co-author of Grain, a programming language for WebAssembly. He previously led engineering at Suborbital, a startup building products using WebAssembly as a key technology.
Read more from Oscar Spencer
NGINX sponsored this post.
SHARE THIS STORY
TRENDING STORIES
TNS owner Insight Partners is an investor in: Fermyon.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.