Deploying with JRuby 9k: Deliver Scalable Web Apps Using the JVM Front Cover

Deploying with JRuby 9k: Deliver Scalable Web Apps Using the JVM

  • Length: 150 pages
  • Edition: 1
  • Publisher:
  • Publication Date: 2016-07-29
  • ISBN-10: 1680501690
  • ISBN-13: 9781680501698
  • Sales Rank: #3404287 (See Top 100 Books)
Description

Deploy using the JVM’s high performance while building your apps in the language you love. This book introduces you to three JRuby deployment strategies that give you the performance and scalability you need, while you use a language designed for rapid development. Explore common deployment scenarios, including consolidating an MRI-based Ruby deployment onto a single JVM process and porting a Rails application to JRuby, getting it into production, and keeping it running. This new edition has new chapters on Puma, performance tuning, and Java integration, and is updated to the latest versions of JRuby 9k, Rails 4, and JDK 8.

JRuby is a fast, scalable, and powerful JVM language with all the benefits of a traditional Ruby environment. JRuby deployments have fewer moving parts and consume less memory than traditional Ruby. With this book, you can now use JRuby in the real world to build high-performance, scalable applications.

Deploying your apps on the JVM requires some new approaches. Start by creating a JRuby microservice that takes advantage of the JVM’s native concurrency. Then use Docker to build a virtual production environment that’s a stable, reproducible place to explore JRuby deployment. Next, port an existing Rails application to JRuby, preparing the app to take advantage of the JVM platform–all while keeping everything that’s friendly and familiar to Ruby developers. Deploy the Rails app to Docker with a multi-threaded Puma server to Heroku or your own private cloud.

Take advantage of powerful Java libraries. See how JRuby fits into the enterprise by switching your app to use TorqueBox, an all-in-one JRuby environment that includes built-in support for messaging, scheduling, and daemons–perfect for handling the big jobs. Finally, take a deep dive into JVM performance tuning and set up a continuous deployment environment with Travis CI.

What You Need:

To run the examples in this book, you’ll need a computer that can run the Java Virtual Machine and a connection to the Internet.

Table of Contents

Chapter 1. Getting Started with JRuby
Chapter 2. Creating a Deployment Environment
Chapter 3. Deploying a Rails Application
Chapter 4. Consuming Backing Services with JRuby
Chapter 5. Deploying JRuby in the Enterprise
Chapter 6. Managing a JRuby Application
Chapter 7. Tuning a JRuby Application
Chapter 8. Monitoring JRuby in Production
Chapter 9. Using a Continuous Integration Server

To access the link, solve the captcha.