~/talk

Look Ma, No Sidekiq: A peek into async future

Talkat RubyConf India 2023 · 2023-08-26..08-27· [ruby-on-rails, nodejs]
links:none on file
slides:none on file

Converts blocking external API calls into concurrent IO so web requests no longer tie up Puma threads: demo load tests show Puma with 1 worker/5 threads suffers long queue latency when one-in-five requests blocks, while switching to Falcon (request-per-fiber) keeps short latency and all requests finish concurrently. Uses the async gem (fiber scheduler) and Turbo Frames to render a skeleton then replace it with fetched data. Works for IO-bound tasks only; CPU-heavy work still needs explicit fiber.yield and DB connection-pool care.

AI-written summary · about

  1. 0:00Introduction and context
  2. 1:04The problem with thread-based I/O
  3. 5:15The async gem explained
  4. 7:31Falcon web server
  5. 9:27Turbo frames and async
  6. 13:29Limitations and deployment
  7. 16:12Q&A session
~/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.