Talks
Speakers
Events
Topics
Sign in
Home
Talks
Speakers
Events
Topics
Leaderboard
Use
Analytics
Sign in
Suggest modification to this talk
Title
Description
Snappiness is an important key for any successful webpage. Most companies try to achieve responsive webshops by scaling their hardware big time. But Rails in combination with Nginx, Memcached and Redis is the key to deliver webpages very fast with a minimal amount of hardware. This talk will start with the basics of DHH's russian doll idea but will raise the bar than quite a bit. How can we combine fragment caching, page caching and HTTP caching to deliver personalized webshop pages for logged in users? How much brain can be delegated to Redis or the Webbrowser? Harddrive space is cheap. So use it! You'll get to know how to plan your data structure and where to use Memcached vs. Redis. Include the cache in the beginning of your development and not in the end. To make things a bit more interesting everything is replayed on a Raspberry Pi to show how much difference intelligent caching can make on any hardware. Save big time and get more clients with a faster web application! Help us caption & translate this video! http://amara.org/v/FGaf/
Date
Summarized using AI?
If this talk's summary was generated by AI, please check this box. A "Summarized using AI" badge will be displayed in the summary tab to indicate that the summary was generated using AI.
Show "Summarized using AI" badge on summary page
Summary
Markdown supported
The video titled "Cache=Cash!" presented by Stefan Wintermeyer at Rails Conf 2013 explores the critical role of caching in web applications, particularly those built with Ruby on Rails. Wintermeyer discusses how effective caching strategies can significantly improve webpage loading times and reduce server costs. The talk is structured into three key sections: reasons for implementing caching, methods to achieve efficient caching, and how to optimize down to the last mile for performance improvement. ### Key Points Discussed: - **Importance of Caching:** - Caching is vital for cost-saving; it allows companies to deliver web pages faster without necessarily scaling hardware. - A snappy web application enhances user experience, influencing user behavior over time. - **User Behavior and Performance:** - Examples from Google and Bing show that even minor delays (e.g., 100 milliseconds) can disrupt user engagement significantly. - Aiming for a load time of less than 1000 milliseconds is essential to keep users satisfied. - **Use of Low-Cost Hardware:** - Wintermeyer shares his experiment using a Raspberry Pi to demonstrate how effective coding can optimize performance even on inexpensive hardware. - **Fragment and HTTP Caching:** - He elaborates on strategies like fragment caching (caching parts of the webpage) and HTTP caching (using ETags and Last-Modified headers) to avoid unnecessary rendering of HTML. - Efficient database structure is crucial for effective caching. - **Calculating Success:** - An automated script is employed to demonstrate the performance before and after optimizing various caching strategies, revealing significant runtime improvements. - **Closing Remarks:** - Wintermeyer recommends implementing fragment and HTTP caching for existing applications and exploring Ember.js for new applications to enhance performance further. ### Main Takeaways: - Integrating caching from the start of development is vital; optimizing after deployment can lead to missed opportunities. - Companies can save costs and improve user experience significantly by adopting smart caching strategies such as fragment caching and HTTP caching. - The potential for serious performance gains exists, showing that sophisticated caching can yield faster, more responsive web applications even on low-cost hardware.
Suggest modifications
Cancel