Repaso
Español
MLOps & servingIntermediateMLO-24

The average latency of a model service is fine, but users complain about slow responses. What do you look at?

Options

  1. The average only: it is fine
  2. The size of the training data
  3. The accuracy of the model
  4. Percentile latencies (p95, p99) broken down by stage: queueing, feature lookup, preprocessing and model (Correct option)

Answer

Percentile latencies (p95, p99) broken down by stage: queueing, feature lookup, preprocessing and model

Why

The average hides the slow tail: a few percent of requests can be many times slower and still leave the mean looking good, while every user meets them sometimes.

Break the time down by stage. Typical culprits are cold starts, waiting in the batching queue, a slow feature lookup, garbage collection and noisy neighbours.

Set the service-level target on a percentile, such as p99 below 300 ms.

Remember

Averages hide the tail: use percentiles by stage.

Key terms

Practice this question in Repaso