DEV Community

Stas Leonov
Stas Leonov

Posted on

How I Used GoReplay to Test Production Traffic Without Breaking Things

Testing production traffic against staging is honestly one of the hardest parts of my job. You can write unit tests all day, but nothing compares to seeing how your code actually handles real requests. The problem is that staging usually just sits there with synthetic data, so bugs slip through until they hit customers.

That's where goreplay came in for me. It's an open source tool that basically sits on your production server and captures live HTTP traffic, then replays it against your staging environment. The best part is how minimal the setup is—no sidecars, no changes to your application code, just point it at your server and it works. I can run shadow tests to see if my changes break anything, load test staging with actual production patterns, or debug weird edge cases that only happen with real data.

The team that maintains it clearly understood what ops people actually need. It's been solid for catching issues before they reach customers, and the fact that it's open source means I can tweak it if I need to. If you're tired of guessing whether your staging setup is realistic enough, this is worth setting up.

Check it out: goreplay.org

Top comments (0)