• On MovieTome: See the TRAILER for TERMINATOR 4!
May 30, 2008 7:31 AM PDT

Twitter: Ruby on Rails rules, but we're buckling from growth

Are Twitter's performance problems due to flimsy engineering or the choice of Ruby on Rails to build the application?

Twitter logo

In the Twitter developer blog on Thursday, an engineer said that Ruby on Rails still rocks as a Web development platform. The service's woes are due more to a creaky architecture, he said.

Twitter performance problems have brought heaps of scorn from the busy Web 2.0 digerati. That has prompted the company to disclose more technical details like today's Q and A format blog.

Many people have questioned whether choosing to write the application using Ruby on Rails was a smart move and whether Twitter should shift to a different Web development technology.

Ruby is a scripting, or dynamic, language, which means that it can be slower than Java or C for some applications. The trade-off is that in general it's faster to write code with. Rails, meanwhile, is a Web development framework optimized for speed.

Ruby still makes sense for much of what Twitter does--essentially sending messages around the Web--but the company has left the door open to using other languages. The Twitter developer blog says this:

We've got a ton of code in Ruby, and we'll continue to develop in Ruby with Rails for our front-end work for some time. There's plenty to do in our system that Ruby is a great fit for, and other places where different languages and technologies are a better fit. Our key problems have been primarily architectural and growing our infrastructure to keep up with our growth. Working in Ruby has been, in our experience, a trade-off between developer speed/productivity and VM speed/instrumentation/visibility.

The outages and slow performance are due to "popular" members of Twitter with many followers who "tweet" a lot all at once, according to Twitter. Because of that, the company says will put some limits on what some users can do, but it should not be noticeable.

We have some limits, and we're adding more. Legitimate users should never notice them, but these new limits should help mitigate the worst case failures and attacks.

Martin LaMonica is a senior writer for CNET's Green Tech blog. He started at CNET News in 2002, covering IT and Web development. Before that, he was executive editor at IT publication InfoWorld. E-mail Martin.
Recent posts from News Blog
Navy charters kite-powered cargo ship to deliver equipment
EA Mobile, Eidos Interactive sign agreement
Sprint first to offer HTC Touch Pro
Flipping out: RIM BlackBerry Pearl Flip 8220 debuts
Sprint HTC Touch Diamond outed early
Add a Comment (Log in or register) 4 comments
by The_Decider May 30, 2008 7:46 AM PDT
More than likely it is incompetence on the part of Twitter. RoR can be scalable, stable, and fast, but not if the work is being done by idiots. Ruby is far and away superior to the craptastic PHP and at least as good as Python and Perl, Rails is so flexible and a joy to work with, but it still requires a bit of knowledge to effectively leverage. Its advantage over straight LAMP is that it enforces good development methods, but it can't do everything. The developer still has to be competent.
Reply to this comment
by livecrunch May 30, 2008 8:07 AM PDT
I don't even think that those guy's know what they code in. Code was written in python and some in RoR.
Reply to this comment
by mrohde May 30, 2008 9:21 AM PDT
"Legitimate users should never notice [the limits]" is as far from the mark as possible. Either they screwed up on programming the limits (no supprise if this is the case) or as a legitimate users I am noticing it. The 30 request limit kicked in after five requests in an hour.

As a more recent user of twitter I am starting I am quickly questioning the value.
Reply to this comment
by benjaminstraight July 25, 2008 6:19 PM PDT
Huh?
Reply to this comment
Powered by Jive Software
advertisement
Resource center from News.com sponsors
You Need The Speed of Norton 2009
Introducing Norton Internet Security™2009

Click Here!
With one-click, one-minute install, under 8MB of memory usage and fewer, shorter scans, it's the fastest security suite anywhere. Norton. Smart Security, Engineered for Speed. Get a FREE trial today!

Click Here!
The Fastest Security Suite Anywhere

Experience the revolutionary Norton Internet Security™ 2009. With Norton™ Insight, a new feature, you get precision security that targets only at risk files for fewer, faster, shorter scans

Win a Trip to Space!*

Enter the Blast Off with Norton Sweepstakes for your shot at a trip to space. You could experience being fast and weightless, just like the new Norton 2009. *No purchase necessary; click for full details.

FREE Trial!

Act now to get your FREE trial of Norton Internet Security 2009. Try it for the protection. Love it for the speed

Norton Safe Web NEW!

A community-based system that rates web site safety

Norton Labs NEW!

Users can download new security technologies and share input directly with developers. Help us shape our future products!

About News Blog

Recent posts on technology, trends, and more.

Add this feed to your online news reader

News Blog topics

Featured blogs

advertisement
advertisement

Inside CNET News

Scroll Left Scroll Right