~/talk

Asynchronous Rails

Talkat RubyConf AU 2023 · 2023-02-16..02-17· [ruby, nodejs]
slides:none on file

A concrete claim: Ruby’s fiber scheduler lets synchronous Rails apps run request‑per‑fiber and multiplex IO so waiting overlaps instead of blocking. Evidence: async + Falcon server show >10k req/s, a single process streams ~2.4 GB/s, and a migration story cites ~2 billion rows at ~15,000 rows/sec/core (48 cores) as the scaling challenge. Work done: Rack evolves to Rack 3, Rails 7.1 adds per‑fiber isolation, Postgres PG and Trilogy adapters integrate and the approach demonstrably reduces latency and memory use.

AI-written summary · about

  1. 0:00Asynchronous Rails intro
  2. 3:10Sync vs async execution
  3. 7:43Why async matters in Rails
  4. 10:56Reducing wait with fibers
  5. 16:50Ruby fiber scheduler & async gem
  6. 18:13Ruby async app foundation
  7. 18:34Rack 3 streaming
  8. 23:53Testing Rack 3 with Reconform
  9. 24:34Falcon vs Puma servers
  10. 26:43Rails 7.1 Rack 3 support
  11. 30:57Fiber DB adapters
  12. 31:59Using Rack 3 & Rails 7.1
  13. 32:21Summary & async Rails future
~/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.