Tutorial: Getting Started with Serverless WebAssembly and Spin
Talkat Open Source Summit Europe 2023 · on Wednesday, 2023-09-20· at 11:25· Room 0E-1 (Floor 0), Abandoibarra Etorb., 4, 48011 Bilbao, Bizkaia, Spain·
summary
Shows how to build, run and deploy a serverless WebAssembly app with Spin and Fermyon tooling, using the CLI sequence spin new, spin build, spin up to create a Rust or TypeScript function that compiles to a ~2.3 MB WASM (AOT can drop to ~300 KB), adds a static front end, a SQLite/key‑value cache and an LLM call via LLM (Llama 2). The Magic Eight Ball app is built, cached, and deployed to Fermyon Cloud in ~21s; GPU inference on A100s hits ~0.5s. Also covers WASI runtimes, runwasi for Kubernetes, and composeable components.
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
25mBuilding Serverless AI Apps with Spin and WebAssembly
01h 59mCreate a First AI Program with TypeScript and Serverless WebAssembly
31mSpin it! Jumpstart your Wasm journey with Fermyon Spin
01h 03mTruly Portable Code: Serverless WebAssembly in a Distributed World
44mA Greener, Cost-Effective Cloud with Serverless WebAssembly
