Tutorials

rack-mini-profiler - the Secret Weapon of Ruby and Rails Speed
rack-mini-profiler is a powerful Swiss army knife for Rack app performance. Measure SQL queries, memory allocation and CPU time.rack-mini-profiler is a a performance tool for Rack applications, maintained by the talented @samsaffron. rack-mini-pro...



How Changing WebFonts Made Rubygems.org 10x Faster
I’m passionate about fast websites. That’s a corny thing to say, I realize - it’s something you’d probably read on a resume, next to a description of how “detail-oriented” and “dedicated” I am. But really, I love the web. The openness of the Web h...

How to Measure Ruby App Performance with New Relic
New Relic is a great tool for getting the overview of the performance bottlenecks of a Ruby application. But it's pretty extensive - where do you start?It’s 12pm on a Monday. Your boss walks by: “The site feels…slow. I don’t know, it just does.” H...

Malloc Can Double Multi-threaded Ruby Program Memory Usage
It’s not every day that a simple configuration change can completely solve a problem.I had a client whose Sidekiq processes were using a lot of memory - about a gigabyte each. They would start at about 300MB each, then slowly grow over the course ...


Rails API with a frontend built in React, Part I.
When I was learning react I was kind of disappointed because I could not get a good tutorial on how to integrate rails with react. The only ones I found were using everything inside of rails(building a regular based rails app with webpacker and re...
