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.
Writing
Notes from building and running things in production.
Orphaned comments, manual joins, and no real transactions. The relational integrity problems that pushed VizTube off MongoDB and onto PostgreSQL with Prisma.
Parsing text was the bottleneck in BankEase, not disk. Swapping fstream text I/O for raw binary serialisation made account transactions 300% faster.