Ruby + Elixir: Polyglotting FTW!
summary
Elixir claims lightweight, isolated processes on the BEAM with 13 million processes per VM, uses asynchronous message passing and supervisors for “let it crash” fault tolerance, and demonstrates real distribution: a five-node cluster (plus a Raspberry Pi) runs a prime‑finding demo successfully. A demo spawns 50 processors then shows supervisors restarting workers to ~200, and a working Sidekiq integration pushes jobs into a separate Redis queue where Elixir workers compute results, rewrite the job payload and requeue it for Rails to consume.
AI-written summary · about
chapters (10)
- 0:00Start
- 4:53Ackermann Function ...
- 5:43Spawn a Process
- 6:11Sending a Message
- 18:42A job is created and goes into the Redis queue
- 18:58Job gets popped by the Poller
- 19:11Thread created to run Worker
- 19:29Define the Worker
- 20:07Invoke the Worker
- 20:40Job handled by Elixir Worker
related talks
34mRubyists, have a sip of Elixir!
42mIntroduction to Elixir for Rubyists
23mElixir: Happy Developers and Scaleable Backends
39mElixir: Power of Erlang, Joy of Ruby
32mElixir for the rubyist
53mBuilding Performant Backends with Elixir
39m"Elixir-based Ruby Web Server"
43mRuby, Clojure, Elixir comparative study
