Skip to main content

Command Palette

Search for a command to run...

Latest articles

Your "URL Shortener" Design is Delulu

Your "URL Shortener" Design is Delulu

You are sitting in a Staff-level system design interview at a FAANG company. The interviewer smiles and says, "Design a URL shortener like Bitly." You mentally fist-pump. You know this one. You jump to the whiteboard and start yapping about Base62 encoding, hash functions, and a simple MySQL table with an index on the short code. You dust off your hands 15 minutes later, waiting for your multi-million dollar RSU grant. Then the interviewer leans forward. "Cool. But what about the analytics? And the rate limiting? Geo-routing? Abuse detection? Link expiration?" Congratulations. You just fell for the classic trap. Here is the contrarian truth of the Senior/Staff interview: "Design a URL shortener" is a lie. The interviewer does not care how you generate a 7-character string. That is the trailer. The actual movie is a brutally complex, highly distributed, real-time analytics platform with link management awkwardly bolted on as a feature. Let’s deconstruct what the interviewer actually wants to see, why your CRUD app will vaporize in production, and how to build a data pipeline that can survive a viral tweet without breaking a sweat. Let him cook.

Jun 20, 20266 min read
The Contrarian POV: Why Your Push Notifications Are Gaslighting You

The Contrarian POV: Why Your Push Notifications Are Gaslighting You

Imagine sitting in a Meta E5 (Senior/Staff) system design interview. The interviewer slides this seemingly innocent question across the table: "WhatsApp delivers messages to 2 billion users in real-time with perfect tick accuracy. So why, occasionally, does it send a notification that says, 'You may have new messages' instead of just telling you the damn count?" Your initial instinct might be to assume it’s a bug. You think, “Bro, the server tracks every single tick across distributed data centers. How is it suddenly acting delulu and pretending it doesn’t know basic math?” If you answer that it's a bug, you fail the interview. Here is the contrarian truth of principal-level system design: Push notifications are not the source of truth. They are just a vibe check. To understand why this cryptic message is actually a masterclass in fault tolerance, we need to deconstruct the architecture of mobile messaging, the unreliability of third-party middlemen, and why End-to-End (E2E) encryption means WhatsApp is literally incapable of doing the math for you. Let him cook.

Jun 15, 20265 min read
The 2x Surge Reality Distortion Field: How Uber Locks Prices

The 2x Surge Reality Distortion Field: How Uber Locks Prices

It’s 5:00 PM on a Friday. It just started raining. User A (Alice) opens the Uber app. She sees a fare for $15 to get home. She books it. The traffic is apocalyptic, the ride takes 45 minutes instead of 20, but her card is only charged $15. Meanwhile, three blocks away, User B (Bob) opens the exact same app, looking at the exact same route, at the exact same time. The screen spins, the dreaded lightning bolt appears, and Bob is quoted $30. Same city. Same time. Same route. Two completely different universes. Alice is protected by an invisible shield of fixed pricing, while Bob is thrown to the wolves of capitalism. How does Uber decide who gets the shield and who pays the surge? Let's deconstruct the architecture behind the lock and the float.

Jun 9, 20265 min read
The Case of the 6-Second Ghost: A Cloud Run Forensic Whodunit

The Case of the 6-Second Ghost: A Cloud Run Forensic Whodunit

Imagine this: You’ve built a gorgeous, microservice on Google Cloud Run. You run your load tests, and it’s a absolute Ferrari—120ms response times across the board. You deploy to production, high-five the team, and prepare for a weekend of uninterrupted sleep. Then the ticket comes in. Exactly 1 in 8 users is experiencing a massive, painful 6-second delay on their very first request of the day. Subsequent requests? Light speed. You aggressively hunt for clues: --> Cold start? Nope, the instance allocation dashboard shows plenty of warm, idle containers ready to roll. --> Database? Logs show it handled the query in a blistering 14ms. --> App logs? Nothing. There is a complete, eerie 5.8-second radio silence before your application code even logs its first line. You check the container health—green. You check memory spikes—flat line. Your application is technically perfect, yet 12.5% of your fresh visitors are staring at a loading spinner wondering if your company went out of business. Welcome to one of the most brilliant, mind-bending system design riddles in cloud computing. Let’s put on our forensic architect hats and solve the mystery of the 5.8-second gap.

May 24, 20264 min read
The Zero-to-Hero Playbook: Building a Data Platform Without Bankrupting Your Startup

The Zero-to-Hero Playbook: Building a Data Platform Without Bankrupting Your Startup

Every junior data engineer dreams of a greenfield project. You get a blank AWS account, a company credit card, and the chance to build a data platform from scratch. You immediately start daydreaming about real-time Kafka streams, multi-region Kubernetes clusters running Apache Spark, and a gorgeous vector database for AI models. Calm down, Icarus. If you build that for a company that only has 50 gigabytes of operational data, you aren't going to be the company savior—you are going to be the financial villain. When the CFO sees a $15,000 cloud bill for a platform that serves three looker dashboards, your corporate hero arc is over before it begins. True engineering maturity is building a platform that scales linearly with the business's data and revenue. Here is your definitive, slightly sarcastic playbook on how to build a modern data platform from scratch, choose the right stack, and become an absolute corporate legend.

May 22, 20265 min read
The 200ms Mind Reader: Architecting the Instagram Reels Feed

The 200ms Mind Reader: Architecting the Instagram Reels Feed

You know the feeling. You open Instagram to reply to a single DM. Forty-five minutes later, you are still scrolling Reels. You almost never see the same Reel twice. Every Reel feels oddly specific to you. Not just your broad interests, but your exact mood right now—this session, this hour. Instagram has over 2 billion active users. There are roughly 50 million Reels uploaded every single day. Yet, the feed loads in under 200 milliseconds. The next Reel is already buffered before you even finish realizing you've watched the current one for the third time. How? Is Mark Zuckerberg hiding under your bed with a fiber-optic cable? No. It’s just incredibly ruthless, beautiful system design. Let's pull back the curtain on the architecture of infinite scroll.

May 21, 20266 min read
Deconstructing System Design: Practical Guides & Tutorials