Latency vs Throughput
Understanding response time vs processing capacity and why tail latency (p99) matters
Difficulty: Beginner · Read time: 7 min · Access: Step-1 Preview + Knoera Pro
How It Works
Latency is the time it takes a single request to travel through a system and complete (measured in milliseconds, `ms`). Throughput is the volume of operations or bytes a system processes per unit of time—measured in Requests Per Second (RPS), Queries Per Second (QPS), or Megabytes per Second (MB/s). Optimizing one does not automatically improve the other: batching boosts throughput while slightly increasing per-item latency.
Why It Matters
A system can look fast for 1 isolated user yet suffer severe 99th-percentile (`p99`) tail latency under concurrency when request queues build up—governed by Little’s Law (`L = λ × W`). Tracking only average (mean) latency hides catastrophic slowdowns affecting your highest-value power users.
Interactive Architecture Scenarios
- Low Latency vs High Throughput Batching
- Failure Mode: Unbounded Queue & Tail Latency Collapse