Estimation That Changes the Design

Topics Covered

Why Estimate at All

Estimates exist to make decisions

What interviewers look for

When to estimate and when to skip

How long it should take

Rounding is a skill, not a shortcut

Say assumptions as you go

Writing the estimate down

A short example of estimation done well

An example of estimation done badly

Estimation as a habit across the interview

The Core Estimates

From users to requests per second

From items to storage

Bandwidth

Memory for a cache

Servers

Database write capacity

Putting it together

Checking for surprises

A second worked example: a ride sharing location service

Estimating with ranges

Reference Numbers Worth Knowing

Latency numbers

Throughput of common components

Capacity of a single machine

Sizes of common items

Time units

Availability numbers

Using reference numbers in the interview

When you do not know a number

Keeping the list small

Building your own reference table

Numbers change over time

A sample exchange using reference numbers

One more conversion worth memorising

From Numbers to Decisions

Does it fit on one machine?

Do reads need a cache?

Do writes need partitioning or buffering?

Does media need its own path?

Do spikes need special handling?

Is the system expensive in an unusual way?

Saying the conclusion

Revisiting decisions when numbers change

Numbers as a shared reference

Decisions the numbers rule out

When the decision is close

Estimation in Practice

A full worked estimate

Common mistakes

A routine for every interview

Estimates when the interviewer gives numbers

Estimates and cost

When the numbers are uncertain

Practising estimation

A checklist to keep in mind

How estimation connects to the next steps

What a strong estimate leaves behind

Back of the envelope estimation has a reputation as the part of the system design interview where candidates do arithmetic to prove they can. That reputation is misleading. The point of estimating is not the arithmetic. It is the handful of decisions the numbers let you make with confidence: whether you need a cache, whether the data fits on one machine, whether writes must be partitioned, whether media belongs in object storage, whether traffic spikes need a queue. If an estimate does not change any of those decisions, it is not worth doing.

This lesson shows how to estimate quickly, which numbers matter, which reference values to keep in your head, and how to turn each number into a decision the interviewer can see.

Estimates exist to make decisions

The test for any estimate is the same as for a clarifying question: would a different answer change the design? Requests per second matters because it decides how many servers you need and whether a single database can handle the writes. Total storage matters because it decides whether data fits on one machine and which storage tier to use. The read to write ratio matters because it decides whether caching and read replicas are worth the complexity. The size of each item matters because large binary items belong in object storage, not in a database row.

Each number you estimate should lead to a decision.

By contrast, the exact number of bytes in a user record, the precise network bandwidth to three significant figures, or the number of servers to the nearest unit rarely change anything. Interviewers notice when candidates calculate numbers that lead nowhere. It looks like process for its own sake.

What interviewers look for

Interviewers look for three things in estimation. First, that you can produce reasonable numbers quickly, using rounding and known reference values. Second, that you connect the numbers to decisions without being prompted. Third, that you notice when a number is surprising and adjust the design: this is far more storage than I expected, so we need a different tier for old data. Arithmetic accuracy matters much less than any of these. Being off by a factor of two is fine. Being off by a factor of a thousand, or computing numbers you never use, is what hurts.

When to estimate and when to skip

Not every interview needs a full estimate. If the scale is obviously small, an internal tool for a thousand employees, a sentence is enough: at this scale, one server and a single database are plenty, so I will not estimate in detail. If the scale is obviously enormous and you know the decisions it implies, you can state them directly: at hundreds of millions of daily users, reads must be cached and writes partitioned, so let me estimate just the numbers that size the partitions. Some interviewers explicitly say skip estimation. Others want to see it done carefully. If you are unsure, ask briefly: would you like me to go through the numbers, or shall I state the scale assumptions and move on?

How long it should take

In a forty five minute round, estimation usually takes two to four minutes. That is enough for four or five numbers: users and actions, requests per second at average and peak, storage per year, and perhaps bandwidth or memory for a cache. If a problem is mostly about scale, such as a metrics pipeline or a web crawler, give it a minute or two more, because the numbers decide almost every component. If it is mostly about correctness, such as a payments ledger, give it less, because the numbers are usually modest.

Rounding is a skill, not a shortcut

Good estimators round aggressively and consistently. A day has about a hundred thousand seconds, not 86,400. A month is about thirty days, and a year is about four hundred days if it makes the arithmetic easier, or three hundred and sixty five if not. A million is ten to the sixth, a billion ten to the ninth. Round each input to one significant figure, multiply the powers of ten, and keep track of the units. The result is usually within a factor of two of the precise answer, which is more than enough to make the decisions above.

Rounding also makes the estimate easy for the interviewer to follow. Ten million users times ten actions is a hundred million actions per day, divided by a hundred thousand seconds is a thousand per second. Anyone can check that in their head. An estimate with 86,400 in the denominator is harder to follow and no more useful.

Say assumptions as you go

Every estimate rests on assumptions: how many users are active each day, how many actions each takes, how large each item is, how long data is kept. State each one as you use it, and invite correction. I will assume ten million daily active users, each posting once a day and reading about fifty posts. If those numbers are off for what you have in mind, let me know. Stated assumptions make the estimate auditable. If the interviewer disagrees with one, you change one input rather than redoing everything.

Writing the estimate down

Write the main numbers on the board in the area you reserved for them, each with its unit, and write the conclusion next to it. Five thousand writes per second at peak, one primary can handle it. Fifty thousand reads per second, cache needed. Twenty terabytes per year, partition after year two. Those lines become anchors you will point at during the design. When you add a cache, you point at the read rate. When you decide on partitioning, you point at the storage. Without the written numbers, those justifications are only words.

A short example of estimation done well

Here is how a strong candidate opens the estimate for a news feed prompt.

Interview Dialogue

CandidateBefore I draw anything, let me spend two or three minutes on numbers, because they decide whether we need a cache and whether posts must be partitioned. Is that all right, or would you rather I state assumptions and move on?
InterviewerClick to reveal answer
CandidateI will assume twenty million daily users, each opening the feed about ten times and posting about once every five days. That is two hundred million feed reads a day, about two thousand per second on average and maybe six thousand at peak. Posts are about four million a day, around forty per second, perhaps a hundred and fifty at peak.
InterviewerClick to reveal answer
CandidateReads outnumber writes by about fifty to one, so feed reads need a cache. Writes are tiny, so a single primary handles them for years. I will write both numbers here and come back to them when I choose the feed strategy.
Show all answers

The whole exchange takes about ninety seconds. The candidate asked whether to estimate, stated each assumption, kept reads and writes apart, rounded freely and ended with two decisions. Nothing in it is mathematically difficult. What makes it strong is that every number was chosen because it leads somewhere.

An example of estimation done badly

Compare a weaker version of the same moment. The candidate writes 86,400 on the board, divides two hundred million by it on paper, arrives at 2,314.8 reads per second, then moves on to compute bandwidth in megabits for text posts, then the size of a user record in bytes. Four minutes pass. When the interviewer asks what the numbers mean for the design, the candidate says they show the system is large. None of the arithmetic was wrong, yet the interviewer learned almost nothing, because no number was connected to a decision. The difference between these two candidates is not mathematical skill. It is knowing why the numbers are being computed.

Estimation as a habit across the interview

Estimation is not confined to the minutes after requirements. Strong candidates estimate quickly whenever a decision comes up later. During the deep dive, how many connections would a single notification server hold if every online user keeps a socket open? During failure handling, how long would replaying a day of events take at the consumer's throughput? These small, targeted estimates are often more impressive than the opening one, because they show the habit of checking a design against numbers rather than performing a ritual at the start.

Ask before a long estimate

If you cannot tell whether the interviewer wants detailed numbers, ask in one sentence: would you like me to go through the numbers, or state the scale assumptions and move on? Either answer saves time, and asking shows you are managing the session.

Most design interview estimates follow the same few patterns. Once you have practised them, each takes thirty seconds. This section walks through the main ones: traffic, storage, bandwidth and memory for caching, with a worked example of each.

From users to requests per second

Start with daily active users and the number of times each user performs the main actions per day. Multiply to get actions per day. Divide by a hundred thousand seconds to get the average rate per second. Then multiply by a peak factor to get the peak rate. For consumer products, the daily peak is usually two to three times the average, sometimes five.

From daily users to requests per second in two steps.

For example, a social app with ten million daily active users, each reading their feed ten times a day, gives a hundred million feed reads a day. Divided by a hundred thousand seconds, that is about a thousand reads per second on average, and perhaps three to five thousand at peak. If each user posts once every two days, there are five million posts a day, about fifty per second on average and a couple of hundred at peak. The read to write ratio is about twenty to one.

Do the reads and writes separately. They usually differ by one or two orders of magnitude, and they drive different decisions. Reads decide caching and replicas. Writes decide whether a single primary is enough and whether you need to partition.

From items to storage

Storage is items per day, times size per item, times days of retention, times the number of copies. For a photo sharing service with a million new photos a day at about two megabytes each, that is two terabytes a day. Over five years, roughly three and a half petabytes. With three copies for durability, about eleven petabytes.

Storage is items, times size, times time, times copies.

That number makes several decisions obvious. Photos belong in an object store, not a database. Old photos that are rarely viewed should move to a cheaper storage class. The metadata, perhaps a kilobyte per photo, is about a terabyte over five years, which fits comfortably in a replicated database, possibly partitioned for write volume rather than size.

Separate the binary content from the metadata in every storage estimate. They are often six orders of magnitude apart and belong in completely different systems.

Bandwidth

Bandwidth is the request rate times the size of each response. For the photo service, if users view a hundred million photos a day at an average served size of two hundred kilobytes, after resizing for screens, that is twenty terabytes a day of egress, about two hundred megabytes per second on average and perhaps a gigabyte per second at peak. That is far more than a few servers should serve directly, which justifies a content delivery network. Bandwidth estimates are mainly useful for media heavy systems. For text APIs they are usually small enough to ignore.

Memory for a cache

If you plan to cache, estimate how much memory the hot data needs. A common rule of thumb is that a small fraction of items receive most of the traffic. If you cache the most popular twenty percent of a day's reads, how large is that? For a URL shortener with a hundred million redirects a day, caching twenty million entries at about five hundred bytes each needs about ten gigabytes, which fits on a single cache node, or a small cluster for redundancy. Knowing that the cache fits in memory on one or two machines is a useful conclusion: it means the cache is cheap and simple.

Servers

You can estimate application servers by dividing the peak request rate by what one server handles. A typical application server handles a few thousand simple requests per second, fewer if each request does heavy work. At five thousand requests per second peak, two or three servers would do, so you would run perhaps four to six for redundancy and headroom. The exact count matters little. What matters is the conclusion: the application tier is stateless and scales horizontally, so it is not the bottleneck. That moves attention to the data tier, where the interesting problems usually are.

Database write capacity

A single relational primary on good hardware can typically handle a few thousand to around ten thousand simple writes per second, depending on the workload and durability settings. If your peak write rate is well below that, a single primary with replicas is enough, possibly for years. If it is near or above, you need to reduce the write rate with batching or queuing, or partition the data across several primaries. This comparison, peak writes against single primary capacity, is one of the most important in the whole estimate, because partitioning changes the data model, the queries and the operations of the system.

Putting it together

For a typical consumer product, the full estimate fits in five lines. Ten million daily users. Reads around five thousand per second at peak, writes around two hundred per second. Media around two terabytes a day, metadata a few gigabytes a day. Cache for hot items about ten gigabytes. Conclusions: the application tier scales horizontally, a single relational primary handles writes, reads need a cache and replicas, media goes to object storage with a content delivery network. That is the estimate, and those conclusions are the foundation of the high level design.

Checking for surprises

After the arithmetic, look at each number and ask whether it surprises you. Surprises are where the interesting design lives. If the write rate is much higher than expected, partitioning is in play. If the storage over five years is in petabytes, tiering and lifecycle policies matter. If one celebrity has a hundred million followers, fan out on write is suddenly expensive. Saying that is more than I expected, which means is one of the best moments of an estimate, because it shows you are reading the numbers, not just producing them.

A second worked example: a ride sharing location service

Location updates are a good test of the core estimates, because the write rate is unusually high. Assume a million drivers online at peak, each sending a location every four seconds. That is two hundred and fifty thousand writes per second, far beyond a single relational primary and a clear sign that individual updates should not be stored as durable rows. Each update is small, perhaps a hundred bytes, so the raw throughput is about twenty five megabytes per second, which is easy for the network but heavy for a database.

The estimate leads to decisions immediately. Current positions belong in an in memory store keyed by driver and indexed by area, overwritten on each update rather than appended. If location history is needed for trip records, it can be written to a log and stored in batches, perhaps sampled to one point every few seconds per trip. Matching riders to drivers then reads from the in memory index, not from the database. The candidate did not need exact numbers to reach any of these conclusions. They needed the write rate, the size of each update and a sense of what a single primary can absorb.

Estimating with ranges

When an input is genuinely uncertain, estimate a range rather than a single value, and check whether the decision changes across it. If daily users could be anywhere from five to fifty million, compute the write rate at both ends. If one primary handles even the high end, the uncertainty does not matter and you can move on. If the decision flips somewhere in the range, say so and design for the upper end, or design so that crossing it is easy. Ranges are a quick way to show that you understand which uncertainties matter and which do not.

Separate content from metadata

In every storage estimate, estimate binary content such as photos or videos separately from metadata such as captions and IDs. They often differ by six orders of magnitude and belong in different systems: object storage for content, a database for metadata.

Estimates are much faster if you carry a small set of reference numbers in your head. You do not need precise values. You need the right order of magnitude, so that you can tell whether a design is plausible without looking anything up. This section collects the numbers that come up most often in design interviews and explains what each one is useful for.

Latency numbers

Reading from main memory takes on the order of a hundred nanoseconds. Reading a small block from a solid state drive takes on the order of a hundred microseconds, about a thousand times slower. A network round trip within one data centre or availability zone is under a millisecond, often a few hundred microseconds. Between availability zones in the same region it is around one to two milliseconds. Across continents it is fifty to a hundred and fifty milliseconds, limited by the speed of light in fibre.

A few reference numbers make every estimate faster.

These numbers explain many common design choices. Caches live in memory because memory is a thousand times faster than disk. A request that makes ten sequential cross region calls cannot be fast, because each call costs tens of milliseconds. Strongly consistent writes across regions are slow because they need at least one cross region round trip. If you remember nothing else, remember the three tiers: memory in nanoseconds, local network and disk in microseconds to a millisecond, cross region in tens to hundreds of milliseconds.

Throughput of common components

A typical stateless application server handles somewhere between a few hundred and a few thousand requests per second, depending on how much work each request does. A single relational database primary can handle a few thousand to around ten thousand simple writes per second, and considerably more reads, especially if most of them hit memory. An in memory cache node can serve on the order of a hundred thousand operations per second. A partition of a distributed log can absorb thousands to tens of thousands of messages per second. These are rough and depend heavily on hardware and workload, but they are good enough to tell whether you need one machine or a hundred.

Capacity of a single machine

A large server can have hundreds of gigabytes to a few terabytes of memory and tens of terabytes of solid state storage. That means many datasets that sound large actually fit on one machine. A database of a few terabytes is perfectly manageable on a single primary with replicas. A working set of a hundred gigabytes fits in memory. Remembering this prevents premature partitioning, which is a common form of over engineering in interviews.

Sizes of common items

A short text record, such as a tweet length post with metadata, is a few hundred bytes to a kilobyte. A user profile is perhaps a kilobyte. A compressed photo is a few hundred kilobytes to a few megabytes. A minute of standard definition video is a few megabytes; high definition is tens of megabytes. A typical web page with its assets is a few megabytes. These numbers feed directly into storage and bandwidth estimates.

Time units

A day is about a hundred thousand seconds. A month is about two and a half million seconds. A year is about thirty million seconds. A million requests a day is about ten per second. A billion requests a day is about ten thousand per second. Memorising these two conversions, a million a day is about ten per second and a billion a day is about ten thousand per second, makes traffic estimates almost instant.

Availability numbers

As covered in the previous lesson, ninety nine point nine percent availability allows under nine hours of downtime a year, and ninety nine point nine nine percent under an hour. Combined with failover times, these tell you what is feasible. If a database failover takes thirty seconds and happens a few times a year, it uses a small part of a four nines budget. If deployments cause a minute of downtime each and you deploy daily, you cannot meet four nines without zero downtime deployments.

Using reference numbers in the interview

Use reference numbers to check plausibility quickly. If your design reads a value from a database in another region on every request and the latency target is a hundred milliseconds, you can see immediately that the budget is almost gone. If the write rate is fifty thousand per second, you know a single relational primary will struggle. If the cache needs ten gigabytes, you know it fits on one node.

Say the reference number when you use it: a cross region round trip is around a hundred milliseconds, so we cannot afford to do this synchronously on every read. Naming the number makes the reasoning visible and shows that your intuition is grounded in real values.

When you do not know a number

If you do not know a reference value, say what you would assume and why, and move on. I do not know the exact throughput of that queue, but I would expect tens of thousands of messages per second per partition, so we would need a handful of partitions. Interviewers do not expect you to know every number. They expect you to make reasonable assumptions and to be honest when you are guessing. Making up a precise number with false confidence is worse than a rough honest one.

Keeping the list small

Resist the temptation to memorise a long table. The handful above, memory versus disk versus network latency, single machine capacity, one server and one database throughput, item sizes and time conversions, covers almost every estimate you will make. More numbers rarely help. Fluency with these few is what makes estimation quick and confident.

Building your own reference table

The best way to learn reference numbers is to derive a few yourself rather than memorising someone else's list. Look at the instance types your cloud provider offers and note how much memory and storage the large ones have. Run a benchmark of a cache on a laptop and see how many operations per second it serves. Measure a round trip between two regions with a simple ping. Numbers you have seen yourself are easier to recall under pressure and easier to defend if an interviewer questions them.

Numbers change over time

Hardware improves, so reference numbers drift. A few years ago, a terabyte of memory on one machine was unusual; now it is routine. Network bandwidth inside data centres has grown by an order of magnitude. What has not changed is the speed of light, which is why cross region latency is still tens of milliseconds. When you use a number, prefer the physical limits that do not change, and treat hardware capacity numbers as rough and improving. If an interviewer has a different figure in mind, accept it gracefully; the decision usually holds either way.

A sample exchange using reference numbers

Interview Dialogue

CandidateIf the profile service lives in one region and every page load calls it from three regions, the far users pay a cross region round trip, roughly a hundred milliseconds, on each page.
InterviewerClick to reveal answer
CandidateOur target was two hundred milliseconds at the ninety ninth percentile, so one cross region call uses half of it before we do any work. I would replicate profiles to each region and accept a few seconds of staleness, since profiles change rarely.
Show all answers

The reference number turned a vague concern into a concrete conclusion in two sentences. That is exactly what the small table in this section is for.

One more conversion worth memorising

Ten thousand requests per second sustained for a day is about a billion requests. If each request writes a kilobyte, that is a terabyte a day, which is a useful way to jump from a rate straight to a storage figure without recomputing from users. Keeping this bridge in mind lets you check that the traffic and storage estimates agree with each other.

Grounded intuition at senior level

Mid level candidates can work through an estimate step by step. Senior candidates use reference numbers fluidly to check plausibility mid design, such as noting that a cross region call per request breaks the latency budget. Staff candidates also connect the numbers to cost, such as what petabytes of storage or terabytes of egress mean for the bill.

The previous sections covered how to produce numbers. This section is about the step that matters most: turning them into decisions, saying those decisions out loud and carrying them into the design. A candidate who estimates well but never uses the numbers gets little credit. A candidate who estimates roughly but uses every number gets a lot.

Does it fit on one machine?

The single most useful question an estimate answers is whether the data, or the hot part of it, fits on one machine. If the working set fits in memory on one cache node, caching is cheap. If the dataset fits on one database with replicas, you can avoid partitioning, keep transactions simple and use the full power of a relational database. If it does not fit, you need to partition, and that brings choices about partition keys, cross partition queries and rebalancing.

The most useful question an estimate answers: does it fit on one machine?

Say the conclusion explicitly: two terabytes of metadata over five years fits on a single primary with replicas, so I will not partition the metadata for now. Or: four hundred terabytes of messages will not fit, so messages are partitioned by conversation from the start. Each version sets the direction of the data model and the high level design.

Do reads need a cache?

Compare the read rate with what the store can serve, and look at the read to write ratio. A high ratio, ten to one or more, with a read rate in the tens of thousands per second, almost always justifies a cache. A low read rate, or data that changes as often as it is read, may not. Caching adds complexity: invalidation, consistency and another component to operate. Use the numbers to show that the benefit is worth it. With fifty thousand reads per second and a ninety percent hit rate, the database sees five thousand reads per second instead of fifty thousand.

Do writes need partitioning or buffering?

Compare the peak write rate with what a single primary can handle. If it is well below, a single primary is fine. If it is close, think about buffering writes through a queue to smooth spikes, or batching small writes. If it is well above, partition. For very high write rates of small events, such as metrics or location updates, consider whether every write needs to be stored individually at all: aggregating in memory and writing summaries can reduce the write rate by orders of magnitude.

Does media need its own path?

If items are large, such as images, video or file uploads, the estimate usually shows that serving them from application servers would be expensive and slow. That justifies object storage for the content, a content delivery network for delivery and often direct uploads from client to storage using presigned URLs, so the bytes never pass through the application tier. Saying this as a conclusion of the bandwidth estimate shows the number did its job.

Do spikes need special handling?

Average traffic rarely breaks a system. Peaks do. For most consumer products, the daily peak is two to three times the average and arrives gradually, so autoscaling handles it. Some systems face sudden spikes many times larger: ticket sales opening, a product launch, a celebrity post, a breaking news event. A spike of a hundred times average in one minute cannot be absorbed by autoscaling, which takes minutes. It needs a queue to buffer writes, a virtual waiting room to admit users gradually, pre scaling before a known event, or graceful degradation of non essential features.

Design for the peak, and know whether the peak is gentle or sudden.

When you estimate peak traffic, say which kind of peak it is. A gentle daily peak justifies horizontal scaling. A sudden spike justifies one of the mechanisms above and is often a good deep dive topic.

Is the system expensive in an unusual way?

Sometimes an estimate reveals an unusual cost. Storing every version of every document forever might be petabytes. Fanning out every post to every follower's feed might be billions of writes a day because of a few celebrity accounts. Sending a push notification for every like might be tens of thousands per second. When a number looks large compared with the value it produces, say so and propose a cheaper approach: for accounts with millions of followers, we would not fan out on write; their posts would be merged into feeds at read time.

Saying the conclusion

Every number you write should have a conclusion next to it. The pattern is: number, comparison, decision. Peak writes are about five thousand per second, which a single primary can handle, so I will start with one primary and replicas. Hot redirects need about ten gigabytes, which fits on one cache node, so caching the redirect path is cheap. Photos are petabytes over five years, far too much for a database, so photos go to object storage and only metadata goes in the database.

Write each number next to the decision it supports.

This pattern makes the estimate useful to the interviewer. They can see the reasoning, check the comparison and agree or disagree with the decision. It also gives you sentences you can reuse in the high level design: as we saw in the estimate, the cache fits on one node.

Revisiting decisions when numbers change

If the interviewer changes a number, ten times more users, or the same users but every post includes a video, rerun the relevant comparison and say what changes. At ten times the writes, we are past single primary capacity, so posts need to be partitioned by author. Videos instead of photos increase storage by about twenty times and make transcoding a significant pipeline. Following a changed number through to its consequences is excellent depth evidence and is a common way for interviewers to probe senior candidates.

Numbers as a shared reference

Finally, written numbers make later disagreements easier to resolve. If the interviewer asks why you did not partition the database, you can point at the estimate. If they think the write rate is higher, you can update the input and see together whether the conclusion changes. Estimates turn opinions into calculations, and calculations are easier to agree on.

Decisions the numbers rule out

Numbers are also useful for ruling options out, which saves time in the high level design. If total storage is a few gigabytes, there is no point discussing distributed databases. If writes are a hundred per second, there is no need to debate partition keys. If the read rate is a few requests per second, a cache is unnecessary. Saying what the numbers rule out is as valuable as saying what they require: at this volume a single database is enough, so I will not partition, and I will spend the deep dive time on correctness instead. Interviewers appreciate a candidate who uses numbers to avoid complexity as well as to justify it.

When the decision is close

Sometimes a number lands close to a threshold: peak writes are around six thousand per second, near what one primary can handle. In that case, say it is close and describe both paths. We could start with one primary and plan to partition by user ID when writes grow, or partition from the start if growth is expected soon. Then pick one and explain why. A close call handled openly is strong evidence of judgment.

Number, comparison, decision

Say every estimate in three parts: the number, what you compare it with and the decision. For example, five thousand writes per second at peak, under what one primary handles, so one primary with replicas. It makes the reasoning easy to check and easy to reuse later.

This section brings the pieces together: a full worked estimate for a realistic prompt, the common mistakes that cost candidates time or credibility, and a short routine you can use in every interview.

A full worked estimate

Take the prompt design a video sharing platform. After agreeing requirements, upload videos, watch videos, see a feed of recommended videos, the candidate says: let me do a quick estimate. I will assume fifty million daily active users. Most watch; a small fraction upload. Say each user watches ten videos a day, and one in a thousand users uploads one video a day.

Views: fifty million times ten is five hundred million views a day, about five thousand per second on average and perhaps fifteen thousand at peak. Uploads: fifty thousand a day, less than one per second on average. That is an extreme read to write ratio, so the design is dominated by delivery, not by ingestion.

Storage: assume an average uploaded video of ten minutes. With several resolutions after transcoding, perhaps five hundred megabytes per video in total. Fifty thousand videos a day is twenty five terabytes a day, about nine petabytes a year before replication. That rules out anything but object storage with lifecycle tiering, and it makes storage cost one of the main concerns.

Bandwidth: if the average view streams a hundred megabytes, five hundred million views a day is fifty petabytes a day of egress, around five hundred gigabytes per second on average. That is only possible with a content delivery network, and probably with caches placed inside internet service providers for the most popular content.

Metadata: titles, descriptions, counts, perhaps a few kilobytes per video. Even after years, a few terabytes, which fits in a replicated database. View counts at fifteen thousand increments per second should be aggregated asynchronously rather than written individually to one row.

Conclusions: the application tier is light; the hard parts are transcoding uploads in a pipeline, storing petabytes cheaply and delivering video through a content delivery network at enormous bandwidth. The deep dives should be the upload and transcoding pipeline and the delivery path. The whole estimate took about three minutes and set up the rest of the interview.

Common mistakes

The first common mistake is false precision: 86,400 seconds, 1,157.4 requests per second, 3.47 petabytes. It slows you down and adds nothing. Round to one significant figure.

The second is computing numbers and never using them. If the interviewer watches you calculate bandwidth and then you never mention a content delivery network, the calculation was wasted. Every number needs a conclusion.

The third is forgetting the peak. Designing for the average leaves the system unable to handle the evening rush or a launch. Always state a peak, and say what kind of peak it is.

The fourth is mixing units: bits and bytes, per second and per day, gigabytes and gibibytes. Write the unit next to every number. The difference between bits and bytes is a factor of eight, which is enough to change a conclusion about network capacity.

The fifth is estimating things that do not matter for this problem. For a payments ledger, transaction volume matters; bandwidth almost certainly does not. For a video platform, bandwidth is the central number. Choose the estimates that match the problem's difficulty.

The sixth is getting stuck. If you lose track of the arithmetic, say so, simplify and move on. Let me round that to about a thousand per second. The interviewer cares about the conclusion, not about watching you do long multiplication.

A routine for every interview

A reliable routine takes about three minutes. First, state the users and the main actions per user per day. Second, compute average and peak rates for reads and writes separately. Third, compute storage per year for content and metadata separately, and note retention. Fourth, if media is involved, compute bandwidth. Fifth, if caching is likely, compute the hot set size. Then, for each number, say the comparison and the decision. Finally, look for surprises and name them.

Practise the routine on ten different prompts and it becomes automatic. After that, estimation stops being a part of the interview you dread and becomes a quick, confident step that sets up the design.

Estimates when the interviewer gives numbers

Sometimes the interviewer provides the numbers: a hundred million users, ten thousand writes per second, a petabyte of data. Do not recompute them. Use them directly to draw conclusions. Ten thousand writes per second is above what one primary comfortably handles, so we will partition. A petabyte will need object storage or a distributed store, not a single database. The skill being tested is the same: turning numbers into decisions.

Estimates and cost

At senior and staff level, it is increasingly common for interviewers to ask about cost. You do not need prices to the cent. Rough orders of magnitude are enough: object storage costs around a couple of cents per gigabyte per month, so nine petabytes a year is significant money and justifies moving old videos to colder, cheaper storage. Egress through a content delivery network is often the largest cost for media products. Mentioning cost when the numbers make it significant shows you think about the system as a business would.

When the numbers are uncertain

For new products, nobody knows the real numbers. In that case, estimate for a plausible target, say what would change at ten times that, and design so that the change is possible without a rewrite. Today one primary is enough; at ten times the writes, we would partition by user, so I will make sure every query includes the user ID. That sentence turns uncertainty into a design principle, which is exactly the judgment interviewers hope to see.

Practising estimation

Estimation improves faster with practice than any other part of the interview, because it is mechanical once the habits are in place. Pick a familiar product each day, such as a messaging app, a maps service or an online store, and spend three minutes estimating its main numbers out loud. Then check one or two of them against public figures where they exist, such as reported daily users or upload volumes. The aim is not to be exactly right. It is to get used to choosing the numbers that matter, rounding without hesitation and stating the decision each one supports.

It also helps to practise with a partner who interrupts. Have them change an input half way through, or ask what a number means, or say skip the estimate. Reacting smoothly to those interruptions is what the real interview requires. A candidate who has rehearsed only uninterrupted estimates often struggles when the interviewer cuts in with a different assumption.

A checklist to keep in mind

Before you leave the estimation step, check five things. Did you separate reads from writes? Did you state a peak and its kind? Did you separate content from metadata in storage? Did you write a unit next to every number? Did every number end in a decision? If all five are true, the estimate has done its job, and you can move on to the interface and the data model with a set of numbers you will point at for the rest of the interview.

How estimation connects to the next steps

The numbers from this step feed directly into the following lessons. The read and write rates shape the API, for example whether reads should be paginated and whether writes can be accepted asynchronously. The storage figures and access patterns shape the data model and the choice of database. The peak and spike analysis shapes the high level design and often the deep dives. Treat the estimate as an input to everything that follows, not as a box to tick.

What a strong estimate leaves behind

When the estimate is finished, the board should hold five or six short lines, each with a number, a unit and a decision. Those lines are the most reused part of the whole session. A candidate who points back at them three or four times during the design, and updates one when the interviewer changes an assumption, has shown exactly the skill this step is meant to test: using numbers to make and defend decisions, quickly and in plain view.

Write the unit every time

Bits versus bytes is a factor of eight, and per day versus per second is a factor of a hundred thousand. Writing the unit next to each number prevents the mistake that turns a sensible conclusion into a wrong one.