Upgrade to Puma 7 and Unlock the Power of Fair Scheduled Keep-alive
heroku.com·18h·
Flag this post

Puma 7 is here, and that means your Ruby app is now keep-alive ready. This bug, which existed in Puma for years, caused one out of every 10 requests to take 10x longer by unfairly “cutting in line.” In this post, I’ll cover how web servers work, what caused this bad behavior in Puma, and how it was fixed in Puma 7; specifically an architectural change recommended by MSP-Greg that was needed to address the issue.

Bar graph showing response times measured in seconds over two days, with a red arrow pointing to a response time spike at 7:00 p.m. labeled “7:00 p.m. ET.

For a primer on keep-alive connections: wha…

Similar Posts

Loading similar posts...