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

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

作者: Joe Kutner
出版社: Pragmatic Bookshelf
出版在: 2016-07-29
ISBN-13: 9781680501698
ISBN-10: 1680501690
裝訂格式: Paperback
總頁數: 180 頁





內容描述


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.




相關書籍

PHP7 底層設計與源碼實現

作者 陳雷

2016-07-29

大數據處理框架Apache Spark設計與實現(全彩)

作者 許利傑 方亞芬

2016-07-29

Web編程基礎(HTML+CSS)項目實戰教程

作者 高麗霞

2016-07-29