Erasure Coding Simulator
An interactive walkthrough of erasure-coded cloud storage
- Role
- Course project
- Year
- 2026
- Built with
- HTML · JavaScript · Tailwind CSS
Overview
I built this for a course presentation to make the maths behind object storage tangible. You type a word, watch it get split, encoded with parity and spread across servers, then destroy servers and see the data come back.
The model
A 4-letter word becomes four data shards of ASCII values. A fixed generator matrix adds two parity shards: one is a plain XOR, and the other is a weighted sum in GF(2^8). The six pieces are distributed across six simulated cloud servers.
Recovery
Lose one shard and it's rebuilt from the survivors and parity. Lose two and the simulator picks four surviving rows, inverts the reduced matrix over GF(2^8) and solves for the original data. A third failure is unrecoverable, and the app shows that too. It's a single page with no build step.
Tech Stack
- HTML
- JavaScript
- Tailwind CSS