WebAssembly for Cloud: A Basic Guide for Wasm-Based Cloud Apps
暫譯: 雲端的 WebAssembly:Wasm 基礎雲端應用指南
Jain, Shashank Mohan
- 出版商: Apress
- 出版日期: 2021-11-14
- 售價: $2,080
- 貴賓價: 9.5 折 $1,976
- 語言: 英文
- 頁數: 180
- 裝訂: Quality Paper - also called trade paper
- ISBN: 1484274954
- ISBN-13: 9781484274958
-
相關分類:
WebAssembly
海外代購書籍(需單獨結帳)
相關主題
商品描述
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.
商品描述(中文翻譯)
探索 WebAssembly (Wasm) 的奇妙世界,了解它如何應用於雲端。本書是針對習慣於使用 Kubernetes 和 Istio 服務網格等雲端相關技術的專業人士所編寫的 Wasm 入門書籍。作者 **Shashank Jain** 首先介紹了 Wasm 及其相關工具,如 wasm-bindgen 和 wapc。接著,他將帶領您通過使用 Rust、Golang 和 JavaScript 的程式碼範例,展示如何將這些程式碼編譯為 Wasm,並從獨立部署的 Wasm 執行環境以及雲端中使用它們。您將看到如何通過 HTTP 介面運行 wasm 模組,以及 Wasm 如何融入 CNCF 項目,如 Kubernetes 和 Istio 服務網格。之後,您將學習如何利用 WebAssembly 的多語言特性,通過用 Rust 編寫的範例並通過 Golang 和 JavaScript 使用,重點在於 WebAssembly 如何實現它們之間的互操作性。您將了解如何在 Linux 容器內部部署基於 Wasm 的模組,並通過 Kubernetes 進行編排,以及如何在 Istio 代理中使用 Wasm 來應用規則和過濾器。
閱讀完本書後,您將具備將 WebAssembly 應用於創建多租戶工作負載的知識,這些工作負載可以是多語言的,並且可以部署在像 Kubernetes 這樣的雲端環境中。
**您將學到什麼**
- 了解如何將 Wasm 用於伺服器端應用程式
- 學習 Wasm 記憶體模型和 Wasm 模組佈局
- 主機與 Wasm 模組之間的通信是如何促進的
- Wasm 沙盒和安全性的基本概念
- 有關 Wasm 的工具基礎知識,如 WAT 和 Wasm-pack
- 在 Rust 中創建 Wasm 模組並從 JavaScript、Rust 和 Golang 中使用它
- 理解如何使用 Kubernetes 來編排基於 Wasm 的工作負載
- Wasm 如何融入服務網格
**本書適合誰**
本書適合希望提升虛擬化技能並探索 Docker 和基於容器技術的工作負載部署替代方案的軟體開發人員/架構師。讀者應具備 Rust 和 Golang 等語言的基本程式設計背景,以便充分利用本書的內容。