Everything a Microservice: The Worst Possible Intro to dRuby
summary
Claims a system where every Ruby object becomes a networked microservice using dRuby, but shows the gritty specifics: override Object.new to return dRuby proxies, preprocess literals via __END__ + regexp to force .new calls, and serialize procs via method_source + syntax_tree so Marshal can send blocks. Each object runs on its own host even as an AWS Lambda per-object (with a necessary three‑second sleep). The demo works but adds hundreds of milliseconds, a 10s example run, and a surprisingly large monthly Lambda bill.
AI-written summary · about
chapters (10)
- 0:00Microservices and dRuby intro
- 2:09Setting up dRuby
- 5:21Remote instances with dRuby
- 8:48Overriding object creation
- 12:20Blocks and serialization
- 19:01Ruby literals to remote calls
- 21:47Distributing objects
- 22:50dRuby in AWS Lambda
- 24:59Final microservice demo
- 26:47Q&A








