O'Reilly logo

The Rails 5 Way, Fourth Edition by Kevin Faustino, Obie Fernandez

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 17 Caching and Performance

Speed has never killed anyone. Suddenly becoming stationary . . . that’s what gets you.

—Jeremy Clarkson

Historically, Rails suffered from unfair criticisms over perceived weaknesses in scalability. The continued success of Rails in ultra high traffic usage at companies such as Groupon has made liars of the critics. It turns out that the raw CPU efficiency missing from Ruby is just not too much of a factor in IO-bound web applications. It is entirely possible to make your Rails application responsive and scalable with ease. Those mechanisms used to squeeze maximum performance out of your Rails apps are the subject of this chapter.

Much of that performance comes from view caching, letting you specify that anything ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required