~/talk

In-Depth Ruby Concurrency: Navigating the Ruby concurrency landscape

Talkat RubyConf 2024 · 2024-11-13..11-15· [ruby]
slides:none on file

Concrete rules and results: use preload + re-fork (Pitchfork) to share memory—Shopify sees ~30% memory reduction and 9% latency drop; match process count to CPU cores and run 1.25–2x for concurrency. Use threads for IO-heavy jobs (Sidekiq: ~5–10 threads for typical 25–50% IO), fibers with the Async/FiberScheduler for deterministic, high‑concurrency IO (Falcon); use Ractors experimentally for true parallelism where libraries allow (Mooro shows the pattern). Apply Amdahl’s law to size threads/fibers.

AI-written summary · about

  1. 0:00Ruby concurrency intro
  2. 1:27Ruby processes for parallelism
  3. 3:54Processes vs concurrency
  4. 5:17Optimizing process count
  5. 6:19Memory overhead of processes
  6. 7:43Pitchfork server technique
  7. 9:09Ruby threads and GIL
  8. 11:58Ruby threads use cases
  9. 13:00Thread allocation with Amdahl’s Law
  10. 14:47Ruby reactors and event loops
  11. 16:33Puma server benefits
  12. 16:56Ruby fibers scheduling
  13. 18:00Fiber scheduler and async gem
  14. 20:30Fibers vs threads comparison
  15. 21:53Ruby reactors for tasks
  16. 22:55Morrow server actors
  17. 23:38Ruby concurrency key takeaways
  18. 25:47Future Ruby concurrency
~/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.