And the Greatest of These Is ... Rack Support

Ben Scofield (Heroku)
General
Location: Ballroom A
Average rating: ****.
(4.42, 43 ratings)

Over the past year, Rails has gradually become a better, more connected citizen within the Ruby web space. The Merb merger is one part of that, but one of the biggest steps came much earlier, when Rails added Rack support. In addition to the obvious benefits, Rack support in Rails has made possible some new application architectures that were either impossible or ill-advised previously. Specifically, it is now possible to build a complex Rails application that can still respond extremely quickly and directly to a specific set of requests, such as those an AJAX service might experience.

This capability has only been improved by the introduction of Rails Metal, and by the ability to integrate distinct Rack applications (for instance, Sinatra apps) with Rails projects. In this session, we’ll briefly review how to get this integration running, but the majority of the time will be spent exploring real examples of how this approach changes how applications can be built. We’ll see how this technique rehabilitates page caching, turning it from a narrowly-applied strategy to a general-purpose performance booster. We’ll also see how this approach can save an application from incredibly frequent but tiny requests that could otherwise bring it to its knees. Finally, we’ll address some general problems that may arise as this technique becomes more popular.

Photo of Ben Scofield

Ben Scofield

Heroku

Ben Scofield is a development director at Viget Labs, where he builds Rails applications for Web 2.0 startups. He’s been using Ruby and Rails for over four years, and is the author of Practical REST on Rails 2 Projects, from Apress. He’s spoken at Railsconf, Rubyconf, Railsconf Europe, and more over the past few years. When he’s not hacking, he spends time with his wife and daughter, reads voraciously, and tries to make the world a better place for web developers everywhere.

Ben blogs at http://www.culann.com/ and http://www.viget.com/extend/.

Comments on this page are now closed.

Comments

Donald French
05/07/2009 1:12pm PDT

Great overview and examples of what is out there. Good guidance in getting started with the tools discussed.

Steve Newell
05/07/2009 11:23am PDT

Great presentation. Answered many of the questions I had regarding Rack and how it’s used

News and Coverage
co-presented by Ruby Central, Inc. O'Reilly
  • Engine Yard
  • Heroku
  • Sun Microsystems
  • Blue Box Group
  • New Relic

Sponsorship Opportunities

For information on exhibition and sponsorship opportunities at RailsConf, contact Yvonne Romaine at yromaine@oreilly.com.

Download the RailsConf Sponsor/Exhibitor Prospectus

Media Partner Opportunities

Download the Media & Promotional Partner Brochure (PDF) for information on trade opportunities with O'Reilly conferences or contact mediapartners@ oreilly.com

Program Ideas

Post your suggestions for speakers, topics, and activities on the RailsConf wiki or send an email to rails-idea@oreilly.com.

Press and Media

For media-related inquiries, contact Maureen Jennings at maureen@oreilly.com.

Contact Us

View a complete list of RailsConf 2009 contacts.