tezvyn:

Mean or median for API response times?

Source: bravenewgeek.combeginner

Tests if you know latency is skewed and outlier-sensitive. Pick median over mean because hiccups distort the mean, but note median hides tail latency. Advocate for p95, p99, and max. Red flag: defending mean as representative or ignoring tail behavior.

Tests your grasp of skewed distributions and operational reality. A strong answer chooses median over mean because API latency is multi-modal with hiccups (GC pauses, VM stalls) that render the mean meaningless. Immediately pivot to the bigger issue: median alone is a marketing metric that hides tail latency. You must report percentiles, especially p95, p99, and maximum, because request fanout makes tail events common. Red flag: claiming mean is fine for SLA reporting or dismissing max as noise.

Read the original → bravenewgeek.com

Get five bites like this every day.

Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.

Mean or median for API response times? · Tezvyn