KatInterview

Fastest Way to Get a 2 TB Dataset to a Colleague in San Francisco

System DesignModel answer
EasyModel answerSystem Designback-of-envelopedata-transfernetworking

Last updated

Estimate and compare network transfer against shipping physical storage for a 2 TB dataset, state assumptions, and identify when each approach wins.

A colleague in San Francisco needs a 2 TB dataset from you, and the goal is to get it into their hands in the shortest possible wall-clock time.

Explain how you would do it.

  • Which transfer method (or combination of methods) would you pick, and why?
  • State your assumptions explicitly, for example: link speeds at both ends, whether you can move physical storage, how far away you are, security or compliance limits, and how much money you can spend.
  • Show a quick back-of-envelope calculation for each option you consider.
  • Say what would change your answer, and describe how you would verify that the data arrived intact.

There is no single correct number. You are judged on how clearly you estimate, how well you compare the options, and whether you can name the break-even point between them.

Hints

Hint 1

Convert units first: 2 TB is about 1.6 x 10^13 bits. Divide by the effective throughput of the slowest link (the sender's upload or the receiver's download), not the advertised plan.

Hint 2

For physical shipping, total time is copy onto the drive + transit + copy off the drive. Do not forget the copy time at both ends, and compare it to the network time at several bandwidths.

Hint 3

Find the break-even bandwidth where the network matches the physical option for a local handoff versus overnight shipping, then cover encryption, checksums, resumability, and what would flip the decision (for example, the receiver already has most of the data).