Back

Blog details

What Is Erasure Coding? How It Compares to Replication

AIOZ Network
5 min readAugust 30, 2026
aioz-storage
What Is Erasure Coding? Redundancy Costs, AIOZ Storage knowledge hub cover
Abstract data visualization with glowing connected points

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:

  • Erasure coding splits a file into n fragments where any k of them rebuild the original, so you can lose up to n-k fragments without losing the file.
  • For the same durability it needs far less disk than full copies: ten copies of a file still fall short of a k=16, n=32 code, which only doubles the storage.
  • Storj, Sia and AIOZ Storage all use erasure coding as their default redundancy. AIOZ Storage uses Reed-Solomon coding, and no single node holds a complete copy of your object.

Updated Nov 30, 2026: removed unverifiable claims, followed one 10 MB file through the examples, added common mistakes, linked the Reed-Solomon explainer.

What Is Erasure Coding?

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.

How Does Erasure Coding Compare to Replication?

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.

Server room aisle with rows of dark server racks

Which Decentralized Storage Networks Use Erasure Coding?

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.

Common Mistakes When Comparing Erasure Coding Schemes

  • Judging a scheme by its expansion factor alone. Your 10 MB file costs 20 MB at both k=10, n=20 and k=20, n=40, but the second survives twice as many lost fragments.
  • Assuming every network defaults to erasure coding. Filecoin lets you choose your own tradeoff between cost, redundancy and speed, and each storage provider proves with Proof-of-Replication that it holds a copy.
  • Treating erasure coding as a backup. It rebuilds fragments lost with failed nodes, but it stores whatever you write. To undo a bad overwrite or delete, you need object versioning or a separate backup.
  • Forgetting the read path. Your read has to reach k different nodes, where a replicated file can come whole from one node.

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.

How AIOZ Storage Handles It

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-name

The 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.

Frequently Asked Questions

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.

References

We only send updates when meaningful changes ship, and you can unsubscribe anytime

Related Content

blog thumbnail

Full vs Incremental vs Differential Backup Types Explained

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.

aioz-storage
8 min readDecember 04, 2026
blog thumbnail

RAID vs Erasure Coding: Two Ways to Survive Disk Failure

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.

aioz-storage
9 min readDecember 01, 2026
blog thumbnail

What Is Reed-Solomon Coding? The Math Behind Erasure Codes

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.

aioz-storage
7 min readNovember 27, 2026
blog thumbnail

RPO vs RTO Explained, With Backup and Restore Examples

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.

aioz-storage
7 min readNovember 24, 2026
blog thumbnail

What Is AWS Signature Version 4? How S3 Requests Are Signed

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.

aioz-storage
7 min readNovember 20, 2026
blog thumbnail

Encryption at Rest vs in Transit, and What Each Protects

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.

aioz-storage
7 min readNovember 17, 2026