Polaris retail operations illustration

Polaris ERP

Polaris is a retail operations system that covers the parts teams touch all day: invoices, quotations, refunds, stock, customer credit, supplier purchasing, reporting, and the admin surface around all of that. It is the kind of product where a small mistake can turn into a stock problem, a bad balance, or a support mess by the end of the day. Tech Stack: Vue 3, Pinia, TanStack Query, Django, Django REST Framework, PostgreSQL, Redis, Celery ...

February 10, 2025 · 3 min · Muhammad Hassan Raza

Go Load Balancer Dashboard

A load balancer written in Go with a real-time monitoring dashboard. It supports multiple balancing algorithms, health checks, and automatic failover. This was a learning project to understand Go’s concurrency model and network programming. Tech Stack: Go, WebSockets, HTML/CSS/JS Source: github.com/M-Hassan-Raza/go-load-balancer-dash Why Build This I wanted to understand how load balancers actually work—not just use them, but build one. Go’s goroutines and channels seemed like a good fit for handling concurrent connections, and the standard library has solid networking primitives. ...

January 5, 2025 · 3 min · Muhammad Hassan Raza
Production War Stories

I Shipped a Race Condition That Double-Charged Customers (And Other War Stories)

Nobody writes blog posts about the bugs they shipped. The internet is full of “how I built X” and suspiciously empty of “how I broke X and spent 14 hours pretending it wasn’t my fault.” Here are mine. The Race Condition: Two Cashiers, One Item This one happened in Polaris, the ERP system I built for retail businesses. Real money, real transactions, real angry shop owners. The setup: two cashiers at different terminals. Both scan the same product. Both hit “Complete Sale” within 200ms of each other. The inventory says there’s one left. ...

November 15, 2025 · 8 min · Muhammad Hassan Raza