Question bank

No. 21 · Data pipelines & analytics

Design a system to sort a 100 TB dataset

Intermediate35 minBatch processing · Sharding & partitioning · Estimation · Hot keys · Failure detection

Your sketch
Opening the sketchbook…

OFF-SITE READING · OTHER PEOPLE’S WORK, OUR NOTES

Further reading

Walkthrough reading

At least one vetted end-to-end walkthrough or mock interview is linked. Links go to other sites; we credit and describe them rather than copy them.

  1. Distributed Sorting - Algorithm and System Design - Full 2 Hour Interview Walkthrough

    QuanticDevArticleFull walkthroughFreeVetted

    Long walkthrough of sorting 1 TB across 1,000 machines: chunking, per-node sort, k-way merge and range repartitioning to remove the single merge bottleneck. Some choices (a leader doing the merge, Redis for messaging) are questionable; treat them as discussion points.

    Link checked 2026-12-06

  2. MapReduce: Simplified Data Processing on Large Clusters (OSDI 2004)

    Google Research · Jeffrey Dean, Sanjay GhemawatPaperPaperFreeVetted

    Primary source for the sample-partition-sort-merge pattern; section 5.3 describes the terasort setup and backup tasks for stragglers. Says little about single-machine external sort.

    Link checked 2026-12-06

  3. Apache Spark the Fastest Open Source Engine for Sorting a Petabyte

    Databricks Blog · Reynold XinEngineering blogPartialFreeVetted

    Concrete numbers from a record-setting 100 TB and 1 PB sort, with notes on sort-based shuffle and network transfer. A results post rather than a design guide.

    Link checked 2026-12-06

Report a bad or misleading link

Reference audit: 1 of 3 links from the audited catalog kept
  • youtube.com/watch?v=vgKjatRVtys Public video, but it is the same author and content as the kept article; duplicate.
  • leetcode.com/discuss/interview-question/4807845/Microsoft-Interview/ One-line mention of an external sort question with no discussion; recorded as company evidence instead of reading.

We audited the public catalog at systemdesign.io on 2026-12-06. Dropped links are not linked here on purpose.

COMPANY EVIDENCE · NOT A FREQUENCY CLAIM

Where it has been reported

Candidate reports

Catalog tags (unverified)

Google

Assigned by the reference catalog (audited 2026-12-06). We have not verified that these companies ask this question.

Report or add attribution evidence · How we label evidence

KEEP GOING

Related questions