Rails Business

Nate Berkopec

Episode 23

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 Speedshop
00:45 Nate's Early Career and Interest in Performance
03:36 The Impact of Nate's Conference Talk and Book
04:40 Challenges in Diagnosing Performance Issues
10:22 Framework for Tackling Performance Problems
17:27 Understanding Heroku's Load Balancing
27:39 Understanding TCP Open Failures
28:10 Optimizing Dynos on Heroku
29:16 Setting Performance Thresholds
31:12 The Importance of Monitoring and Automation
34:25 Challenges with Sidekiq and Data Processing
36:24 Best Practices for Sidekiq Queues
44:48 Ensuring Job Idempotency and Efficiency
49:26 Rapid Fire Tips for Indies
52:41 Conclusion and Final Thoughts

LINKS

- 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 Bluesky

Questions or comments, email us at railsbusinesspod@gmail.com

Send us a text

Podcasts we love

Check out these other fine podcasts recommended by us, not an algorithm.

Code with Jason Artwork

Code with Jason

Jason Swett
Standing in the Fire Artwork

Standing in the Fire

Very Good Software
Remote Ruby Artwork

Remote Ruby

Chris Oliver, Andrew Mason
IndieRails Artwork

IndieRails

Jess Brown & Jeremy Smith