
Erasure coding is a data protection method that splits a file into n fragments, any k of which can rebuild it. The system survives losing up to n-k fragments while storing far less than full copies would. AIOZ Storage applies Reed-Solomon erasure coding to every object you upload.
TL;DR:
Updated Nov 30, 2026: removed unverifiable claims, followed one 10 MB file through the examples, added common mistakes, linked the Reed-Solomon explainer.
Erasure coding encodes a block of data into n fragments, and any k of them are enough to rebuild the original, whichever k you have. In a scheme, k is the minimum you need to recover the file, and n is the total spread across storage nodes. If you lose up to n-k fragments to failed nodes, you can still read the file.
Many systems build these codes with Reed-Solomon coding, the same family of codes that CDs, barcodes and deep space links use to survive damage. In a storage network the damage is a fragment lost with an offline node, not a scratch on a disc.
The storage cost of a scheme is its expansion factor, n divided by k. This post follows one 10 MB file through every scheme. With k=10 and n=20, the expansion factor is 2, so your file becomes 20 fragments of about 1 MB each, 20 MB in total. At k=20, n=40 the expansion factor stays at 2, but the risk spreads across more nodes. You would now lose the file only after 21 failed fragments instead of 11.
Replication stores complete, separate copies of a file on several nodes. It is simpler to run, and it costs much more storage for the same durability. Ten copies of your 10 MB file take 100 MB, five times the 20 MB of the k=10, n=20 code. Storj's durability tables put it bluntly: "replicating data at 10x can't beat erasure codes with k = 16, n = 32, which is an expansion factor of only two."
The reason is granularity, because replication survives only while at least one whole copy remains intact. Erasure coding survives any combination of lost fragments up to its threshold.
Replication still has its place, because each copy can serve a read on its own and nothing has to be decoded to rebuild a file. Which approach a network picks depends on whether it optimizes for disk cost or for simplicity.
Storj, a decentralized S3-compatible network, builds on erasure coding: a client needs any 29 of the 80 pieces to retrieve a segment. For your 10 MB file as one segment, that means 80 pieces of about 345 KB, about 27.6 MB in all. When a segment's healthy pieces drop to a repair threshold, Storj rebuilds the missing pieces and uploads them to healthy nodes.
Sia splits each file into 30 segments with Reed-Solomon erasure coding, and any 10 of 30 segments can recover the file. Up to 20 of the 30 hosts can go offline at once, and your 10 MB file takes 30 MB.
The takeaway: erasure coding buys durability with far less disk than full copies. Its k and n, not the expansion factor alone, decide how many lost fragments your file survives.
AIOZ Storage protects every object with Reed-Solomon erasure coding. After server-side encryption, each object is split into data pieces plus parity pieces, n in total, and the pieces go to different nodes on AIOZ DePIN. Any k of those n pieces rebuild the object, so it survives the loss of several pieces at once. Your 10 MB file never sits whole on any single node.
Encryption comes first: on upload, the content is split into segments, and each segment is encrypted with its own random key. The coding then runs on that encrypted data, so each node stores pieces of ciphertext. The network also audits the nodes that hold pieces and repairs lost ones.
You don't configure any of this. Uploads use the standard S3 call from the docs, with two client settings first:
export AWS_REQUEST_CHECKSUM_CALCULATION=when_required
aws configure set default.s3.addressing_style path
aws s3 --endpoint-url https://s3.aiozstorage.network cp /path/to/file s3://bucket-nameThe first two lines turn off the aws-chunked uploads and bucket subdomains that current AWS CLI versions default to. AIOZ Storage needs a Content-Length on uploads and path-style URLs (checked Oct 19, 2026).
To try it, follow the AWS CLI guide in the AIOZ Storage docs.
What do "k" and "n" mean in erasure coding?
n is the total number of fragments a file is split into. k is the minimum number of those fragments needed to rebuild it. Any k of the n fragments work.
How much more storage does erasure coding need than the original file?
Its expansion factor, n divided by k. A 29-of-80 scheme, like Storj's example, has an expansion factor of about 2.76, so the fragments take roughly 2.76 times the file's size.
Is erasure coding always cheaper than replication?
For the same durability, it uses much less storage: 10x replication still falls short of a 2x erasure code. Reads and repairs cost more, since they have to reach k nodes.
Which decentralized storage networks use erasure coding?
Storj (29 of 80 pieces) and Sia (10 of 30) run it as their default. AIOZ Storage uses Reed-Solomon erasure coding too.
Does AIOZ Storage use erasure coding?
Yes. Each object is encrypted, then Reed-Solomon coded into data and parity pieces on different AIOZ DePIN nodes. Any k of the n pieces rebuild it, and no node holds a complete copy.

Full vs incremental vs differential backup: what each run copies, how restore chains work, storage and time trade-offs, synthetic fulls and RPO/RTO fit.

RAID vs erasure coding: RAID guards the disks of one array, while erasure coding spreads k data and m parity pieces over nodes. Compare overhead and rebuilds.

Reed-Solomon coding turns k data pieces into n, and any k of them rebuild the original. See the polynomial math, GF(2^8), a demo and how AIOZ Storage uses it.

RPO vs RTO: RPO caps how much data you can lose, RTO caps how long you can stay down. See how to calculate both, MTD, and the DR strategies that meet them.

AWS Signature Version 4 signs each S3 request with an HMAC key derived from your secret. See the four steps, a worked example and the errors that break it.

Encryption at rest vs in transit: at rest guards stored bytes from stolen disks, in transit guards requests on the network with TLS. See what each one misses.