~/talk

Spinning Multiple Plates: Concurrency in Rails

Talkat Brighton Ruby 2025 · on Thursday, 2025-06-19· [ruby-on-rails, concurrency]
links:none on file
slides:none on file

Live demonstration uses four volunteers racing over a shared pile of G Play bricks to illustrate race conditions and resource contention; the slow-vs-fast request demo inserts a 3s sleep and shows distinct thread IDs and overlapping timestamps. Rails is thread-safe since 2.2 (2008), Puma serves requests on threads, and features like Active Job, Action Cable, asynchronous ActiveRecord (load_async), the load interlock and permit_concurrent_loads plus the executor/reloader and current attributes handle setup, cleanup and thread-local state.

AI-written summary · about

  1. 0:00Introduction and welcome
  2. 1:24G Play bricks demo setup
  3. 6:48About the speaker and topic
  4. 8:53Concurrency vs parallelism
  5. 10:39Race conditions and resource contention
  6. 12:26Why concurrency matters
  7. 13:08Threads and memory sharing
  8. 14:54Fibers vs threads
  9. 15:59Concurrency in Rails
  10. 17:23Puma threaded server demo
  11. 19:50Action Cable and async queries
  12. 21:37Rails source code deep dive
  13. 24:22Current attributes explained
  14. 26:27Key takeaways and closing
~/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.