5. Latency vs Throughput
Interview questions
Interview questions (with the counter-questions you'll get)
Q1. What's the difference between latency and throughput?
They're testing: clean definitions and how they relate.
Think about your answer first, then open it.
Q2. Why use percentiles instead of the average?
They're testing: whether you've debugged real latency.
Think about your answer first, then open it.
Q3. What is tail latency, and how do you reduce it?
They're testing: depth on a known hard problem.
Think about your answer first, then open it.
Q4. State Little's law and use it.
They're testing: a practical formula under pressure.
Think about your answer first, then open it.
Q5. Why does latency shoot up when a server gets busy?
They're testing: queueing intuition.
Think about your answer first, then open it.
Q6. Your API's p99 jumped from 200 ms to 2 seconds, but p50 didn't change. What do you look at?
They're testing: debugging the tail.
Think about your answer first, then open it.
Q7. How would you reduce the latency of a page that calls five services one after another?
They're testing: practical optimisation thinking.
Think about your answer first, then open it.
Q8. How would you increase the throughput of a service?
They're testing: bottleneck thinking.
Think about your answer first, then open it.
Q9. What's the difference between bandwidth and throughput, and between bandwidth and latency?
They're testing: precise vocabulary.
Think about your answer first, then open it.
Q10. Give an example where improving throughput hurts latency.
They're testing: trade-off awareness.
Think about your answer first, then open it.