~/talk

From Request To Response And Everything In Between

Talkat RailsConf 2024 · 2024-05-07..05-09· [ruby-on-rails, devops-and-delivery]
slides:none on file

Follow a single HTTP request through Puma to a Rails process, see threads vs processes, and measure where latency accumulates — queue time, service time, database waits. The concrete claim is a sizing formula: request arrival rate × average total response time × 4 gives processes needed; examples show five requests/sec with 225ms average → five processes. Coverage includes GVL, thread contention, ActiveRecord connection pool sizing and the practical DB connection ceiling and tradeoffs between more threads or more servers.

AI-written summary · about

  1. 0:00Introduction
  2. 3:06Request flow in Rails
  3. 8:43Scaling with processes
  4. 11:51Optimal process count
  5. 21:25Multi-threaded processes and GVL
  6. 29:10Database connection pooling
  7. 33:22Request to response
  8. 35:50Closing remarks
~/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.