~/talk

Multiprocessing is the most efficient way to serve Rails apps

Talkat Balkan Ruby 2026 · 2026-05-15..05-16· [ruby-on-rails, ruby]
links:none on file
slides:none on file

Claim: multiprocessing (Unicorn/Pitchfork/Passenger single-threaded processes) gives more predictable latency, easier memory-leak handling and safer timeouts than thread- or fiber-first servers (Puma/Falcon). Evidence: large shops (Shopify, GitHub, Zendesk, Intercom) run process models; Datadog profiling shows only 16% of apps spend <40% CPU per request and 3% <20%; Ruby 3.2 adds a GVL contention API and Rails-scale use of OBGC controlled major GCs cuts P99 GC pauses from seconds to milliseconds, making process isolation practical and operable.

AI-written summary · about

  1. 0:00Introduction and hot take
  2. 4:49Ruby server trends and assumptions
  3. 13:32Operability in web services
  4. 14:49Rails apps are not purely I/O bound
  5. 15:32Global VM Lock and contention
  6. 21:29Ruby garbage collector impact
  7. 26:56Handling stuck requests
  8. 29:29Memory limits and leaks
  9. 31:00Memory usage in multiprocessing
  10. 34:01When to use threads or fibers
  11. 35:11Conclusion and final thoughts
~/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.