Local time in Turrialba, Costa Rica

All work
ACADEMIC

TEC MEDIA FILE SYSTEM

TEAM OF 3 · ALGORITHMS AND DATA STRUCTURES II · TEC · 2025

OVERVIEW

Distributed PDF storage in C# and .NET 8. A controller node stripes each file into 64 KB blocks across four HTTP disk nodes with rotating XOR parity (RAID 5, Shared Disk architecture), and a Windows Forms client uploads, searches, downloads and monitors the array.

HIGHLIGHTS

  1. Stripes of three data blocks plus one parity block, with the parity node rotating across four nodes.
  2. Degraded reads: a missing or corrupt block is rebuilt from the XOR of the rest of its stripe while the download continues.
  3. SHA-256 checksum per block, verified on read.
  4. HTTP/JSON between client, controller and nodes: 10 controller endpoints and 7 node endpoints, documented with Swagger.

STACK

  • C#
  • .NET 8
  • ASP.NET Core Web API
  • Windows Forms
  • Newtonsoft.Json
  • Swagger

MY CONTRIBUTION

  1. Built the shared library: models, DTOs, constants and the interfaces that split the work across the team.
  2. Built the controller's HTTP layer: pooled clients, retries and gzip support.
  3. Designed all REST endpoints on the controller and the disk nodes.
  4. Wrote and integrated the RAID 5 manager, the disk-node storage with checksums and the desktop GUI that shipped in the final version.

SCREENS

  1. RAID status panel with nodes, blocks and fault tolerance
  2. Swagger UI for the controller's file and status endpoints

CHALLENGE

A corrupt block is treated exactly like a missing one: disk nodes refuse to serve a block whose checksum does not match, so both cases take the same parity-recovery path in the controller.

LOOKING BACK

Automatic rebuild onto a replaced node and persistent file metadata were out of scope. Both are the obvious next steps.

TEAM