Download E-books Deploying with JRuby: Deliver Scalable Web Apps using the JVM (Pragmatic Programmers) PDF

By Joe Kutner

Deploy utilizing the JVM's excessive functionality whereas development your apps within the language you're keen on. JRuby is a quick, scalable, and robust JVM language with all of the merits of a standard Ruby surroundings. See tips on how to consolidate the various relocating components of an MRI-based Ruby deployment onto a unmarried JVM technique. you are going to how to port a Rails software to JRuby, get it into construction, and hold it running.

JRuby deployments have fewer relocating elements and eat much less reminiscence than conventional Ruby deployments, yet to installation your apps at the JVM, you must examine a few new techniques. This e-book introduces you to 3 JRuby deployment ideas that might provide the functionality and scalability you would like whereas letting you employ the language you love.

you are going to commence by way of porting an latest software to JRuby, getting ready the app to use the JVM platform. Then you will use Vagrant and Puppet to construct a digital creation setting so that you have a strong, reproducible position to discover JRuby deployment.

together with your setting in position, you will scan with easy JRuby deployment with Warbler as you package deal your Ruby internet software right into a unmarried dossier you could install to a Java software server. subsequent you are going to arrange the light-weight Trinidad net server to create a extra versatile, modular deployment that matches extra complicated occasions yet nonetheless feels pleasant and frequent to Ruby builders. you will change to powering your app with TorqueBox, an all-in-one JRuby atmosphere that comes with integrated help for messaging, scheduling, and daemons--perfect for dealing with the "big jobs." Then, you will arrange a continuing integration surroundings with Jenkins so that you can set up just like the pros.

Deploying with JRuby is the lacking hyperlink among having fun with JRuby and utilizing it within the actual global to construct high-performance, scalable applications.

What You Need:

To run the examples during this ebook, you have to a working laptop or computer which can run the Java digital Machine.

Show description

Read or Download Deploying with JRuby: Deliver Scalable Web Apps using the JVM (Pragmatic Programmers) PDF

Similar Programming books

Working Effectively with Legacy Code

Get extra from your legacy structures: extra functionality, performance, reliability, and manageability Is your code effortless to alter? are you able to get approximately on the spot suggestions should you do swap it? Do you already know it? If the reply to any of those questions is not any, you will have legacy code, and it's draining time and cash clear of your improvement efforts.

Clean Code: A Handbook of Agile Software Craftsmanship

Even undesirable code can functionality. but when code isn’t fresh, it could carry a improvement association to its knees. each year, numerous hours and demanding assets are misplaced due to poorly written code. however it doesn’t need to be that manner. famous software program specialist Robert C. Martin provides a innovative paradigm with fresh Code: A instruction manual of Agile software program Craftsmanship .

Implementation Patterns

“Kent is a grasp at developing code that communicates good, is straightforward to appreciate, and is a excitement to learn. each bankruptcy of this booklet comprises first-class reasons and insights into the smaller yet vital judgements we regularly need to make whilst developing caliber code and sessions. ” –Erich Gamma, IBM uncommon Engineer   “Many groups have a grasp developer who makes a speedy circulate of fine judgements all day lengthy.

Agile Testing: A Practical Guide for Testers and Agile Teams

Te>Two of the industry’s so much skilled agile checking out practitioners and experts, Lisa Crispin and Janet Gregory, have teamed as much as convey you the definitive solutions to those questions and so on. In Agile checking out, Crispin and Gregory outline agile checking out and illustrate the tester’s function with examples from genuine agile groups.

Additional info for Deploying with JRuby: Deliver Scalable Web Apps using the JVM (Pragmatic Programmers)

Show sample text content

TorqueBox is the main robust deployment setting to be had to any Ruby software. It’s able to boosting functionality with no even altering a unmarried line of code. 1 however it additionally has positive factors which could enhance the way in which an program consists. TorqueBox presents integrated aid for clustering, which permits dispensed servers to duplicate consultation info, coordinate jobs, and ship messages to one another. it will support Twitalytics scale up with out incurring the overhead of extra infrastructure. during this bankruptcy, we’ll port Twitalytics onto TorqueBox and begin making the most of this energy. yet we’ll additionally leverage TorqueBox’s help for bidirectional verbal exchange among a shopper and server so as to add a few new beneficial properties to the applying. Then we’ll use TorqueBox’s centralized administration console to watch each one of those relocating elements. within the coming chapters, we’ll positioned this all jointly and set up Twitalytics to a operating cluster. due to its integrated aid for beneficial properties equivalent to clustering, TorqueBox is usually extraordinary as enterprise-grade software program. however it does this with none 1. http://torquebox. org/news/2011/10/06/torquebox-2x-performance/ 104 • bankruptcy 6. making a TorqueBox program of the drawbacks we programmers frequently go together with “enterprisey” issues. those integrated good points comprise the subsequent: • • • • • • Long-running companies (daemons) Scheduled jobs (like cron) history jobs consultation replication throughout a cluster disbursed caching throughout a cluster disbursed transactions The Twitalytics software isn't firm software program, however it has a necessity for the entire good points we indexed past. in reality, any software that's profitable will ultimately want those functions. Having them built-in into our platform leads to a extra cohesive, trustworthy, and possible atmosphere. this sort of platform is termed an software server. 6. 1 what's an program Server? An program server is a unique type of platform from what such a lot Rubyists are conversant in. regularly, a Ruby program is chargeable for collecting jointly the libraries and instruments it must run. for instance, if our software must hear on port 3000, then it pulls in a library to deal with HTTP listening. this sort of structure is illustrated in determine 17, conventional Ruby software structure, on web page one hundred and five. yet why may still our program care that it listens on port 3000? Shouldn’t our software be curious about fixing the matter it used to be created for? In bankruptcy three, Deploying an Archive dossier, on web page 37, we solved this challenge by utilizing Apache Tomcat to invert the best way we deployed. rather than operating our software, we ran the Tomcat box and deployed an archive dossier into it. This decoupled our software from the task of listening on an HTTP port. yet there many different difficulties in our structure like this one, and so they can’t be solved by way of Tomcat by myself. Ruby purposes take care of many issues like HTTP listening which are open air the scope in their enterprise specifications.

Rated 4.85 of 5 – based on 5 votes