Back to portfolio

DISTRIBUTED SYSTEMS · C++17 · OCT – DEC 2025

Crimson Cloud.

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.

C++17TCP / HTTPgRPCPrimary-backup replicationDocker

LOOK INSIDE THE SYSTEM

Follow a request.

Interactive architecture walkthrough

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.

All nodes available
BROWSER CLIENT PUT /drive/demo.txt
REPLICA GROUP A · selected for this example
REPLICA GROUP B

Simplified topology · 3 frontends · 2 replica groups · 8 logical tablets
Select any component to learn what it does.

ENGINEERING DECISIONS

Small pieces.
Connected responsibilities.

↔

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.

≡

Partition and replicate

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.

⟳

Recover from disk

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

Measured, with context.

Download benchmark data

HTTP file downloads

24,785 requests / sec
400 active connections60-second run
Successful downloads
1,487,486
P95 latency
18.50 ms
P99 latency
24.08 ms
Errors
0

Mixed key-value workload

13,290 operations / sec
400 active connections80% GET / 20% PUT
Successful operations
799,205
Read operations
639,044
Write operations
160,161
Errors
0
How to read these numbers

Both 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

Know the boundaries.

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