Talks
Speakers
Events
Topics
Sign in
Home
Talks
Speakers
Events
Topics
Leaderboard
Use
Analytics
Sign in
Suggest modification to this talk
Title
Description
RubyConf AU 2016: Many developers are complaining that rails is slow, but most teams are not tuning performance at all or not properly, in this talk, you will learn how to monitor performance, how to find out performance issue and how to fix, I will also show you some tips that can dramatically improve your rails apps' performance.
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 his talk at RubyConf AU 2016, Richard Huang addresses the prevalent issue of performance optimization in Ruby on Rails applications. He emphasizes that many developers overlook performance tuning, despite Rails applications often being perceived as slow. The presentation aims to provide strategies for monitoring performance, identifying bottlenecks, and implementing effective fixes to enhance Rails apps. **Key Points Discussed:** - **Frontend Optimization:** - Focus on minimizing HTTP requests by concatenating CSS and JS files. - Utilize Gzip compression for CSS and JS to significantly reduce file sizes. - Avoid unnecessary cookies in requests by serving assets from a different domain and leverage Content Delivery Networks (CDNs) for speed. - Position JavaScript at the end of the HTML to improve page rendering times. - **Backend Optimization:** - Importance of backend performance monitoring, especially during traffic spikes. - Utilize performance monitoring tools such as New Relic or Skylight to discover bottlenecks and analyze response times for web transactions. - Reproduce performance issues in a local environment to test fixes effectively. - Address common backend issues like the N+1 query by implementing eager loading with Rails’ 'includes' method, and create counter caches to improve query efficiency. - **Performance Improvement Practices:** - Execute batch operations like bulk inserts and updates to decrease the number of SQL transactions. - Use caching strategies to maintain performance while reducing database hits, including Rails fragment caching. - Opt for faster JSON parsing libraries to enhance API response times. - Implement memory optimization techniques to manage object allocations better and reduce garbage collection frequency. **Conclusion:** Richard Huang stresses the importance of a comprehensive approach to both frontend and backend optimizations. Continuous monitoring, effective reproduction of issues, and robust benchmarking for performance testing are essential processes in maintaining healthy Rails applications. Developers are encouraged to apply the discussed tips and tools to sustain and improve application performance effectively. The demo code is available on GitHub for further exploration and practical understanding of these performance insights.
Suggest modifications
Cancel