In this episode, Nate Berkopec, the proprietor of Speedshop, a Ruby on Rails performance consultancy, author of several books including the Complete Guide to Rails Performance, and a maintainer of Puma, joins the podcast. Nate discusses his journey into Rails performance optimization, starting from his early career at startups and his breakthrough talk at the Gotham Ruby Conference. He outlines his 'Three S' framework—Speed, Scalability, and Stability—for tackling performance issues. The discussion includes practical advice for Heroku users on optimizing 'dynos' for better request queuing and performance, as well as insights on using tools like JudoScale and PG Analyze for better Sidekiq job management and database optimization. Nate also touches on the importance of setting proper performance thresholds to balance system efficiency and operational costs.00:00 Introduction to Nate Berkopec and Speedshop00:45 Nate's Early Career and Interest in Performance03:36 The Impact of Nate's Conference Talk and Book04:40 Challenges in Diagnosing Performance Issues10:22 Framework for Tackling Performance Problems17:27 Understanding Heroku's Load Balancing27:39 Understanding TCP Open Failures28:10 Optimizing Dynos on Heroku29:16 Setting Performance Thresholds31:12 The Importance of Monitoring and Automation34:25 Challenges with Sidekiq and Data Processing36:24 Best Practices for Sidekiq Queues44:48 Ensuring Job Idempotency and Efficiency49:26 Rapid Fire Tips for Indies52:41 Conclusion and Final ThoughtsLINKS- Speedshop- Nate's X/Twitter- The Complete Guide to Rails Performance Book- Sidekiq in Practice Book- High Availabillity Wikipedia Article- Ryan's Website- Brendan's X/Twitter- Brendan's BlueskyQuestions or comments, email us at
[email protected] us a text