
Reed-Solomon coding is a way to turn k pieces of data into n pieces, so that any k of the n pieces rebuild the original. It treats your data as points on a polynomial, and AIOZ Storage uses it to protect every object you upload.
TL;DR:
Reed-Solomon coding is a family of error-correcting codes that Irving S. Reed and Gustave Solomon introduced in 1960 at MIT Lincoln Laboratory, in a paper called "Polynomial Codes over Certain Finite Fields". You split data into k symbols, compute n minus k parity symbols, and store or send all n of them. The classic RS(255, 223) code adds 32 parity bytes to 223 data bytes, and deep-space missions starting with Voyager pair it with a convolutional code.
Storage systems apply the same idea to whole pieces of a file. Backblaze, for example, breaks each file into 17 pieces, adds 3 parity pieces, and can rebuild the file from any 17 of the 20. If you want the general idea first, read our guide to erasure coding versus replication; terms such as parity are in our object storage glossary.
Start with a picture you can draw. Two points fix exactly one straight line, and in general k points fix exactly one polynomial of degree below k. Say your data is the two numbers 3 and 5, placed at x = 1 and x = 2, so the line through both is y = 2x + 1. You read the same line at x = 3 and x = 4 to get 7 and 9, your two parity pieces, and store all four values on four different nodes.
Lose any two of them and you still hold two points on the line, so you redraw it and read off the missing values. That is a Reed-Solomon code with k = 2 and n = 4, and it survives any two losses.

Real codes do the same with larger k. Each parity piece is a fixed weighted sum of the data pieces, so encoding is a matrix multiplication and decoding means solving k linear equations. RFC 5510 builds its generator matrix from a Vandermonde matrix in systematic form, which means your data pieces are stored unchanged and a healthy read never has to decode anything.
Plain integers break down fast, because values outgrow a byte and division leaves fractions a disk can't store. So real codes do their arithmetic in a finite field, also called a Galois field, where every result stays inside a fixed set of values.
Many storage systems pick GF(2^8), the 256 values that fit in one byte. Addition and subtraction there are both bitwise XOR, and multiplication is often done with log and antilog tables. Every nonzero value has an exact inverse, which is what makes the decoding equations solvable. The field also caps the code. A Reed-Solomon code over GF(2^w) exists whenever n is at most 2^w, so byte-sized symbols allow up to 256 pieces per stripe.
This standard-library Python program encodes the four bytes of "DATA" into six pieces over GF(2^8). It then drops two pieces and rebuilds the data, so you see the math instead of a library call:
# Reed-Solomon over GF(2^8): k = 4 data bytes, n = 6 pieces (teaching values)
EXP, LOG, x = [0] * 510, [0] * 256, 1
for i in range(255):
EXP[i] = EXP[i + 255] = x
LOG[x] = i
x = (x << 1) ^ (0x11D if x & 0x80 else 0) # field polynomial 0x11D
def mul(a, b): return 0 if 0 in (a, b) else EXP[LOG[a] + LOG[b]]
def div(a, b): return 0 if a == 0 else EXP[LOG[a] - LOG[b] + 255]
def at(points, x): # value at x of the polynomial through the points
total = 0
for xi, yi in points:
for xj, _ in points:
if xj != xi:
yi = mul(yi, div(x ^ xj, xi ^ xj)) # minus is XOR
total ^= yi # and so is plus
return total
data = list(enumerate(b"DATA")) # data sits at x = 0..3
pieces = {x: at(data, x) for x in range(6)}
print("pieces:", pieces)
kept = [(x, y) for x, y in pieces.items() if x not in (1, 4)] # lose 2
print("rebuilt:", bytes(at(kept, x) for x in range(4)))We ran it with Python 3.12.3 on Oct 29, 2026, and this is the real output:
pieces: {0: 68, 1: 65, 2: 84, 3: 65, 4: 81, 5: 52}
rebuilt: b'DATA'The first four pieces are the bytes of "DATA" (68, 65, 84, 65), unchanged, because the data sits at x = 0 to 3; pieces 4 and 5 are parity. We also tried all 15 ways to keep 4 of the 6 pieces, and every one gave the original bytes back.

For real workloads you would use a tuned library. Backblaze open-sourced JavaReedSolomon in 2015, and its Go port klauspost/reedsolomon reports more than 1 GB/s per CPU core.
With t = n minus k parity symbols, the code repairs up to t erasures, meaning missing symbols whose position you know. If bad symbols sit at unknown positions, it corrects only t/2 of them, because it first has to work out where they are.
Storage mostly faces erasures, since a dead disk or an offline node is a known gap. You can turn silent corruption into an erasure too: a checksum on each piece flags the bad one, and the decoder treats it as missing.
Other fields lean on the error side. CDs have used two interleaved Reed-Solomon codes since 1982. QR codes add Reed-Solomon parity so a smudged code still scans, and DENSO WAVE's Level M, the most common choice, restores about 15% of codewords.
Reed-Solomon is also optimal for its overhead. It is a maximum distance separable (MDS) code, so with n minus k parity pieces no code can survive more losses. In the words of RFC 5510, it recovers the data "from any set of exactly k encoding symbols".
The biggest cost is repair traffic. Rebuilding one lost piece means reading k surviving pieces, which adds up on wide stripes. Local reconstruction codes, such as the LRC in Windows Azure Storage, add local parity groups to cut that cost.
Compute matters less than you might expect. Encoding touches every byte, but James Plank notes that with modern vector instructions, disk I/O and even cache speed are usually bigger bottlenecks than the CPU.
The code also protects whatever you wrote, including a mistaken overwrite or a delete, so you still need a backup. Our posts on durability vs availability and how object storage protects data cover the other layers.
AIOZ Storage protects each object with Reed-Solomon erasure coding, per AIOZ Storage engineering (2026). Encryption comes first: the docs say an uploaded object is split into segments, each encrypted with its own random key. Reed-Solomon coding then turns that ciphertext into data plus parity pieces, n in total, on different AIOZ DePIN nodes. Any k of them rebuild the object, and no single node holds a complete copy.
You don't configure any of it; a plain upload from the AIOZ Storage CLI guide is enough, 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-nameThose two settings matter because AIOZ Storage needs a Content-Length on uploads and path-style URLs, which current AWS CLI defaults don't send (checked Oct 19, 2026). We didn't run this upload here, because it needs real account keys.
What we don't publish yet: the k and n values and a durability figure, which is why this post uses teaching values. For what the coding covers and what it doesn't, see what AIOZ Storage erasure coding covers.
To try it yourself, follow the AWS CLI guide in the AIOZ Storage docs.
What is Reed-Solomon coding used for?
CDs, DVDs, QR codes, deep-space links, RAID 6 and erasure-coded storage, where it rebuilds data after disks or nodes fail.
Is Reed-Solomon the same as erasure coding?
No. Erasure coding is the general idea of rebuilding data from a subset of pieces, and Reed-Solomon is its best-known family of codes.
How many failures can a Reed-Solomon code survive?
Up to n minus k lost pieces at known positions, so a layout of 17 data plus 3 parity pieces survives any 3 losses.
Why is Reed-Solomon called an MDS code?
Its minimum distance is n minus k plus 1, the most any code of that size can reach, so it survives the most losses for the parity it stores.
Does AIOZ Storage use Reed-Solomon coding?
Yes. Each object is encrypted, then Reed-Solomon coded into data and parity pieces on different AIOZ DePIN nodes.

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.