JRuby is a JVM implementation of Ruby, and therefore offers various performance and scalability benefits against MRI based Ruby applications.
Using JRuby you can access any Java library meaning that you can benefit from a very mature and vast Java ecosystem – many immature Ruby libraries already have well established Java equivalents which can offer you more performance, stability, features, or just an alternative option.
One of the main benefits often stated in favour of JRuby is performance, since running on the JVM means you get multi-threaded concurrency. This is a double-edged-sword however since it also exposes more potential problems: if your locking is incorrect, your code is likely to break.
First install the JVM and JRuby locally on your own computer.
When you’re ready to deploy, install the warbler gem and use it to build a WAR file from your project. It’s a simple as this:
-bash-4.1$ warble war
This process should work for any Rails, Merb, or Rack-based application. Please refer to the Warbler docs for more details.
Once you have your WAR file, it can be deployed to any Java application server on Enscale by upload to the deployment manager in the dashboard.