KatInterview

Troubleshooting a Distributed Cache Degradation Incident

System DesignModel answer
HardModel answerSystem Designcachingincident-responsedistributed-systems

Last updated

Walk through an end-to-end incident response plan for high cache misses and service latency, covering triage, observability, hypothesis testing, mitigations, and post-incident RCA.

You are an engineer on call and get paged for a critical alert: system-wide API latency has spiked (p99 exceeds SLO), accompanied by a sharp decline in cache hit rates and elevated cache misses.

Describe your step-by-step approach to handling and resolving this incident. In your response:

  1. Detail the initial clarifying questions and metadata you need to gather.
  2. Outline the immediate triage actions to prevent cascading failures to underlying data stores.
  3. Detail the key telemetry signals (application, engine, host, and network level) you will evaluate across single nodes versus aggregated clusters.
  4. Formulate hypotheses for potential root causes (such as TTL anomalies, memory pressure, hot keys, thundering herds, hash ring rebalancing, replication delay, or client-side connection issues) and specify how you would prove or disprove each one using concrete metrics.
  5. Provide immediate operational mitigations to restore service health, followed by permanent architectural protections.