Skip to content

Capacity Estimation

Before a system is built, someone has to say how big it must be, and the answer comes from arithmetic that fits in a few lines: how many requests per second at the peak, how many bytes to store, how fast a link, and what the month’s bill will be. This module teaches that arithmetic, and the ways it goes wrong: a peak taken as the average, a retention that is forgotten, a byte mistaken for a bit, and a rounding that multiplies.

You will turn users into a peak request rate and size a fleet at a utilisation target, estimate storage and watch it level off at the retention, size a link and a month’s transfer, see what rounding to powers of ten costs, and put prices on the quantities to get a bill and a cost per million requests. One running example, the shop of the first module, carries through the lessons, and the prices in the cost lesson are round numbers in no currency. Every lesson has a “what happens if” moment.

  1. Requests per second and peak traffic (15 min). From users to a request rate, why a system is sized for the peak, and how many instances that takes.
  2. Storage and retention (16 min). Events times size, copies and days kept, why storage stops growing, and what doubling the retention does.
  3. Bandwidth: link speed and monthly transfer (16 min). The link at the peak, the month at the average, and why bits are not bytes.
  4. Estimating by powers of ten (18 min). Rounding to the nearest power of ten, what it costs when every number is rounded, and how to check an estimate.
  5. Cost estimation: from users to a bill (20 min). Quantities times prices, a cost per million requests, and which line of the bill to look at first.
  6. Recap and quiz (12 min). The module in one page, a list for estimating a system in order, and a quiz.
  • Turn users and requests per user into an average and a peak rate, and say how many instances the peak needs at a target utilisation.
  • Estimate the storage a stream of data needs, and say why it settles at the daily volume times the retention.
  • Size a link in bits per second at the peak, and a month’s transfer in bytes at the average.
  • Round to powers of ten, say how far off that can be, and check an estimate by a second route.
  • Price the quantities into a monthly bill, and find which line and which decision move it most.

All the numbers in the labs and calculators are illustrative. They are for comparing choices, not for forecasting any real product.

Built by GhaziAlibi.

© ShardCraft. All rights reserved.