Computerworld
Ruby on Rails rolls into the enterprise
The New York Times used it on Election Day; YellowPages.com's site is built with it.
Sharon Machlis  20 November, 2008 12:26

The New York Times used Ruby on Rails to pull together, analyze and display election results in near real time on one of its busiest Web traffic days ever. How did nytimes.com scale up Rails -- a framework known for quick development turnaround but less than lightning fast performance?

"The secret is, we didn't," Ben Koski told a session at the Professional Ruby Conference in Boston Tuesday. Instead, Koski and others in the Times' interactive new media group used low-level SQL commands for some key data-manipulation tasks. And while some Rails purists might frown upon choosing SQL over Rails' own higher-level interactions with data, Koski said the direct SQL commands helped slash the time needed to process thousands of records from 30 seconds to about 1 second -- a major boost when election result files were literally being updated by the minute.

In fact, while this week's event is aimed at Ruby practitioners and enthusiasts, a common theme emerged from several of the presentations: Don't get hung up on the idea that one tool, language or platform -- no matter how good -- fits all needs.

Rails can help developers go from raw data to a working application in just a few hours, and it's "tweak friendly" for multiple iterations of an already working app, Koski noted. Rails Web code can be used from a command line to run automated cron jobs, and there's customizable built-in SQL for dealing with data that needs to be reformatted.

Even so, deployment -- while improving -- can be considered a weakness compared to other options, he noted. Also, installing and running Rails tools on Sun servers can be a challenge (Amazon's EC2 cloud computing service is now hosting some nytimes.com Rails apps). And, available built-in administrative interfaces are not as robust in Rails as they are on a competing Python-based framework, Django . The Times interactive new media group -- which works largely on projects that offer added functionality beyond conventional text, audio and video -- plans to launch a Django application next month. (The bulk of the New York Times Web site does not use Rails.)

More about , Amazon, AT&T, ARC, AT&T

Comments

Post new comment

Login or register to link comments to your user profile, or you may also post a comment without being logged in.
The content of this field is kept private and will not be shown publicly.
Enter the fully qualified URL, eg. http://www.example.com/
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

Zones
Zone logoZones provide focussed content from Computerworld and leading technology partners.
Newsletter Subscription
Newsletter Subscription
Sign up for our Computerworld newsletters!
Syndicate content Syndicate content
 

Computerworld Webinar

Thursday, June 11th, 2009
10:30am EST (Sydney, Australia)
Screening at your PC

Computerworld is hosting a 30 minute live webinar to help you to learn how unified communications can save you money, foster innovation and business agility by making it easier for people to find, reach and collaborate with one another.

Register Now

Computerworld Community Comments
Whitepaper

Best Practices in Lifecycle Management

This white paper compares solutions from KACE, Altiris, LANDesk, and Microsoft. Read on for best practices, functional solution comparisons and cost comparisons. Determine overall value easily and quickly.

Enterprise IT Buyer's Guide
Find Technology Vendors Fast
 
Find vendors by name | Find by category
Sponsored Links
 
Send Us E-mail | Privacy Policy
Features List | Media Kit | Advertising | Contact Us

Copyright 2009 IDG Communications. ABN 14 001 592 650. All rights reserved.
Reproduction in whole or in part in any form or medium without express written permission of IDG Communications is prohibited.