Disks die. Servers catch fire. Whole data centers go dark. So if your file matters, you keep more than one copy. The brute-force answer is replication: store the file three times, and you can lose any two copies and still be fine. Simple — but you now pay for three times the storage to protect one file.
Erasure coding does dramatically better. Instead of copying the file, it transforms it into n pieces — called shards — with a magic property: any k of them are enough to reconstruct the original, and the other can vanish. Pick n = 6, k = 4 and you survive any two lost shards while paying only 1.5× the storage, not 3×.
How can fragments you've never seen rebuild data they don't literally contain? The answer is a piece of mathematics that quietly runs underneath your CDs, QR codes, hard-drive arrays and cloud buckets.
Comments
Loading comments...