~/ mohit/blog
Systems, Design & First Principles
Sharing my learnings on software fundamentals, design choices, and messy trade-offs.
007Published
Insights
Insights
7 posts
Engineering Decisions
May 7, 20266 min readA Behind-the-Scenes Look at the Architecture of a Large Scale Society Platform
When you build software that maps to physical real estate, the naive approach usually fails. A look at the core system design, the tough architectural decisions, and why these decisions were made.
System Design
Architecture
SaaS
Mobile Application
Read Full Article
From the Trenches
Apr 13, 20265 min readThe shortest path already exists. Nobody's using it.
Everything travels to the cloud and back, even when it's just two metres away. I'm exploring why we stopped questioning this 'world tour' for local data and how the shortest path already exists, but we're just not using it.
Networking
Local Sharing
Instbyte
Efficiency
Performance
Read Full Article
Debugging & Incidents
Jan 31, 202610 min readThe Rate Limiter That Framed CORS
A dashboard outage that looked like a CORS issue, but was actually a rate limiting + polling spiral problem—and how fixing middleware order, switching to per-user buckets, and moving to Socket.IO cut traffic by 95%.
Express
Rate Limiting
CORS
Socket.IO
System Design
Performance
Read Full Article
From the Trenches
Jan 10, 202610 min readIf Request B Doesn't Need A, Stop Waiting
Ship only what’s visible, parallelize what you can, mitigate first, and make “fast” feel progressive, not perfect.
System Design
Performance
Read Full Article
Engineering Decisions
Oct 7, 20258 min readAnticipation Is Not Optimization
A real-world case of how pre-computing, aggressive caching, and waterfall-style flows created unnecessary system load—and how delaying work made the system simpler and more predictable.
System Design
Backend Engineering
Caching
Lazy Evaluation
Read Full Article
From the Trenches
Jun 21, 202510 min readDon't Cache on Timers. Cache on Events.
Your cache is fast. Your database is correct. But your UI still shows stale data for 60 seconds. This is the story of ghost states, O(N) pain at scale, and why event-aware invalidation beats timer-based caching every single time.
Caching
Redis
Performance
Read Full Article
How I’d Explain It
May 2, 202510 min readMachine Learning Through First Principles, Not Buzzwords
Machine Learning isn’t magic. It’s just pattern finding and thing labelling. First you see clean examples like mango pricing, then real life messy data comes in and you learn to draw a line that approximates best. That’s ML — give examples, not instructions, and the algo somehow stitches the recipe.
Machine Learning
First Principles
Learning Notes
Read Full Article