What's New in Edge Rails: Rails Metal

Posted by ryan
at 10:02 PM on Wednesday, December 17, 2008

This feature is scheduled for: Rails v2.3/3.0

In what is clearly a move to make me irrelevant within the Rails community, news has broken about the new Rails metal feature before I had the time to do a proper write-up. (And for the second time in as many weeks, no less). I need to get on my horse here, many apologies.

So Rails Metal is a way to cut out the fat of the MVC request processing stack (and the all the niceties, too) to get the quickest path to your application logic. This is especially useful when you have a single action that you need to run as quickly as possible and can afford to throw away all the support Rails normally provides in exchange for a very fast response time.

While I could throw out some examples here, I’ll let Jesse Newland of RailsMachine do the heavy lifting with his great writeup (a little morsel – his tests have Metal running 25x faster than the comparable controller-based action).

This is definitely an exciting feature to keep an eye on!

tags: ruby, rubyonrails


Leave a response

  1. TJ StankusDecember 17, 2008 @ 10:48 PM

    Ryan, it’s not your fault. Blame the github watch feature. We’re all watching edge now. :)

  2. brettDecember 17, 2008 @ 10:50 PM

    Your edge rails series is my favorite rails related blog content. So much so that I was actually a little worried to see the “This Week in Edge Rails” stuff on riding rails. I for one hope you keep on top of it.

  3. DHHDecember 20, 2008 @ 04:20 AM

    Just a note for posterity. The Action Controller vs Metal numbers were off. Metal is typically 2-3x faster. Or better said, has a constant overhead of 1-2ms less. Pratik ran some numbers with hello world in Action Controller doing 800 req/sec, Metal doing 3000 req/sec.