Deploying with JRuby: Deliver Scalable Web Apps using the JVM (Paperback)
Joe Kutner
- 出版商: Pragmatic Bookshelf
- 出版日期: 2012-07-20
- 定價: $1,170
- 售價: 9.5 折 $1,112
- 語言: 英文
- 頁數: 224
- 裝訂: Paperback
- ISBN: 1934356972
- ISBN-13: 9781934356975
-
相關分類:
Ruby、JVM 語言
立即出貨 (庫存 < 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虛擬機的電腦。