Module 04 · System Design · The parts, properly · about 20 min to read
Continue where you left off ×
Why Data Is the Hard Part (the five building blocks)
Data Kya Hai (Why It Matters) · Open board
Numbered last because it was drawn last, but it explains what every other board in the track is for: whichever wall you hit next, this is the board that named it first. What a Data System Promises draws the identical five-block map from a different angle, the same shape, found twice.
Before you start. You need only arithmetic: multiplying, dividing, and reading a percentage as “so many out of a hundred.” Nothing here leans on another lesson.
The idea in 30 seconds
Data-intensive means the bottleneck is the data, not the arithmetic, test it by asking whether doubling every CPU makes the problem vanish.
Every app runs store, read, generate, and the biggest slice of what gets stored is what people tapped, not what they bought.
A single machine hits four walls, and the one that finishes it first is never the processor: it’s the disk filling on schedule, or the one copy going down.
A machine can go from fine to unusable well before it’s full, because wait time grows faster than the traffic causing it.
Replication fixes “one machine can’t survive” and buys a new problem: which copy is right. Partitioning buys a slow worst case, because a query across every shard waits on the slowest.
Exactly one copy can’t be rebuilt, the record itself. Every other store: cache, index, stream, batch job, is disposable, fed from the record’s own log.
Read the story
Lesson 17 of 115 in System Design
The rest of this lesson is part of a plan.
A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year .
See plans Already a member? Sign in
Or start free : a free account opens lessons 2 and 3 of every track.
In this lesson Seven months: the day the best machine money can buy is full Compute-intensive or data-intensive: the question that tells them apart STORE, READ, GENERATE, the loop, sized for real Back to that machine: four walls, and the one that isn’t CPU Slow long before full: the queue nobody budgeted for Copy it, and the question changes: replication, and a failure with no name yet One record you can’t rebuild, four you can The byte budget The four walls, exactly Queueing, derived The chain, with its numbers One system of record, four derived views Terms it explains: seven months, compute-intensive, data-intensive, stored, read, generated, 453 GB, 165 terabytes, 8.8 hours a year, ten times, replication, partitioning, shard, node, system of record, derived, search index, total, ≈ 453 GB/day, 7.6×, 23,000/sec, 1,250/sec, 18.5:1, 62,500/sec, 8.3:1, CPU, RAM, Storage, Uptime, 83 distinct shards, 98.6%, Search indexes, Stream processing, Batch processing, Move the peak factor, (`0.95.
Review System Design
Mark as read Saved in this browser, and to your account when you sign in.