logo

Tutorial: Hands on with WebAssembly Microservices and Kubernetes

2023-04-19

Authors:   David Justice, Kate Goldenring, Radu Matei, Jiaxiao Zhou


Summary

Spin is a framework for building webassembly microservices and web applications that provides a nice developer and operations experience.
  • Spin is an open source project that was bootstrapped at Vermium and recently released version 1.1
  • Spin provides benefits such as affordability, speed, size, and security
  • Spin contains a runtime with an application model that has a triggering model for responding to events
  • Spin allows for independent webassembly binaries to handle different paths in the URL structure of an application
N/A

Abstract

This tutorial talk is meant to help you get started with WebAssembly (Wasm) on Kubernetes - a booming technology in the container world that promises delivery regardless of the platform, has an incredibly low memory footprint, and quick start times. We will start off the tutorial by introducing you to Wasm and its system interface (i.e., WASI), and how they work together with the underlying operating system. Then, we will move to demos and hands-on exercises to help you write your very first Wasm service that can, for example, serve HTTP/gRPC requests, persist data to key-value/blob stores, or react to event streams using pub/sub. What's more, these Wasm applications can be authored in multiple programming languages and frameworks, so its content and business logic can be extended to whatever you are most comfortable writing in. All in all, after building applications to Wasm, we will show how to package Wasm components to containers, and, lastly, we will deploy our work to environments like on-prem, cloud, and hybrid cloud using Kubernetes. Overall, you will leave the room having learned the pros and cons of using Wasm and how to build production-ready Wasm applications.

Materials: