~/talk

JRuby on Rails: From Zero to Scale

Talkat RailsConf 2019 · 2019-05-01..05-03· [ruby, ruby-on-rails]
slides:none on file

JRuby runs Rails on the JVM with no global interpreter lock, JVM tooling and Java libraries for gaps, and migration helpers like JRuby-lint and ActiveRecordJDBC. Benchmarks show real wins: a large site drops from 40 to 10 machines (≈75% cost reduction) while improving throughput, and JRuby uses roughly half the memory versus 20 CRuby workers. Startup/warmup is slower today but improving via OpenJ9, class data sharing and GraalVM AOT experiments.

AI-written summary · about

  1. 0:00JRuby on Rails: From Zero to Scale
  2. 1:55Ruby Implementation First!
  3. 2:22JVM Tools and GC
  4. 3:03Roadmap
  5. 3:22Skip 2.6 Support?
  6. 4:20JRuby Install
  7. 4:57Test it out!
  8. 5:25Why Is This Hard?
  9. 6:32Running in Same JVM
  10. 6:58JRuby Flag: --dev
  11. 7:38OpenJDK Class Data Sharing
  12. 8:53Best Times
  13. 9:09Future: Ahead-of-time Compile
  14. 10:49Getting Help
  15. 11:25Why JRuby on Rails?
  16. 12:30Minimal Config Diffs
  17. 14:33Active RecordJDBC 52.2
  18. 16:32Use-Case: Discourse
  19. 18:45Strategy: Ignore?
  20. 18:57Strategy: Replace with Pure Ruby
  21. 19:11Strategy: FFI - Foreign Function Interface
  22. 19:55Strategy: Script Java Library
  23. 21:04Strategy: Native Java Extension
  24. 21:23Porting oj
  25. 22:09Porting Gems Conclusion
  26. 22:43Running JRuby on Rails
  27. 23:34Scaling Rails
  28. 25:04One User's Story
  29. 26:05Optimizing for Rails
  30. 26:47Baseline Rails App
  31. 28:02Caveats
  32. 33:25Memory Usage
  33. 34:26Scaling Takeaways
  34. 35:48JRuby Futures
  35. 36:39JRuby on Rails Futures
  36. 38:09Help Wanted!
~/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.