~/talk

Turning CDN edge into a Rack web server with ruby.wasm

Talkat RubyKaigi 2024 · 2024-05-15..05-17· [ruby, webassembly, pwa]
links:none on file
slides:none on file

A Rack adapter runs on CDN edge by compiling Ruby to ruby.wasm and adding Fastly hostcalls implemented as a small C extension to expose headers, body and status, letting Lobster and some Sinatra apps boot with minor Gemfile and path tweaks. Static assets hit the 100+ MB upload limit and WASI is read‑only so file writes fail; Rails and C‑extension gems often break. Performance varies widely — ~1s vs 58ms in a Go edge runtime — so it works but with size, compatibility and latency caveats.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 3:59WebAssembly and WASI overview
  3. 7:58CDN edge computing basics
  4. 9:28Project motivation and goals
  5. 13:13Architecture and implementation
  6. 16:29Migrating Ruby apps to edge
  7. 19:46Challenges and limitations
  8. 21:52Performance comparison demo
  9. 23:39Conclusion and future opportunities
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.