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 ...

Get The Rails 5 Way, Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.