Scaling Ruby with Actors, or How I Learned to Stop Worrying and Love Threads
summary
Argues that Ruby can scale with threads by using actor libraries and lock-free primitives rather than raw mutexes, demonstrates APIs: Celluloid (object‑oriented actors, one real thread per actor today), actor_rb (older, procedural) and Girl Friday (queue + worker pool for background jobs), cites 10 million counter benchmark: MRI 1.9 shows no thread speedup (4s single and five threads), JRuby shows 2s single vs 1s with five threads (2x on two cores), recommends STM and compare‑and‑swap atomics.
AI-written summary · about
chapters (6)
- 0:00Concurrency challenges
- 7:01Ruby actor implementations
- 22:14Low-level primitives
- 22:43Future directions
- 28:14Q&A and closing thoughts
- 37:13Final remarks
related talks
23mParallel Processing With Ruby
28mConcurrency for Rubyists
36mModern Concurrency Practices in Ruby
34mActors in Ruby! Why let Elixir have all the fun?
39mConcurrent Systems in Ruby
33mConcurrency for !Dummies (Who Don't Get It (...Yet))
47mWhat All Rubyists Should Know About Threads
42mLook out! Gotchas of Using Threads in Ruby
