• On The Insider: Bruno Film Edited Due to Jackson's Death
May 30, 2008 7:31 AM PDT

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

by Martin LaMonica

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.
advertisement
Click here!
Recent posts from News Blog
Neil Young Archives Blu-ray: Rip off?
Acronis revises survey results about backup habits
Acronis miscalculates data on users' bad backup habits
Flickr co-founder presses beta button
Comcast, Sony open retail store
Cox to try coaxing the Internet into submission
Was InfoWorld's CTO of the Year award a year late?
VMWare VI4 renamed to vSphere
Add a Comment (Log in or register) (4 Comments)
  • prev
  • 1
  • next
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
(4 Comments)
  • prev
  • 1
  • next
advertisement
Click Here

Making sense of Windows 7 upgrades

faq The basics and the fine print on Microsoft's options for those eyeing the next operating system from Redmond.
• Full Windows 7 coverage

Road Trip 2009: Big Sky Country

CNET News reporter Daniel Terdiman takes his car full of gadgets to the Rockies and the Great Plains in search of tech, science, nature, and more.
• America's Fortress: Cheyenne Mountain

About News Blog

Recent posts on technology, trends, and more.

Add this feed to your online news reader

advertisement
advertisement

Inside CNET News

Scroll Left Scroll Right