Ruby on Rails is a great application framework with a lot of advantages that are well documented elsewhere Occasionally, however, you may find yourself looking for a few tools just outside of the Rails toolbox. In some of those cases, JRuby can provide some additional options without giving up the expressiveness of Ruby or the fast prototyping and sane conventions of Rails.
Reasons to use JRuby
- Real Concurrency
- Java Interoperability
- Large gains in speed (once the JVM has warmed up)
- Excellent tooling around the JVM
These are all great reasons, especially concurrency and gains in speed. With a bit of discipline and a little trail and error, the average Rails developer can realize these benefits without giving up everything the ecosystem affords. Real threads used with application servers like Puma can allow more simultaneous connections to a single server instance, which can save money and resources over time. For the purposes of this multi-part tutorial w