~/talk

Scaling Ruby with JRuby

Talkat RubyConf TH 2022 · 2022-12-09..12-10· [ruby, java]
slides:none on file

JRuby 9.4 runs Ruby 3.1 on the JVM (Java 17) and gives real native parallel threads so a single JRuby process uses many cores with Puma and MySQL rather than dozens of CRuby workers. Benchmarks show JRuby reaching peak after ~6 iterations of 2000 requests, delivering roughly 2x throughput over CRuby on a full Rails stack, with memory tuned to ~900MB–1GB versus CRuby’s ~1.5GB with 16 workers. One migration cuts 40 extra‑large instances to 10, a 75% cost reduction. JRuby 9.4 Java 17

AI-written summary · about

  1. 0:00Introduction
  2. 2:06What is JRuby
  3. 3:52Ruby 9.4 compatibility
  4. 4:56Run Ruby on JVM
  5. 8:50JRuby and Rails scaling
  6. 12:25Performance and benchmarking
  7. 17:00Memory and warm-up
  8. 21:12Rails scaling benchmarks
  9. 25:10Cost savings with JRuby
  10. 26:33JRuby future features
  11. 28:02Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.