~/talk

Keynote: A Beginner's Guide to Puma Internals

Talkat RubyConf TH 2022 · 2022-12-09..12-10· [ruby, serverless]
slides:none on file

Puma is a Rack web server that combines pre-forking + thread-pool model with an in-process reactor buffers incomplete requests to avoid blocking threads on slow clients. Codebase is roughly ~5k Ruby + ~4k native C/Java lines, uses Regal for parsing and a custom SSL extension, and requires bundle ext compilation to build locally. Design goal keeps per-request overhead under a millisecond; in MRI a single Puma worker with four threads often equals the throughput of two Unicorn workers while using less memory.

AI-written summary · about

  1. 0:00Puma introduction
  2. 3:53Maintainer philosophy
  3. 6:22Design goals of Puma
  4. 7:50Web servers and sockets
  5. 9:37Rack applications
  6. 12:53Puma pre-forking architecture
  7. 15:21Thread pools and GIL
  8. 19:58Reactor and buffering
  9. 21:24Key classes and extensions
  10. 24:16Runner and thread pool classes
  11. 28:34Configuring Puma
  12. 30:40Request handling
  13. 33:30Contributing to Puma
  14. 39:30Resources 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.