Ruby on Rails is Slow According to Twitter

In a recent interview with Twitter Developer Alex Payne, he candidly admitted that the the Ruby programming language, and by association the Rails framework, aren't very scalable. A couple of comments really stuck out:

"Running on Rails has forced us to deal with scaling issues - issues that any growing site eventually contends with - far sooner than I think we would on another framework. The common wisdom in the Rails community at this time is that scaling Rails is a matter of cost: just throw more CPUs at it."

and:

"It’s also worth mentioning that there shouldn’t be doubt in anybody’s mind at this point that Ruby itself is slow."

I'm not a Rails developer myself so I can't agree or disagree but coming from a developer of such a large site as Twitter, these comments really make you wonder why Rails is such a hot framework and why people are flocking to it.

Now, I'm not posting about this to take a cheap shot at the Rails community but I truly question all of the hype that surrounds Ruby on Rails when proven technologies such as ColdFusion and BlueDragon continue to be treated as red-headed step children. Its certainly been proven time and time again that CF-based servers can effectively scale and handle large web applications. But here we have an example of an application framework (Rails) that's the darling of the web development world and yet is having trouble meeting the demands of one of the newest and fastest growing websites on the Net.

So, how does ColdFusion break out of this position? I'd really like to hear from you my readers. I'm looking forward to your ideas and suggestions and I'll be sure to have Adobe CF Product Manager Tim Buntel and New Atlanta President Vince Bonfanti review suggestions so they can better position their respective products.

Related Blog Entries

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
Dan Wilson's Gravatar Ruby is slow.

I would say Ruby is Relatively Slow. Ruby does offer a significant amount of power and dynamicity. These Core and Much Beloved features of the language and the Rails framework contribute to its Relative Slowness.

Fact is, when you make the machine do it, instead of the programmer, there is some expense to pay. These arguments are the same arguments used for and against ColdFusion.

Sure, the Twitter people could have implemented the whole site in Hardware, if they wanted pure On Metal speed. They chose to use technology that got them off the ground much faster than a Hardware/ Assembly/ C/ C++/ etc based platform would have gotten them.

You don't get both sides.
# Posted By Dan Wilson | 4/13/07 11:31 AM
Rey Bango's Gravatar @Dan: I hear ya. I'm assuming by your comments that you've done some Ruby and/or Rails development. From your experience, how does RoR compare in terms of performance to CF-based engines?
# Posted By Rey Bango | 4/13/07 11:42 AM
Hans's Gravatar "Its certainly been proven time and time again that CF-based servers can effectively scale"

Scalability matters less for open source frameworks since the per CPU cost of deployment is less (hardware only, versus hardware and software).
# Posted By Hans | 4/13/07 12:48 PM
Adam Fortuna's Gravatar The argument I always here for Rails is that hardware dollars are cheaper than development dollars. That's a valid point, and the basis for justifying Ruby peoples love for the language. Basically if it costs $20,000 + $100/server for rails compared to $40,000 + $100/server for CF it'll be cheaper for quite a while. You need to scale regardless of your language, so why not just change that scale point down a bit and increase productivity a "lot".

That's their argument on why slow doesn't matter when starting off at least. There's a lot of things you can do better in Rails they weren't doing which are possible, like caching, or using memcache for their db caching or any of a bunch of things. Problem is when you're growing so fast it's hard to do anything as fast it's growing. Myspace had the same problem which had people cursing CF's speed issues when the real problem was just lazy code and huge growth. Whether Twitter is able to adapt to this growth will be the real question of Rails ability to scale under pressure in my opinion, one that has been verified to be possible in CF by Myspace.
# Posted By Adam Fortuna | 4/13/07 3:19 PM
ripplin's Gravatar I found another post which is worth looking at that discusses scaling the logger facility, much like twitter does it:

<a href="http://www.dotrb.com/2007/8/11/scaling-rails-with-...;
# Posted By ripplin | 8/11/07 12:22 AM
ripplin's Gravatar I found another post which is worth looking at that discusses scaling the logger facility, much like twitter does it:

http://www.dotrb.com/2007/8/11/scaling-rails-with-...

Sorry to double post, i thought i was helping with wrapping the first link in anchor tags... my bad
# Posted By ripplin | 8/11/07 12:23 AM
BlogCFC was created by Raymond Camden. This blog is running version 5.8.001.