Rails Performance: When is Caching the Right Choice?
Is Caching the Right Way to Speed Up Your Ruby on Rails App?
We’ve all been there. You’re clicking around your Rails application, and it just isn’t as snappy as it used to be. You start searching for a quick-fix and find a lot of talk about caching. Take your existing app, bolt on some caching, and voila, a performance boost with minimal code changes. However, it’s not this simple. Like most quick fixes, caching can have long-term costs. In this article, we will discuss what caching is and what can go wrong, as well as explain non-caching strategies you can use to speed up your Rails app.