Debugging Python Cold Starts with Sentry Profiling and improving our P99 latency by several seconds
What's this blog post about?
Sentry, a company that builds debugging tools for developers, used its own platform to solve a performance issue causing significant latency spikes in their critical infrastructure. The problem was traced back to a classic cold start problem due to Python's lazy import system. By enabling profiling and warming up uWSGI workers, they reduced P99 response times from 2.4 seconds to 176 milliseconds for RPC endpoints.
Company
Sentry
Date published
Nov. 7, 2024
Author(s)
Josh Ferge
Word count
618
Hacker News points
None found.
Language
English