~/talk

Async Ruby

Talkat RubyConf 2021 · 2021-11-08..11-10· [ruby]
slides:none on file

Async Ruby claims real concurrency for blocking IO by running tasks run concurrently inside an async block, using an event reactor backed by nio4r + libuv, fibers and Ruby 3 fiber scheduler. Examples show uri.open http, httparty, Redis, SSH, SQL queries and system commands all completing in parallel, with 600 concurrent operations in ~2.5s and single‑digit‑million task limits reported. ActiveRecord is not yet supported; production use and a 3x cost reduction case are cited.

AI-written summary · about

  1. 0:00Start
  2. 1:04About
  3. 1:58Async programming?
  4. 3:45Why make programs async?
  5. 4:17Ruby is synchronous
  6. 4:38Threads
  7. 5:19Thread problems
  8. 7:23Async Ruby
  9. 17:44How does it work?
  10. 18:01How does it work: event reactor
  11. 19:17How does it work: fibers
  12. 20:13How does it work: fiber scheduler
  13. 22:58Conclusion
~/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.