Rails Performance monitoring: A primer for developers
summary
Covers concrete tools and fixes: APMs like New Relic, Datadog and Scout APM show request queue time (healthy 20–50ms, example spike to 10,000ms) and top transactions; use rack‑mini‑profiler locally, Benchmark‑IPS for before/after measurements. Presents actionable fixes: replace product.all with find_each, prefer size over count to avoid N+1s, push work to background jobs, set third‑party timeouts ~2s, and add DB indexes (example explain cost drops from 2440 to 8.44).
AI-written summary · about
chapters (7)
- 0:00Introduction and speaker background
- 3:09Rails performance misconceptions
- 7:24APM tools overview
- 13:39Profiling with rack mini profiler
- 16:08Benchmarking performance changes
- 18:40Common Rails performance mistakes
- 27:36Q&A on performance monitoring
related talks
26mRails Performance Monitoring 101: A Primer for Developers
32mRails Performance First Aid
35m"10 performance sins of Rails applications"
21mBuilding a Performance Analytics Tool with ActiveSupport
39mProfiling and Benchmarking 101
01h 02mPerformance
14mDatabase Performance at Scale for RoR Applications
32mWhat’s my App *Really* Doing in Production?
