~/talk

Python in Cloudflare Workers – Running Pyodide on the Edge

Talkat PyCon US 2024 · 2024-05-15..05-23· [serverless, python]
links:none on file
links:none on file
slides:none on file

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

  1. 0:00Introduction
  2. 3:04What is Cloudflare
  3. 7:47Demo app with DB and AI
  4. 13:20How Workers work
  5. 15:44Pyodide and WebAssembly
  6. 24:52FFI challenges in Workers
  7. 25:18Optimizing cold starts
  8. 30:35Package handling in Workers
  9. 31:46Memory snapshots for Python
  10. 37:08Future Python features
  11. 46:42Acknowledgements
  12. 48:49Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.