• 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

Posted by Martin LaMonica
  • Print

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.

Originally posted at News Blog
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 Webware
Music and browsing take flight in Songbird
BlackBerry's mobile Web site gets a refresh
Zagat on iPhone: 'A disappointment' die-hards will still 'love'
Facebook Marketplace relaunch powered by Oodle
Gmail comes to the desktop in gadget form
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
advertisement

About Webware

Say No to boxed software! The future of applications is online delivery and access. Software is passé. Webware is the new way to get things done.

Add this feed to your online news reader

Webware topics

In the news now

A tech veteran responds to the recession

LogLogic's Patricia Sueltz heard a clear message about the economy from investors, but she already knows a thing or two about navigating through tough times.


Obama's AG pick on privacy

Eric Holder has criticized the warrantless wiretapping program, but his views on other online policies may not be that far from those of the Bush administration.


advertisement
Click Here

Inside CNET News

Scroll Left Scroll Right
  • Business Tech

    IPOs a thing of the past?

    At AlwaysOn Venture Summit West conference, investment bankers, venture capitalists, and private equity players weigh in on the prognosis for the IPO market.

  • Gallery

    Photos: Space station marks a decade aloft

    The first pieces of the International Space Station went into orbit 10 years ago. Now a full-fledged lab facility, it continues to grow.

  • Security

    Apple deletes Mac antivirus suggestion

    Apple removes statement to customers urging them to use antivirus software, saying that Macs are safe "out of the box."

  • Beyond Binary

    Microsoft expands Vista SP2 testing

    Starting on Thursday, the software maker will make public a test version of the service pack update to Vista.

  • Video

    A toast to online wine A toast to online wine
  • Digital Media

    EFF, Bush administration spar over telecom immunity

    Feds tell district judge government must be allowed to protect the heartland. EFF says that is fine, but don't strip away constitutional rights.

  • Video

    Wi-Fi while you fly Wi-Fi while you fly
  • Gaming and Culture

    From Cy Young to video game fame

    Tim Lincecum, one of the best pitchers in baseball, was chosen to be the cover athlete for 2K Sports' next baseball game. On Tuesday, he did a motion-capture session for the game.

  • Green Tech

    Ta ta, Tesla

    Are the Valley-based VCs and big-wigs who back Tesla Motors really serious about asking the federal government for low-interest loans?

  • Gallery

    Photos: Top-rated reviews of the week

    Here are a few of CNET Reviews' favorite items from the past week, including Adobe suites, laptop bags, and a Panasonic flat panel TV.

  • The Download Blog

    Music and browsing take flight in Songbird

    Music and browsing mashup Songbird has kicked the remnants of its shell to the curb, and the program's main emphasis as a music browser couldn't be more clear.

  • Green Tech

    Ford accelerates electric-vehicle plans

    In its turnaround plan presented to Congress, Ford says it will invest billions in fuel efficiency and introduce a family of hybrid-electric and all-electric cars.