Skip to content
SD-43 · FILE DOWNLOADER · INTERACTIVE

Break it.
Then fix it.

Turn up the downloads, watch what melts, and add the parts a real download library and backend need. Every switch is a decision you would defend in an interview.

CHALLENGECarry 1M active downloads (25 Tbit/s) with no errors, no restarts from zero and no corrupt files.
StatusDOWNAt 100K active downloads
Downloads that finish2.2%Some finish corrupt, unchecked
Errors97.8%Requests being dropped
Origin egress3.6 Tbit/sEvery byte from storage
Download libraryCORRUPT
100K active downloads
3.6K Gbit/s wanted
Retry policySTORM
Retry at once, in step
1.4× traffic in incidents
Local journalOK
Bitmap of verified chunks
1.02× bytes per file
Load balancerOK
API calls only
bytes + API calls
Download API × 40DOWN
Streams every byte
3.6K / 80 Gbit/s
Object storageHOT
File versions, by range
3.6K / 5K Gbit/s
Catalog DBOK
Entitlements, sessions
156 new sessions/s
The API servers are copying file bytes. Each server streams about 2 Gbit/s, and 3.6K Gbit/s is wanted. Check access once, sign a URL valid for 1 hour, and let clients fetch the bytes without us.
8 MBChunk size256 range requests for a 2 GB file; a drop costs one chunk.
95%Bytes from the edgeA version never changes, so the CDN keeps it for a year.
1.6×Bytes without resumeLong downloads on flaky networks restart again and again.
1 hSigned URL lifetimeLong enough for most files, short enough for refunds to bite.
Want the reasoning behind every switch?Visual walkthroughFull write-up
Was this lab useful?Your vote tells us what to improve next.