Deploying with JRuby: Deliver Scalable Web Apps using the JVM (Paperback)
暫譯: 使用 JRuby 部署:透過 JVM 提供可擴展的網頁應用程式 (平裝本)

Joe Kutner

  • 出版商: Pragmatic Bookshelf
  • 出版日期: 2012-07-20
  • 定價: $1,170
  • 售價: 8.8$1,030
  • 語言: 英文
  • 頁數: 224
  • 裝訂: Paperback
  • ISBN: 1934356972
  • ISBN-13: 9781934356975
  • 相關分類: RubyJVM 語言
  • 立即出貨 (庫存 < 4)

相關主題

商品描述

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.

What You Need:

To run the examples in this book, you'll need a computer that can run the Java Virtual Machine.

商品描述(中文翻譯)

JRuby 部署的組件較少,且比傳統 Ruby 部署消耗更少的記憶體,但要在 JVM 上部署您的應用程式,您需要學習一些新的方法。本書將介紹三種 JRuby 部署策略,這些策略將為您提供所需的性能和可擴展性,同時讓您使用您喜愛的語言。

您將從將現有應用程式移植到 JRuby 開始,準備該應用程式以利用 JVM 平台。接著,您將使用 Vagrant 和 Puppet 建立一個虛擬生產環境,以便擁有一個穩定且可重現的地方來探索 JRuby 部署。

在環境設置完成後,您將使用 Warbler 進行簡單的 JRuby 部署實驗,將您的 Ruby 網頁應用程式打包成一個可以部署到 Java 應用伺服器的單一檔案。接下來,您將設置輕量級的 Trinidad 網頁伺服器,以創建一個更靈活、模組化的部署,適合更複雜的情況,但仍然對 Ruby 開發者來說感覺友好且熟悉。然後,您將轉向使用 TorqueBox 來驅動您的應用程式,這是一個全功能的 JRuby 環境,內建支援消息傳遞、排程和守護進程,非常適合處理「大型任務」。接著,您將設置一個持續整合環境,使用 Jenkins 以便像專業人士一樣進行部署。

使用 JRuby 部署 是享受 JRuby 和在現實世界中使用它來構建高性能、可擴展應用程式之間的缺失環節。

您需要的條件:

要運行本書中的範例,您需要一台可以運行 Java 虛擬機的電腦。