Building Serverless Applications With WebAssembly & Spin

Building Serverless Applications With WebAssembly & Spin

Thorsten Hans
This is a sample of the book's content.Buy on Leanpub

Table of Contents

About the Author›

  • About the Author
    • Acknowledgments
  • Foreword
    • Foreword by Radu Matei
    • Foreword by Matt Butcher
  • Introduction
    • Who This Book Is For
    • Who This Book Is Not For
    • What We Will Build
    • How to Read This Book
    • AI Disclosure, Production Notes, and Version History

The Foundation›

  • The Evolution of Serverless & WebAssembly
    • Where Containers and Traditional FaaS Fall Short
    • What Modern Serverless Demands
    • WebAssembly Is the Foundation
    • Why Spin?
    • Why Rust?
    • Languages Beyond Rust
  • What Is Spin?
    • The History of Spin
    • Spin 4 and the Modern Component Stack
    • Spin and the Capability-Based Sandbox
    • Spin and WebAssembly Components
    • Spin’s Trigger-Executor Pattern
    • Spin SDKs: Developer Ergonomics and Velocity

Setup & Spin Idioms›

  • Quickstart: Your First Spin Application
    • Setting Up Your Development Machine
    • Scaffolding Spin Applications
    • The Spin Workflow: Code, Build, Run
  • Spin Application Idioms
    • The Spin Application Manifest
    • Configuration with Spin Variables
    • Using Environment Variables
    • Spin Trigger Types
    • The Spin Key-Value Store

Task-Engine: The End-to-End Application›

  • Building the Task-Engine
    • Scaffolding Multi-Component Applications
    • Task-Engine Architecture
    • Implementing the task-api Component
    • Building and Serving the Frontend
    • Integrating External APIs: Adding Notifications
    • Component Composition: The classifier
    • Implementing the Background Worker
  • Operational Excellence
    • Structured Logging
    • Continuous Integration with GitHub Actions
    • Unit Testing Business Logic
    • Integration Testing Spin Apps

Going Live›

  • Securing and Hardening Your Application
    • Hardening Spin Manifests
    • Hardening Application Code
    • Signing and Verifying Spin Applications with cosign
    • Software Bill of Materials (SBOM)
  • To the Global Edge with Akamai Functions
    • What Is Akamai Functions?
    • Constraints: The HTTP-Only Nature of the Edge
    • Task-Engine Deployment to Akamai Functions
    • Data at the Edge: State in Distributed Environments
    • Scheduling the Background Worker
    • Continuous Deployment with GitHub Actions
  • Running WebAssembly on Kubernetes with SpinKube
    • The SpinKube Architecture
    • Cluster Setup and SpinKube Installation
    • Installing Application Dependencies
    • The SpinApp and SpinAppExecutor CRDs
    • Deploying the Task-Engine SpinApp
    • Scheduling the Background Worker
    • Continuous Deployment with GitHub Actions

Make Spin Your Own›

  • Extending Spin
    • Authoring and Distributing Custom Spin Templates
    • Authoring Functional Spin Plugins
    • Authoring Custom Trigger Plugins
  • Contributing Upstream
    • Contributing Beyond Runtime Code
    • Navigating the Spin Ecosystem
    • Connecting on CNCF Slack
    • Participating in Community Meetings
    • Making Your First Contribution

Real-World Spin Apps›

  • Practical Architectural Patterns
    • Pre-Initialization with Wizer
    • Sandboxed Agent Tools with MCP
    • LLM-Powered Chatbots
    • Dynamic Image Processing at the Edge
    • Anti-Scraping Through Edge HTML Rewriting
    • Edge API Aggregation and Fan-Out

Wrapping Up›

  • Bringing It All Together
Building Serverless Applications With WebAssembly & Spin/Real-World Spin Apps

Real-World Spin Apps

https://leanpub.com/building-serverless-apps-with-wasm-and-spin

Previous

Contributing Upstream

Up next

Practical Architectural Patterns

In this part

  • Practical Architectural Patterns
  • Pre-Initialization with Wizer
  • Sandboxed Agent Tools with MCP
  • LLM-Powered Chatbots
  • Dynamic Image Processing at the Edge
  • Anti-Scraping Through Edge HTML Rewriting
  • Edge API Aggregation and Fan-Out