Response Time SLA Breach

Goal Real Time Performance Frequency Common Category Operations Published View source on GitHub ↗

Issue: System Exceeds Latency Commitments

Frequency: Common

Symptoms

  • User-facing latency exceeds promised SLA
  • Customer complaints about slow responses
  • Timeout errors in downstream systems
  • Degraded user experience scores

Root Cause System design doesn’t account for real-world latency distribution. P50 may be acceptable but P99 exceeds SLA. Load spikes, model complexity, or infrastructure issues push response times beyond commitments.

Example

SLA: 95% of requests under 2 seconds

Actual performance:
- P50: 800ms ✓
- P90: 1.8s ✓
- P95: 3.2s ✗ (SLA breach)
- P99: 8.5s ✗✗

Root causes:
- Complex queries hit P99: long context, multi-tool
- Peak hours: 3x normal latency
- Cold starts after scaling events

Contributing Factors

  • No latency budgeting across components
  • Testing only happy path scenarios
  • Not accounting for tail latency
  • Missing load testing at scale
  • Infrastructure not right-sized

Eval Recipes

Test Cases

TestInputExpectedFailure Indicator
Load test at 2x trafficSustained loadP95 < SLAP95 exceeds SLA
Complex query latencyMulti-tool query< 3s> 5s
Peak hour simulationSpike trafficGraceful degradationCascading failures

Metrics

MetricTargetHow to Measure
P95 response time< SLAPercentile tracking
SLA compliance rate> 99%(requests under SLA) / total
Latency varianceLowstddev of response times

Mitigation Strategies

Prevention

  1. Latency budgeting: Allocate time budget per component
  2. Tail latency design: Design for P99, not P50
  3. Load testing: Regular tests at 2-3x expected load
  4. Graceful degradation: Fallback to faster, simpler responses
  5. Right-sizing: Match infrastructure to latency requirements

Detection

  • Real-time percentile monitoring
  • SLA compliance dashboards
  • Anomaly detection on latency distribution

Recovery

  • Auto-scaling triggers
  • Circuit breakers for slow dependencies
  • Request shedding under extreme load

Production Signals

Key Metrics

MetricAlert Threshold
response.latency.p95> SLA target
response.latency.p99> 2x SLA target
sla.compliance.rate< 99%

Alerts

AlertConditionSeverity
SLA BreachP95 > SLA for 5 minP1
Latency DegradationP50 > 2x baselineP2
Tail Latency SpikeP99 > 3x P50P2

References