Deploying with JRuby 9k: Deliver Scalable Web Apps Using the JVM
暫譯: 使用 JRuby 9k 部署:透過 JVM 提供可擴展的網頁應用程式
Joe Kutner
- 出版商: Pragmatic Bookshelf
- 出版日期: 2016-07-29
- 售價: $860
- 貴賓價: 9.5 折 $817
- 語言: 英文
- 頁數: 180
- 裝訂: Paperback
- ISBN: 1680501690
- ISBN-13: 9781680501698
-
相關分類:
Ruby、JVM 語言
立即出貨 (庫存 < 4)
商品描述
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.
商品描述(中文翻譯)
使用 JVM 的高效能來部署您的應用程式,同時使用您喜愛的語言進行開發。本書介紹了三種 JRuby 部署策略,這些策略能夠提供您所需的效能和可擴展性,同時使用一種設計用於快速開發的語言。探索常見的部署場景,包括將基於 MRI 的 Ruby 部署整合到單一的 JVM 進程中,以及將 Rails 應用程式移植到 JRuby,讓其進入生產環境並保持運行。本新版本新增了有關 Puma、效能調整和 Java 整合的新章節,並更新至最新版本的 JRuby 9k、Rails 4 和 JDK 8。
JRuby 是一種快速、可擴展且強大的 JVM 語言,擁有傳統 Ruby 環境的所有優勢。JRuby 部署的組件較少,且比傳統 Ruby 消耗更少的記憶體。透過本書,您現在可以在現實世界中使用 JRuby 來構建高效能、可擴展的應用程式。
在 JVM 上部署您的應用程式需要一些新的方法。首先,創建一個利用 JVM 原生併發的 JRuby 微服務。然後使用 Docker 建立一個虛擬生產環境,這是一個穩定且可重現的地方來探索 JRuby 部署。接下來,將現有的 Rails 應用程式移植到 JRuby,準備該應用程式以利用 JVM 平台的優勢——同時保持對 Ruby 開發者友好且熟悉的所有內容。將 Rails 應用程式部署到 Docker,使用多執行緒的 Puma 伺服器部署到 Heroku 或您自己的私有雲。
利用強大的 Java 函式庫。了解 JRuby 如何融入企業,通過將您的應用程式切換到 TorqueBox,這是一個全功能的 JRuby 環境,內建支援消息傳遞、排程和守護進程——非常適合處理大型任務。最後,深入探討 JVM 效能調整,並設置一個使用 Travis CI 的持續部署環境。
您需要的條件:
要運行本書中的範例,您需要一台可以運行 Java 虛擬機的電腦以及一個連接到互聯網的連接。