Advanced Multithreading in Ruby
summary
Shows concrete concurrency primitives and working code: futures, promises, agents that queue updates, timers, actor pools and a Ruby implementation of an Erlang-style supervisor that restarts workers. Uses the concurrent-ruby gem, demonstrates immutability with hamster and contrasts thread safe collections, swaps blocking RestClient for em-http-request to avoid blocking the reactor, and wires AMQP/RabbitMQ timers to a five-worker pool so the examples actually run and recover.
AI-written summary · about
chapters (15)
- 0:00Introduction
- 3:29Crashtestdummy
- 5:24Future
- 9:45Agent
- 12:34Mutation
- 13:35Ideal Hash Trees
- 16:13Promises
- 16:51TimerTask
- 17:19Actor
- 17:50Supervisor
- 21:36Event Machine
- 25:03Do not block the reactor
- 26:04Actors
- 27:06Celluloid
- 28:45Challenge








