Ruby Is Slow, and Rails Doesn’t Scale Well
By Daniel Miessler on April 14th, 2007: Tagged as Programming | Rails | Ruby
When this talk comes from a Twitter developer, who loves both Ruby and Rails and happen to be running probably the most punished RoR site on the Internet right now, I’m inclined to believe. (they’re taking over 11,000 requests per second during peak times). Here are a few quotes from the interview:
Once you hit a certain threshold of traffic, either you need to strip out all the costly neat stuff that Rails does for you (RJS, ActiveRecord, ActiveSupport, etc.) or move the slow parts of your application out of Rails, or both.
It’s also worth mentioning that there shouldn’t be doubt in anybody’s mind at this point that Ruby itself is slow. It’s great that people are hard at work on faster implementations of the language, but right now, it’s tough.[ Link: Interview With Twitter Dev ]
Does this discourage me from Ruby or Rails? Hell no. To me the elegance of the language completely dominates its flaws, especially when you realize that there exists a small legion of very smart people who are obsessed with fixing these problems.
No, I’ll be sticking with Ruby and Rails. I’ll wait for the performance and scale issues to be fixed in subsequent releases. The language/framework is too beautiful to shun.
--

http://www.loudthinking.com/arc/000610.html
it seems that the rails community has put up a possible fix for twitters problem.
Comment by Jason Ormes — 4/15/2007 @ 9:15 pm
I’m not discouraged either… if I could get to 11,000 reqs/sec across 4 quad-core servers, i’d be ecstatic to be honest!
The other thing people seem to conveniently overlook is that twitter is fairly heavy on the DB inserts, so it’s not as though caching can do a lot to help there, although they are still caching the hell out of whatever they can.
Comment by warren — 4/17/2007 @ 2:32 am