ELSS SIP Lock-In Works Per Installment: What That Means When You Need the Money

Here is the mistake almost every ELSS SIP investor makes. You started a monthly SIP in April 2024, the lock-in is “3 years,” so you tell yourself the money is free in April 2027 and plan a down payment around it. Then you log in, hit redeem, and the app only lets you take out a sliver. The rest is frozen for another two years. Nothing is broken. You just misread how the lock-in works. ...

9 min

Your Engineers Hate the New AI Tools - How to Fix Rollout Without Mandating Adoption

The fastest way to make your best engineers distrust AI tooling is to mandate it. I have watched three orgs do this in 2026, and the pattern is identical every time. Leadership reads a productivity report, buys seats for everyone, announces the rollout in an all-hands, and six weeks later the senior engineers have quietly uninstalled the extension while the juniors are shipping AI-generated code nobody can explain. The tool was never the problem. The rollout was. ...

10 min

Design Comment Moderation / Toxicity Filter - System Design

Content moderation looks like a machine learning problem and ends up being a systems problem. The model is the easy part - a toxicity classifier is a solved research problem you can download. The hard part is running it on 1 billion comments a day, in the write path, inside a 100ms budget, while attackers mutate their phrasing faster than you can retrain. If scoring a comment takes 300ms, every comment post gets 300ms slower and your throughput falls off a cliff. If you put the model behind the write and score async, abusive comments go live before you catch them. And if your filter is static, the spammers route around it by lunchtime: f r e e m0n3y, zero-width characters between letters, homoglyphs, image-text, the same slur spelled nine ways. ...

28 min

Design Live Cricket Score / Sports Updates - System Design

Everyone starts this problem by drawing a box labeled “score database” and an arrow to a phone. The interviewer nods and then tells you it is the second innings of an IPL final, the match is going to the last over, and 100 million people have the app open at the same moment refreshing to see whether the next ball is a six or a wicket. Now the box-and-arrow picture is useless. A single ball event has to reach 100 million screens in under a second, and it has to reach them in the right order, and if the third umpire reverses a wicket thirty seconds later every one of those 100 million screens has to correct itself, and when a fan opens the app in the 15th over they need the full scorecard of everything that already happened. This is not a database read problem. It is a real-time fan-out problem with a durable, correctable event log underneath it - and the “live score” a fan sees is just the latest projection of that log pushed to their screen. ...

23 min

Design Live Sports Streaming (Hotstar / IPL) - System Design

Live sports is the hardest shape of video there is, and it is hard for a reason that is the exact opposite of YouTube. On a VOD platform you do the expensive work (transcoding) once, offline, days before anyone watches, and the hard part is serving immutable bytes cheaply forever. On live, the match is happening right now, there is no pre-encode, the stream has to be transcoded and packaged and pushed to the edge in the same few seconds the ball is being bowled, and every one of 50 million viewers is watching the same 6 seconds of video at the same wall-clock moment. There is no long tail to smooth the load. The whole audience arrives when the toss happens, surges when a wicket falls, and all 50M of them scream at the CDN within the same 2-second window when a six is hit. And they will notice if the stream is 30 seconds behind, because their neighbour on a different app (or just the apartment next door) will cheer first and spoil it. ...

33 min

Prompt Caching Cuts Your LLM Bill by 80 Percent and Nobody Is Using It

Here is a number that should bother you: on most production LLM apps I have looked at, the prompt caching hit rate is close to zero, even though both Anthropic and OpenAI have shipped prompt caching and the feature is sitting there waiting. People hear “caching,” assume it is complicated, and move on. It is not complicated. The hard part is that your prompt is probably built in an order that makes a cache hit impossible, and no amount of enabling the feature fixes a badly ordered prompt. ...

10 min

VPF Stops Beating Debt Funds Above This Salary: The 2021 Budget Math Nobody Runs

Every personal finance thread repeats the same line: max your VPF, it is 8.25% tax-free, government-backed, better than any FD or debt fund you will find. For most salaries that is simply true and you should listen. But there is a basic salary above which the advice quietly inverts, and almost nobody computes where it is. Past that line, each additional rupee you push into VPF earns interest that is taxed at your slab rate, taxed every single year, and is still locked until you are 58. At that point a boring liquid debt fund, and definitely PPF, beat it. ...

9 min

Design Mobile Recharge / Bill Payment - System Design

A user opens the app, taps “Electricity”, types a consumer number, and a second later sees “Bill: 2,340, due Nov 20”. They pay, and a few seconds later a receipt lands with a reference number the electricity board will honour. That is the product. It looks like a thin shopping cart over a payment gateway, and the interviewer will let you believe that for about a minute before pointing at the thing that actually makes this hard: there is no single “bill API”. There are 1000+ billers - every state electricity board, every water utility, every gas company, every telecom - each with its own protocol, its own uptime, its own idea of what “fetch bill” means, and its own habit of going down on the first of the month when everyone pays at once. ...

25 min

Advance Tax Trap: Why Salaried Employees with Capital Gains or Rent Owe 234B Interest

Your employer deducts TDS on every salary credit, and for most people that is the entire tax story. So the natural assumption is that if you are salaried, the tax department is already fully paid and you have nothing to do except file a return. That assumption is wrong the moment a second stream of income shows up, and the two most common second streams for salaried people are exactly the ones nobody withholds tax on: capital gains from selling shares or mutual funds, and rent from a flat. ...

10 min

Design Password Manager (1Password / LastPass) - System Design

A password manager looks like a trivial CRUD app. Store some login records, sync them across the user’s phone and laptop, auto-fill them into websites. One table, a REST API, done. The interviewer lets you believe that for about thirty seconds, then asks the one question that reorganizes the entire system: can your servers read the passwords they store? The correct answer - the only answer a serious password manager can give - is no. Not “we encrypt at rest with a key we hold.” No. The server must be structurally incapable of reading a single stored credential, even if the entire database is stolen, even if a rogue employee has root, even if you are legally compelled to hand over everything. ...

28 min

Design Single Sign-On (SSO / OAuth Provider) - System Design

Single Sign-On sounds like a login screen. It is not. It is a token factory that a hundred applications trust, sitting at the center of an organization, deciding on every single request across every single app whether the person holding a bearer string is who they claim to be and whether they are allowed to do the thing they are asking to do. You log in once, at one place, and then Gmail, Docs, Drive, Photos, YouTube, and three hundred internal tools all believe you without ever seeing your password. The magic is not the login. The magic is that one central authority mints credentials the other apps can verify, and can un-mint them the instant something goes wrong. ...

24 min

Design UPI / PhonePe (Real-Time Payments) - System Design

“Scan a QR, money leaves your HDFC account and lands in a shopkeeper’s SBI account in three seconds” sounds like one API call. It is not. HDFC and SBI are two different companies with two different databases that will never share a transaction. There is no UPDATE that touches both. In between sits a switch (NPCI) that neither holds the money nor owns either account, yet has to guarantee that the payer’s account is debited exactly when and only when the payee’s account is credited - across two banks, over a network, inside a 5-second timer, ten billion times a month, and it has to be provably correct afterwards when the regulator asks. The one thing you cannot do is the obvious thing: a single distributed transaction that locks both banks. Banks will not give you a lock. So the entire design is about moving money atomically-in-effect across systems that refuse to coordinate. ...

39 min

eBPF Makes Production Debugging Feel Like Cheating - A Practical Intro for App Engineers

The last time a service of mine went slow in production and the dashboards showed nothing, I did what every application engineer does: added a log line, waited for a deploy, added another log line, waited for another deploy. Two hours to find out a DNS lookup was taking 5 seconds because a resolver had gone stale. The information was sitting in the kernel the entire time. I just did not know how to ask for it. ...

12 min

Design a CAPTCHA Service - System Design

Everyone pictures a CAPTCHA as a picture of squiggly text. “Render some distorted letters, ask the user to type them, check the string, done.” Then the interviewer adds the constraints that turn it into a real system: it is not one page, it is a service in front of every signup, login, password reset, and checkout across thousands of sites, so it must answer in the tens of milliseconds before the form submits; it is not thousands of solves, it is millions of challenges per second; the thing it is fighting adapts - the moment you ship a challenge, someone builds a solver, a farm of humans, or an ML model to beat it, so a static challenge is dead on arrival; and the verdict it returns crosses a trust boundary - the browser is hostile, so a naive “you passed” flag is trivially forged and replayed. The whole problem is adversarial by construction. ...

37 min

Design Reverse Image Search (Google Images) - System Design

Reverse image search looks like a search problem, and it is - but not the kind you get from an inverted index of words. A user hands you a picture, not a query string, and asks “where does this appear, and what looks like it.” There are no keywords to match. The only thing you have is pixels, and pixels are the wrong unit: the same photo re-saved as a JPEG, cropped by 5%, watermarked, or scaled to a thumbnail is byte-for-byte a completely different file, yet to a human it is obviously “the same image.” So the core of the problem is not string matching or even byte matching - it is turning an image into a representation where visual similarity becomes geometric closeness, and then finding the closest points to a query among 100 billion of them, in under a second. ...

28 min

Design Shazam (Audio Fingerprinting) - System Design

You hold your phone up to a speaker in a loud cafe, capture five seconds of a song you half-recognize, and a moment later the screen names the track, the artist, and the exact timestamp you were listening to. There is background chatter, the audio is compressed by a cheap phone mic, the recording started somewhere in the middle of the song, and the match is drawn from a catalog of over 100 million tracks. And it comes back in under three seconds. ...

27 min

Kafka Consumer Lag Is Lying to You - How to Measure and Fix It Properly

Every Kafka incident review I have sat in has the same slide near the end: a graph of consumer lag that stayed flat and green for the entire outage. Lag was 200 messages. It never moved. Meanwhile customers waited eleven minutes for an order confirmation email, a fraud check ran on data that was already stale, and the on-call engineer had no idea because the dashboard said everything was fine. ...

11 min

Senior Couple Parking Rs 90 Lakh: How SCSS and PMVVY Together Beat a Plain FD Ladder

Your parents, both past 60, have ₹90 lakh from a sold flat and a matured LIC endowment sitting in a savings account earning 3%. The banker’s pitch is simple: “A 3-year FD ladder at 7.5%, staggered, very safe.” It is safe. It is also leaving money and certainty on the table. The naive rule for retirees is “just build an FD ladder.” It is not wrong, but for a couple both above 60 it ignores two government schemes that pay more and lock the rate for longer: the Senior Citizen Savings Scheme (SCSS) at 8.2% and the Pradhan Mantri Vaya Vandana Yojana (PMVVY) at 7.4%. Used together across two people, they absorb ₹90 lakh at a blended 7.93% and, for most retired couples, pay zero tax. The FD ladder should get whatever is left over, not the whole corpus. ...

12 min

Design a Distributed Lock Service (ZooKeeper / etcd) - System Design

There is a small category of infrastructure that is boring on the surface and terrifying underneath: the thing that every other service leans on to agree with itself. A distributed lock service is that thing. It answers questions that sound trivial and are not: who is the current leader of this shard, which one of these three replicas is allowed to write right now, has the config changed, is node 4,812 still alive. Every microservice in a 10,000-node cluster calls it, often on a hot path, and if it hands back a wrong answer even once - two leaders, two lock holders, a stale config - you get split brain and data corruption that surfaces days later. ...

27 min

Design Google Translate - System Design

Google Translate looks like a text box: you type “hello,” you get “hola,” done. That intuition survives one short sentence. The moment you ask “hello” to become fluent Japanese, or you paste a 40-page PDF, or two people hold a live spoken conversation across a language barrier, the box turns into a distributed system whose real job is to run large neural machine translation (NMT) models on GPUs/TPUs at sub-second latency, across 100+ languages meaning 10,000+ possible language pairs, while translating billions of words a day - and to do that without lighting a datacenter’s worth of accelerators on fire. The interesting part is not “map word A to word B.” It is: a stateless serving tier that turns arbitrary input (a phrase, a whole document, a web page’s DOM, a stream of speech) into segments, batches those segments across users to keep expensive accelerators busy, routes each segment to the right model for its language pair, caches the enormous repeat-translation traffic so most requests never touch a GPU, and streams partial results back fast enough that a conversation feels live. Let me build it properly. ...

32 min