How do distributed storage systems keep data durable?
HardConceptStorage & CDNs
Answer
They store redundant data across independent failure domains, detect corruption, and repair lost copies automatically. Durability (data is never lost) is separate from availability (data can be read right now).
- Replication: keep typically three copies on different machines, racks or availability zones; simple and fast to read, but it triples storage cost.
- Erasure coding: split data into k data fragments plus m parity fragments, so that any k fragments can rebuild the object. A 6+3 scheme survives three lost fragments with 1.5 times storage overhead instead of 3 times.
- Integrity: checksums on every block detect silent corruption, and background scrubbing finds bad copies.
- Repair: when a disk or node fails, missing copies are re-created elsewhere quickly, before further failures accumulate.