A production endpoint's latency doubled overnight. Walk me through your investigation.
SituationalFull Stack DeveloperSoftware EngineerDevOps EngineerFirst, I would check the monitoring tools to identify any spikes in traffic or errors that occurred around the time the latency doubled. Next, I would analyze the database performance, looking for slow queries or locking issues. If no issues are found there, I would examine the application code for recent changes that might have introduced inefficiencies.
In parallel, I would consider the infrastructure, checking for resource saturation on servers or network bottlenecks. Once I identify the root cause, I would implement a fix and monitor the endpoint’s latency to ensure it returns to normal levels. Success would be judged by latency metrics stabilizing back to baseline and ensuring no new issues arise post-fix.