small medium large xlarge

Deploying with JRuby: Deliver Scalable Web Apps using the JVM

July 11, 2012

Standard Ruby/Rails deployment can entail many moving parts, including parts that might be unfamiliar to non-Ruby folks. But now you can deploy your Ruby and Rails apps in a standard, professional and scalable JVM environment with JRuby—and no Java or XML is required.

For example, watch this video at on using Torquebox for high-availability deployment on the JVM.

In other news, Apple has announced iOS 6. We’re going to work on the beta of iOS SDK Development so it’s up-to-date with these latest changes. Unfortunately we’ll have to wait until Apple makes iOS 6 available to the public to make those changes available to you, but in the meantime we’re releasing an update to the book that fixes all the outstanding errata. When iOS 6 is released, you’ll automatically get all of the updates to this book, and you’ll be right on the cutting edge of iOS development.

Deploying with JRuby

JRuby deployments have fewer moving parts and consume less memory than traditional Ruby deployments, but to deploy your apps on the JVM, you need to learn some new approaches. This book introduces you to three JRuby deployment strategies that will give you the performance and scalability you need while letting you use the language you love.

You’ll start by porting an existing application to JRuby, preparing the app to take advantage of the JVM platform. Then you’ll use Vagrant and Puppet to build a virtual production environment so you have a stable, reproducible place to explore JRuby deployment.

With your environment in place, you’ll experiment with simple JRuby deployment with Warbler as you package your Ruby web application into a single file you can deploy to a Java application server. Next you’ll set up the lightweight Trinidad web server to create a more flexible, modular deployment that fits more complex situations but still feels friendly and familiar to Ruby developers. You’ll switch to powering your app with TorqueBox, an all-in-one JRuby environment that includes built-in support for messaging, scheduling, and daemons—perfect for handling the “big jobs.” Then, you’ll set up a continuous integration environment with Jenkins so you can deploy like the pros.

Deploying with JRuby is the missing link between enjoying JRuby and using it in the real world to build high-performance, scalable applications.

Now in print and shipping from

Tried Dwolla Yet?

We are very proud to announce that we now accept Dwolla payments for U.S. orders. Dwolla is a new payment network that promises a cheaper, safer, and overall better payment experience than other internet payment options.

Don’t Get Left Out

Are your friends jealous that you get these spiffy email newsletters and they don’t? Clue them in that all they need to do is create an account on (email address and password is all it takes) and select the checkbox to receive newsletters.

Are you following us on Twitter and/or Facebook? Here’s where you can find us and keep up with the latest news and commentary:

Coming Soon:

  • Deploying Rails: Automate, Deploy, Scale, Maintain, and Sleep at Night in print
  • Cucumber Recipes: Automate Anything with BDD Tools and Techniques in beta
  • Raspberry Pi Pragmatic exPress

Recently Released:

  • ThoughtWorks Anthology Volume II [in beta]
  • Dart for Hipsters [now available]
  • Working with Unix Processes [now available]
  • Seven Databases in Seven Weeks [in print]
  • Thanks for your continued support,

    Andy & Dave

    Books • eBooks • Screencasts • PragPub Magazine