Skip to main content
  • Book
  • © 2022

WebAssembly for Cloud

A Basic Guide for Wasm-Based Cloud Apps

Apress
  • Explains security and sandboxing with Wasm specifically for cloud
  • Covers the use of Rust, Golang, and JavaScript for Wasm in one book
  • Includes easy to understand code examples for web-based application using Wasm

Buy it now

Buying options

eBook USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (8 chapters)

  1. Front Matter

    Pages i-xv
  2. WebAssembly Introduction

    • Shashank Mohan Jain
    Pages 1-11
  3. WebAssembly Text Toolkit and Other Utilities

    • Shashank Mohan Jain
    Pages 33-55
  4. waPC

    • Shashank Mohan Jain
    Pages 87-108
  5. Wasm Web Interface

    • Shashank Mohan Jain
    Pages 109-128
  6. Wasm and Kubernetes

    • Shashank Mohan Jain
    Pages 129-150
  7. Extending Istio with WebAssembly

    • Shashank Mohan Jain
    Pages 151-160
  8. Back Matter

    Pages 161-163

About this book

Journey into the amazing world of WebAssembly (Wasm) and learn about how it can be applied on the cloud. This book is an introduction to Wasm aimed at professionals accustomed to working with cloud-related technologies such as Kubernetes and Istio service mesh.

Author Shashank Jain begins with an introduction to Wasm and its related tooling such as wasm-bindgen and wapc. He then walks you through code examples using Rust, Golang, and JavaScript to demonstrate how they can be compiled to Wasm and consumed from Wasm runtimes deployed standalone, as well as on the cloud. You will see how a wasm module can be run through an http interface, and how Wasm fits into CNCF projects such as Kubernetes and Istio service mesh. After that, you’ll learn how the polyglot nature of WebAssembly can be leveraged through examples written in languages like Rust and consumed via Golang and JavaScript, with a focus on how WebAssembly allows interoperability between them. You’ll gain an understanding of how Wasm-based modules can be deployed inside Linux containers and orchestrated via Kubernetes, and how Wasm can be used within the Istio proxy to apply rules and filters.

After reading this book, you’ll have the knowledge necessary to apply WebAssembly to create multi tenanted workloads which can be polyglot in nature and can be deployed on cloud environments like Kubernetes.

What You Will Learn

  • Understand how Wasm can be used for server-side applications
  • Learn about Wasm memory model and Wasm module layout
  • How communication between host and Wasm module is facilitated
  • The basics of Wasm sandboxing and security
  • The fundamentals of tooling around Wasm, such as WAT and Wasm-pack
  • Create a Wasm module in Rust and consume it from JavaScript, Rust and Golang.
  • Grasp how Kubernetes can be used to orchestrate Wasm-based workloads
  • How Wasm fits into service mesh

Who Is This Book For

Software developers/architects who are looking to hone their skills in virtualization and explore alternatives to Docker and container-based technologies for their workload deployments. Readers should have a basic programming background in languages such as Rust and Golang to get the most out of this book.

Authors and Affiliations

  • Bangalore, India

    Shashank Mohan Jain

About the author

Shashank Mohan Jain has been working in the IT industry for around 20 years mainly in the areas of cloud computing and distributed systems. He has keen interests in virtualization techniques, security, and complex systems. Shashank has 32 software patents (many yet to be published) to his name in the area of cloud computing, IoT, and machine learning. He is a speaker at multiple reputed cloud conferences. Shashank holds Sun, Microsoft, and Linux kernel certifications.

Bibliographic Information

Buy it now

Buying options

eBook USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access