Code that works in staging and fails in production is expensive. Not just frustrating. Your QA environment needs the same hardware, network topology, and configuration drift that production has. Otherwise you're testing a fantasy version of your system.