Writing

Notes from building and running things in production.

Surviving Production on 1GB of RAM

How I kept a full-stack video platform alive on an AWS t2.micro — Nginx as gatekeeper, PM2 memory ceilings, and a swap file that outsmarted the OOM killer.

  • AWS
  • Nginx
  • PM2
  • Linux
  • Performance

Why I Moved VizTube from MongoDB to PostgreSQL

Orphaned comments, manual joins, and no real transactions. The relational integrity problems that pushed VizTube off MongoDB and onto PostgreSQL with Prisma.

  • PostgreSQL
  • MongoDB
  • Prisma
  • Databases
  • Architecture

Why Text Files Are Slow: Faster C++ Banking Ops

Parsing text was the bottleneck in BankEase, not disk. Swapping fstream text I/O for raw binary serialisation made account transactions 300% faster.

  • C++
  • Performance
  • Systems Programming
  • File I/O