Tutorial: Getting Started with Serverless WebAssembly and Spin
summary
Hands-on tutorial that uses Fermyon Spin to go from template to running service with spin new / spin build / spin up, building a Rust (or TypeScript) WebAssembly component, adding a static-file component, and deploying to Fermyon Cloud or Kubernetes via runwasi. Demonstrates key-value caching (local SQLite, Redis backend option), OCI packaging, and LLM integration (Llama models) to make a working magic eight ball app; cloud deploys finish in ~21s and LLM inferencing hits ~1s using A100 GPUs. Shows binary sizes (Rust WASM ~2 MB, AOT ~300 KB) and single-instance execution with external persistence.
AI-written summary · about
chapters (12)
- 0:00Serverless WebAssembly intro
- 13:28What is Spin
- 21:56Spin workshop tutorial
- 32:38Setting up the Spin development environment
- 37:33Magic Eight Ball app
- 45:17JSON API with Spin
- 52:09AI for Magic Eight Ball
- 57:30Adding a frontend
- 1:06:26Caching with key-value
- 1:17:56Deploy to Firon Cloud
- 1:26:47Deploy to Kubernetes
- 1:32:29Lottery app & closing
related talks
01h 34mTutorial: Getting Started with Serverless WebAssembly and Spin
59mNext generation microservices and serverless apps with WebAssembly & Spin
19mTaking WebAssembly for a Spin
31mSpin it! Jumpstart your Wasm journey with Fermyon Spin
01h 59mCreate a First AI Program with TypeScript and Serverless WebAssembly
01h 03mTruly Portable Code: Serverless WebAssembly in a Distributed World
25mBuilding Serverless AI Apps with Spin and WebAssembly
30mCloud-Native vNext with WebAssembly and Spin
