• Complain

Shashank Mohan Jain - WebAssembly for Cloud: A Basic Guide for Wasm-Based Cloud Apps

Here you can read online Shashank Mohan Jain - WebAssembly for Cloud: A Basic Guide for Wasm-Based Cloud Apps full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2021, publisher: Apress, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Shashank Mohan Jain WebAssembly for Cloud: A Basic Guide for Wasm-Based Cloud Apps
  • Book:
    WebAssembly for Cloud: A Basic Guide for Wasm-Based Cloud Apps
  • Author:
  • Publisher:
    Apress
  • Genre:
  • Year:
    2021
  • Rating:
    3 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 60
    • 1
    • 2
    • 3
    • 4
    • 5

WebAssembly for Cloud: A Basic Guide for Wasm-Based Cloud Apps: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "WebAssembly for Cloud: A Basic Guide for Wasm-Based Cloud Apps" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

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, youll 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. Youll 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, youll 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.

Shashank Mohan Jain: author's other books


Who wrote WebAssembly for Cloud: A Basic Guide for Wasm-Based Cloud Apps? Find out the surname, the name of the author of the book and a list of all author's works by series.

WebAssembly for Cloud: A Basic Guide for Wasm-Based Cloud Apps — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "WebAssembly for Cloud: A Basic Guide for Wasm-Based Cloud Apps" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Contents
Landmarks
Book cover of WebAssembly for Cloud Shashank Mohan Jain WebAssembly for - photo 1
Book cover of WebAssembly for Cloud
Shashank Mohan Jain
WebAssembly for Cloud
A Basic Guide for Wasm-Based Cloud Apps
1st ed.
Logo of the publisher Shashank Mohan Jain Bangalore India ISBN - photo 2
Logo of the publisher
Shashank Mohan Jain
Bangalore, India
ISBN 978-1-4842-7495-8 e-ISBN 978-1-4842-7496-5
https://doi.org/10.1007/978-1-4842-7496-5
Shashank Mohan Jain 2022
Standard Apress
Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark. The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to proprietary rights.
The publisher, the authors and the editors are safe to assume that the advice and information in this book are believed to be true and accurate at the date of publication. Neither the publisher nor the authors or the editors give a warranty, express or implied, with respect to the material contained herein or for any errors or omissions that may have been made. The publisher remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

This Apress imprint is published by the registered company APress Media, LLC part of Springer Nature.

The registered company address is: 1 New York Plaza, New York, NY 10004, U.S.A.

I dedicate this book to my parents and their blessings, without which this book was not at all possible.

I also dedicate this book to my dear wife. I would not have been able to write it without her constant pushing and support.

I appreciate my angel of a daughter for allowing me the time to write this book.

Finally, I thank a dear friend who constantly pushed me into writing this.

Introduction

Somewhere, something incredible is waiting to be known.

Carl Sagan

I start this journey with a quote from the eminent scientist and science communicator Carl Sagan. This short book introduces the amazing world of WebAssembly. The books main theme is to create a simple WebAssembly program from scratch and take it to the cloud. In doing this, youll gain a solid introduction to the valuable features offered by WebAssembly. Consider this book an introduction to WebAssembly and how it is powering browser-based applications and cloud applications. To get the most out of this book, you should have a bit of understanding of cloud fundamentals and basic knowledge of programming languages like Rust, golang and javascript.

Any source code or other supplementary material referenced by the author in this book is available to readers on GitHub via the books product page, located at www.apress.com/9781484274958. For more detailed information, please visit http://www.apress.com/source-code.

Acknowledgments

I would like to acknowledge Kevin Hoffman, whose work in WebAssembly is an inspiration. Kevin is the creator of the waPC library, which is used in a chapter in the book.

Table of Contents
About the Author
Shashank Mohan Jain
has worked in the IT industry for 20 years mainly in cloud computing and - photo 3
has worked in the IT industry for 20 years, mainly in cloud computing and distributed systems. He has a keen interest in virtualization techniques, security, and complex systems.

Shashank has more then 30 software patents in cloud computing, IoT, and machine learning. He has been a speaker at many cloud conferences. In addition, he holds Sun, Microsoft, and Linux kernel certifications.

About the Technical Reviewer
Srinivasa Reddy Challa

is an expert developer at SAP. He has experience developing applications in various programming languages, including Java, Kotlin, Node.js, Rust, Golang, and Python, and frameworks like Spring, Django, and Express. Srinivasa also has extensive experience working with cloud providers like AWS, Azure, and AliCloud and has cloud certification in AWS. He has a bachelors degree in computer science engineering.

The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
S. M. Jain WebAssembly for Cloud https://doi.org/10.1007/978-1-4842-7496-5_1
1. WebAssembly Introduction
Shashank Mohan Jain
(1)
Bangalore, India

Before introducing WebAssembly, its important to get a brief history of virtualization to better understand the context of WebAssembly.

When VMware started the virtualization revolution, virtual machines were positioned as the unit of computation. This meant that you could create and deploy software compatible with a virtual machine (VM) . The VM-based approach provided great isolation because it introduced a kernel boundary between software and the host on which the workload ran (called a hypervisor ). Although they were secure, VMs were heavy in nature and took time to spin up.

As cloud technology progressed, we saw the advent of container-based virtualization , which was mainly facilitated by structures within the Linux kernel. Containers on the same host shared the Linux kernel but have adequate mechanisms for security, like namespaces, seccomp profiles, and SELinux, which offered multilayered security for containers. In 2018, a new technology called WebAssembly has emerged. It was created by Mozilla and started as a browser-based technology. Since then, developers have employed it on the cloud and server-side apps. WebAssembly allows an extra level of virtualization by running the Wasm computation within a Linux process.

Things began with virtual machines (which are complete operating systems) and then moved to Linux containers (Linux processes protected and isolated by the Linux kernel). Now there is WebAssembly, a computation unit within the Linux process. The goal is to provide a computation unit that can quickly spin up and be suitable for serverless workloads.

WebAssembly (also known as Wasm ) is the new universal bytecode for interoperable compute units. Interoperable means that the compute unit should be able to run on any compatible Wasm runtime. A compute unit is a Wasm module. The basic idea is to have a bytecode format that is universal and standard.

Languages like JavaScript, Rust, Golang, and Java can be compiled to a Wasm-based bytecode. Once this bytecode is generated, it can be executed on any Wasm runtime.

Wasm is a small and efficient stack-based virtual machine that abstracts the target architecture by compiling the code to a universal bytecode representation. Wasm is based on an industry-wide collaborative effort to get a performant and secure close to assembly language. The Bytecode Alliance, set up to create shared implementations of WebAssembly standards, includes major players like Arm , Intel , Google , Microsoft , Mozilla , and Fastly .

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «WebAssembly for Cloud: A Basic Guide for Wasm-Based Cloud Apps»

Look at similar books to WebAssembly for Cloud: A Basic Guide for Wasm-Based Cloud Apps. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «WebAssembly for Cloud: A Basic Guide for Wasm-Based Cloud Apps»

Discussion, reviews of the book WebAssembly for Cloud: A Basic Guide for Wasm-Based Cloud Apps and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.