Blog
Notes on SaaS, cloud and AI engineering
I am Usman Hafeez (Usman Abdul Hafeez), a System Architect and Full-Stack Tech Lead with more than nine years of experience building and running production systems. This blog is where I write down what I have learned along the way.
The articles come from real projects: multi-tenant SaaS platforms on AWS EKS and Kubernetes, real-time tracking with Node.js, Socket.IO and Redis, device backends with NestJS and MQTT, and AI assistants that work with live data through MCP servers. Each one explains the architecture decisions, the problems we ran into and what I would do differently, in plain language rather than code.
Letting an AI Assistant Query Live Fleet Data Safely with an MCP Server
How a 29-tool MCP server lets an AI assistant query a live multi-tenant fleet platform safely, with tenant isolation, role checks and read-only tools.
Live GPS Tracking for a Multi-Tenant Fleet Platform with Socket.IO and Redis
How one Node.js API streams live bus positions to six apps with Socket.IO and Redis, keeps tenants isolated and handles offline drivers.
Building Reliable IoT Messaging with NestJS, MQTT and MongoDB
Patterns for reliable device backends: MQTT topic design, device provisioning, QoS choices, idempotent processing and MongoDB transactions in NestJS.
How We Serve 100+ Client Websites from One Multi-Tenant SaaS on AWS EKS
How one Next.js renderer on AWS EKS serves 100+ customer websites: hostname routing, automatic HTTPS, Redis caching and safe deploys.