Book Image

Heroku Cookbook

By : Mike Coutermarsh
Book Image

Heroku Cookbook

By: Mike Coutermarsh

Overview of this book

Heroku is a Platform as a Service that enables developers to rapidly deploy and scale their web applications. Heroku is designed for developer happiness, freeing developers from doing system administrative tasks such as configuring servers and setting up load balancers. Developers are able to focus on what they do best, building web applications, while leaving the details of deployment and scaling to the experts at Heroku. This practical guide is packed with step-by-step solutions to problems faced by every production-level web application hosted on Heroku. You'll quickly get comfortable with managing your Heroku applications from the command line and then learn everything you need to know to deploy and administer production-level web applications.
Table of Contents (17 chapters)
Heroku Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Running Puma with Rubinius for parallelism


The Puma web server was built for parallelism, but unfortunately, the standard MRI implementation of Ruby is not. Rubinius is an implementation of Ruby that was built with the purpose of solving MRI's concurrency problem. With Rubinius, we will be able to achieve true parallelism in our application. Puma's threaded processes in combination with Rubinius can give our application a huge performance boost. In this recipe, we will learn how to set up our application to run on Rubinius.

How to do it…

To start, we'll need an existing Heroku application that is running on Puma. Specific directions are available in the previous recipe, Setting up and running Puma on Heroku:

  1. We'll need to install the latest version of Rubinius on our machine. Although there are several Rubinius installation methods, the easiest one is through RVM:

    $ rvm install rbx-2.2.6
    

    Note

    At the time of writing this book, rbx-2.2.6 was the latest version. To ensure that we're running the...