Route work, share identity
The gateway redirects new clients across healthy frontends. Each frontend handles HTTP and reads session state from shared KV storage, so authentication does not depend on one frontend’s memory.
DISTRIBUTED SYSTEMS · C++17 · OCT – DEC 2025
A file storage system designed
to keep going when a process stops.
A round-robin gateway, shared-session frontends, and a replicated key-value backend. Built with write-ahead logging, checkpoints, and an admin console to make failure and recovery observable.
LOOK INSIDE THE SYSTEM
An illustrated simulation of the project’s design. These controls run locally in your browser; they do not operate a live storage cluster. Measured results from the actual C++ system appear below.
Simplified topology · 3 frontends · 2 replica groups · 8 logical tablets
Select any component to learn what it does.
ENGINEERING DECISIONS
The gateway redirects new clients across healthy frontends. Each frontend handles HTTP and reads session state from shared KV storage, so authentication does not depend on one frontend’s memory.
A row key hashes to a logical tablet. The coordinator maps tablets to a replica group and identifies its primary. The primary orders writes and propagates them to backups.
Write-ahead logging records updates before they are applied. Periodic checkpoints capture state. On restart, the node loads its checkpoint, replays later log records, and reconciles with its peers.
ACTUAL SYSTEM · RECORDED DECEMBER 2, 2026
HTTP file downloads
24,785 requests / secMixed key-value workload
13,290 operations / secBoth tests used 1 KiB values and 400 warmed persistent connections, with one outstanding request per connection and no application retries. Downloaded bytes were checked for correctness. The HTTP test used 12 files under one shared test account.
All services and the load generator ran in one Docker container on macOS ARM64, with 14 logical CPUs and approximately 7.65 GiB available to the Docker VM. These are finite-duration local measurements, not multi-machine production capacity or an internet latency guarantee.
PROCESS-FAILURE EXPERIMENT
3.86 secondsFrom killing the primary to a successful new write, in one recorded test.The recovery exercise also checked data after restart. It validates the tested process-crash scenario; it does not establish safety under arbitrary network partitions or power loss.
WHAT I’D BUILD NEXT
The coordinator is a single point of failure. The system does not implement Raft or epoch-based fencing, and a failed replication attempt may leave a partial write. Network-partition safety and automatic coordinator failover remain future work.
Next steps would include stronger leadership fencing, explicit consistency semantics, multi-host tests, and longer mixed-workload runs with independent load generators.
View the GitHub showcase