DeadBro Blog
Thoughts on Rails, performance monitoring, and building tools for developers.
12 min read
You Added Rails Caching. Is It Actually Working?
You wrapped the slow partial in a cache block. You moved the expensive dashboard query into Rails.cache.fetch. You deployed, opened the page, and it's… about as slow as before.Caching is one of the most effective performance tools Rails gives you, and also one of the easiest to get quietly wrong. A cache that never ...
5 min read
Your Rails Job Is Fast. Why Did It Start 20 Minutes Late?
Your signup email job takes 180 milliseconds. The email arrives 20 minutes after signup. You optimize the mailer, shave 40 milliseconds off its run time, and the customer still waits 20 minutes.The missing number is queue wait time: how long the job sat between becoming ready to run and a worker starting it. A fast ...