Debug a Latency Spike
Talk it through out loud with your AI coach.
The problem
- hard
- Pro
Your API's slowest one percent of requests jumped from two hundred milliseconds to three seconds an hour ago, while the average barely moved. Walk through how you'd investigate using metrics, logs and traces.
What a strong answer covers
- Why the average can stay flat while the slowest requests get much worse.
- Looking for what changed around the time the problem began.
- Slicing the data to find what the slow requests have in common.
- Following individual slow requests to see where the time goes.
Common mistake: Looking only at the average and concluding nothing is wrong, or guessing at causes without narrowing down first.
Knowing this is half of it. Saying it clearly out loud is the part the coach helps you practise.
Practise it out loud