~/talk

Thread-Coordinated Ractors: The Pattern That Delivers

Talkat RubyKaigi 2026 · 2026-04-22..04-24· [ruby, concurrency]
links:none on file
slides:none on file

Shows that replacing thread-heavy JSON and CPU work with a persistent ractor pool inside Karafka delivers real wins: frozen deserialization and offloading parsing/validation yields up to 5.7x throughput on production payloads and typical results around 2x–3.5x speedup. Implementation uses an intermediate coordinating thread, nonblocking zero copy handoff, and fallback to main thread on parse errors. It ships as an opt-in Karafka feature for Ruby 4, works in production for several orgs, and fails for IO‑heavy or mutating libraries.

AI-written summary · about

  1. 0:00Introduction to Ractors
  2. 4:49Why Ractors over other options
  3. 10:58Ractors performance breakthrough
  4. 14:10Ractor worker design
  5. 17:52Real-world data results
  6. 19:40Production performance gains
  7. 21:27Library compatibility issues
  8. 23:34ERB rendering with Ractors
  9. 25:20When not to use Ractors
  10. 26:25Key takeaways and 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.