Skip to content
SD-51 · System design

Design a Cloud Data Migration

Asked at Staff level45 minutes
Our answers stay hidden until you reveal them.

Design a system that moves a company’s data out of its own data centre into a cloud provider. The data is 5 PB in all: file shares and an on-premises object store with about 4 billion files, a data lake, and 300 TB in a few hundred running databases. Teams move application by application over the coming months, and each move ends with a short cutover, after which the application reads and writes only in the cloud.

The hard parts are physics and change. At the 10 Gbps internet link the company already has, 5 PB takes more than 3 months even if nothing else uses it. A faster link takes weeks to install, and reading too fast from the source storage slows the production systems that still run on it. Meanwhile the data keeps changing, about 20 TB a day, the databases take thousands of writes a second, and at 4 billion objects even a 1-in-10-million copy error means hundreds of silently broken files.

Good questions to ask first

Decide what you would assume for each before you look at ours.

  1. 1How much data and what kind?
  2. 2How many files, and how big?
  3. 3What is the deadline?
  4. 4How much downtime may an application have?
  5. 5What network do we have?
  6. 6How hard can we read the source?
  7. 7How sure must we be the copy is right?
  8. 8Do we transform the data on the way?

How to spend the 45 minutes

  1. 5minPart 1: Requirements: size, deadline, downtime, network
  2. 8minPart 2: Estimates: link, source cap, appliances
  3. 4minPart 3: API: waves, tasks, cutover
  4. 13minPart 4: Architecture, from one copy host to cutover
  5. 15minPart 5: Deep dives: transport, integrity, change, cutover
Sketch your own design: boxes, arrows and the numbers that matter. Then compare it with ours.Break it in the labVisual walkthrough