~/talk

Puma or Falcon What's the Best Choice for Scalability?

Talkat RubyConf India 2024 · 2024-11-29..11-30· [ruby]
links:none on file
slides:none on file

Puma remains the default since Rails 5 and uses pre-fork + threads with a reactor thread that buffers whole request in reactor, accepting a new request only when a worker thread is free; default threads fell from 5 to 3. Falcon is multi‑process and spawns a fiber per request, so it suits >80% I/O workloads (unlimited fibers) but not CPU‑heavy code. Pitchfork adds reforking (e.g. refork after ~1000 requests) to share warmed static memory, offers out‑of‑band GC and lower latency but can break gems like gRPC.

AI-written summary · about

  1. 0:00Introduction and overview
  2. 1:15Why web servers matter
  3. 2:26Pre-forking concept explained
  4. 7:47Falcon architecture and use cases
  5. 10:22Puma threading and reactor queue
  6. 14:21Pitchfork and reforking explained
  7. 20:04Pitchfork advantages over Puma
  8. 24:52Summary and closing
~/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.