About Work Skills Blog Contact
← Home

Writing

Thinking out loud on ML systems, backend architecture, and building software that behaves under pressure.

DjangoPostgreSQL

The Booking That Took Itself: Solving Double-Booking with a Sentinel Lock

SELECT FOR UPDATE prevents two people from booking the same slot — except when the slot is the first one of the day. Here's the edge case, and the one-line fix.

2 May 2026 →
DockerSecurity

The Firewall Rule That Wasn't: Docker, ufw, and a Silent Port Leak

ufw was configured correctly. The port was still open to the internet. Here's the iptables ordering issue that caused it, and how to actually close it.

18 April 2026 →

© 2026 Mehtab Sandhu — Built with Astro & MDX.