Build a Serverless WebAssembly App in Python using Spin
summary
Claims that WebAssembly will power the next wave of cloud compute, then shows concrete steps: create a serverless Python app with the Spin CLI in three commands and deploy with a fourth, build emits an app.wasm 2.5 MB file, Python runs because CPython is compiled to WASM via WASI, and a second demo calls Llama 2 for jokes. Benchmarks note cold start ~2 ms, discusses the component model and componentize-py for composing Rust/Python modules.
AI-written summary · about
chapters (25)
- 0:00intro
- 0:20preamble
- 0:50the next wave of cloud compute will be powered by webassembly
- 1:37what is webassembly?
- 2:07a few things to know about webassembly
- 2:32wasm is another bytecode format
- 3:49a few things to know about webassembly
- 5:55compile and run
- 6:43wasi: a new kind of system interface
- 7:46compilation and language support
- 8:27rust has a great wasm support
- 8:52interpreted languages are a little more tricky
- 9:11you need to compile the interpreter to wasm
- 10:24getting started with wasm
- 11:51demo 1
- 17:154 things making webassembly great
- 19:19how this will change cloud computing
- 20:46no more clunky containers
- 22:30fix serverless
- 24:32demo 2
- 27:43component model
- 28:33wasm module
- 29:06composing applications
- 29:35componentize-py
- 30:27thank you!
related talks
31m"Serverless AI Inferencing Using Python and WebAssembly"
24mA Greener, Cost Effective Cloud with Serverless WebAssembly
01h 34mTutorial: Getting Started with Serverless WebAssembly and Spin
25mBuilding Serverless AI Apps with Spin and WebAssembly
59mNext generation microservices and serverless apps with WebAssembly & Spin
44mA Greener, Cost-Effective Cloud with Serverless WebAssembly
01h 59mCreate a First AI Program with TypeScript and Serverless WebAssembly
19mTaking WebAssembly for a Spin
