Scaling Rails with JRuby in 2022
summary
JRuby 9.4 brings Ruby 3.1 compatibility and shows concrete wins: Rails 7 apps on Puma run a local scaffolded benchmark at about 2,500 → 3,500 req/s using 20 threads vs 10 workers, ActiveRecord via the JDBC adapter often runs 2x–2.5x faster, and a production migration shrinks 40 xlarge EC2s to 10 while sustaining ~150k requests per minute with lower median latency. Downsides are JVM 2–3 minute warm‑up and higher untuned memory (2.2 GB, reducible to ~700–800 MB when capped).
AI-written summary · about
chapters (10)
- 0:00Introduction
- 1:43What is JRuby
- 6:17Installing JRuby
- 9:23Rails on JRuby setup
- 11:31Migrating to JRuby
- 14:19Deploying JRuby apps
- 16:05Scaling Rails performance
- 22:08JRuby startup issues
- 24:53JRuby future features
- 25:56Q&A








