Lesson 8 of 19
2. Back-of-Envelope Estimation

2.7 Why size for the peak, not the average?

3 min read+10 XP

At the wedding: Guests don't arrive evenly from morning to night. Everyone walks in around 1 pm. A kitchen sized for the "average plates per hour" collapses at lunch.

In the system: Traffic follows people's day. It's quiet at night and spikes when people are free, and big events (a sale, a cricket final, a results day) can spike it far higher.

traffic over a day: the average line is far below the evening peak.

Figure: the average is what your daily total gives you. The peak is what your servers must survive.

  • Peak factor: peak traffic ÷ average traffic.
  • If you don't know it, assume 2 to 3 times the average for normal daily patterns, and say so.
  • For known events (flash sales, ticket openings at a fixed time), ask the interviewer. Those peaks can be many times higher, and they're often the whole point of the question (Chapter 43, Tatkal).

PicShare: average 5,800 reads a second × 3 = about 17,400 at peak. That's the number you design servers and caches for.

Memory code: "Plan for 1 pm, not the daily average."