Python in Cloudflare Workers – Running Pyodide on the Edge
summary
Deploys Pyodide in Cloudflare Python Workers Beta to run Python serverless at the edge, using Cloudflare D1 database, object storage and Workers AI (Llama 3) for a pet‑voting demo that works live. Cold starts drop via memory snapshots, package installs go from ~30s to under 1s by serving preprocessed wheels, and async sync gaps close with stack switching and improved FFI; bundles constrained to ~1MB free and 10MB paid.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 3:04What is Cloudflare
- 7:47Demo app with DB and AI
- 13:20How Workers work
- 15:44Pyodide and WebAssembly
- 24:52FFI challenges in Workers
- 25:18Optimizing cold starts
- 30:35Package handling in Workers
- 31:46Memory snapshots for Python
- 37:08Future Python features
- 46:42Acknowledgements
- 48:49Q&A
related talks
42mThe Edge at your fingertips, literally!
29mHow to port a Python kernel to Pyodide for a blazingly fast in-browser coding...
01h 02mUsing Python to Power Serverless Applications
22mAirflow Beyond the Cloud: Python Workflows at the Edge
30mLessons from building serverless services in bleeding edge python
45mHow to run Python in the browser
31mIodide and Pyodide: Bringing Data Science...
28mBoosting Python Web Apps performance with Celery and Concurrency
