StackGrab

Stage 4 · Recap

What stuck?

A few checks to make the ideas yours, then the next stop on the route.

What to remember

  • Report percentiles, not just averages; the tail is what users feel.
  • Watch utilization: the closer to 100%, the more small changes in traffic amplify latency.
  • Throughput plateaus at capacity; extra load becomes queueing or errors instead of useful work.
  • Use Little's Law to cross-check latency, queue depth, and arrival rate against each other.

Quick check

0 of 6 answered

All 6 questions are here so you can see the climb from recall to challenge. Answer them, then check. 4 of 6 passes; you can retry with new questions. No penalty for guessing.

  1. Warm-up
    1.Why can a single average latency be misleading?
  2. Warm-up
    2.What does the p99 tell you?
  3. Apply
    3.Using nearest-rank with 100 sorted samples, which position is the p95?
  4. Apply
    4.A worker can serve 100 req/s and currently receives 50 req/s. What is its utilization?
  5. Challenge
    5.In an M/M/1 queue with service rate μ = 100/s, arrival rate λ rises from 50/s to 90/s. What happens to the mean time in the system?
  6. Challenge
    6.Little’s Law: 200 requests arrive per second and each spends 5 ms in the system on average. How many requests are in the system on average?
09

Next lesson

Vertical vs horizontal scaling; stateless services

Continue the journey →