Talks
Speakers
Events
Topics
Sign in
Home
Talks
Speakers
Events
Topics
Leaderboard
Use
Analytics
Sign in
Suggest modification to this talk
Title
Description
".. and then cache the hell out of it!" This is usually how the talk ends when it comes to rails performance tips, but in reality it is where the fun starts. This talk goes way beyond Rails.cache, it explores layered caches, discusses the CPU cost of marshaling, the latency even Memcache adds and how to dodge the unavoidable stampedes that invalidating your caches will cause. This is the tale of how to survive half a billion requests per day with Rails and MySQL (hint: don't query it). Simon took his experience from 12 years of freelancing for various companies around the globe and working with a very diverse set of technologies to build his dream team at SponsorPay and work with the language he loves - Ruby. Help us caption & translate this video! http://amara.org/v/FG19/
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
In this presentation titled "What the Cache?!" at RailsConf 2014, Simon Kröger explores advanced caching techniques to enhance the performance of Ruby on Rails applications. As he reflects on his experiences managing a high-traffic service that handles over half a billion requests daily, Simon emphasizes that effective caching is crucial for maintaining performance, especially when dealing with a significant load on the database. The key points discussed include: - **Layered Caching Strategies**: Simon explains the importance of building a caching architecture that can operate across different layers to optimize request handling and reduce database loads. - **Understanding CPU Costs**: He highlights the overhead associated with marshalling objects, stressing that even small inefficiencies can compound under heavy traffic. - **Preventing Cache Stampedes**: Simon shares insights on how to avoid issues where multiple requests flood the database simultaneously, especially when cache entries are invalidated. He details their approach using algorithms to manage request queues and minimize database hits through effective caching. - **Implementation Examples**: He illustrates how they implemented versioning for cache management, ensuring that users consistently receive the most current data without overwhelming the database. - **Tools and Techniques**: Simon discusses specific tools and practices, such as using Memcache efficiently and employing inter-process communication to synchronize cache updates among multiple app servers. - **Performance Trade-offs**: He concludes by addressing the balance between data consistency and application performance, emphasizing the necessity of a tailored caching strategy that fits their specific case of heavy traffic. By the end of the talk, Simon provides valuable takeaways for developers looking to improve the performance of their Rails applications, particularly in high-traffic scenarios, advocating for layered cache architectures and smart resource management as essential practices for success.
Suggest modifications
Cancel