Skip to main content

Posts

Showing posts with the label System Design

American Express System Design: How Millions of Card Transactions Are Processed

American Express processes something like eight billion card transactions a year — roughly 250 every second on average, with much higher bursts around holidays and lunch hours — and it has to decide "approve" or "decline" on almost all of them in well under a second, every time, with no room to say "try again in a minute." That single constraint — real money, real time, zero tolerance for "the database is busy" — is what makes payment-network engineering one of the hardest, most instructive corners of distributed systems design. 💳 Why does this matter if you don't work in payments? Because every hard problem in system design shows up here in its most unforgiving form: caching with money on the line, sharding a database that can never lose a row, an event pipeline that must never silently drop a settlement record, and a fraud model that has roughly the time it takes light to travel 600 kilometers to make a life-or-death-for-your-wallet dec...

Truecaller System Design: How Caller ID and Spam Detection Work at Scale

A number that has never texted you, never been saved, never been seen by your phone before — rings, and a name appears on your screen before the second ring. That's a real-time reverse-lookup problem running against a database of billions of phone numbers , and the answer has to arrive in the few hundred milliseconds between "incoming call event fired" and "phone actually rings." Get it wrong and either the call rings with no answer (bad UX) or, worse, the wrong name shows up (trust destroyed instantly). Truecaller solves this with the same category of engineering problem Twitter solves with fan-out — one write (a contact getting saved) potentially needs to be visible to millions of future readers, and the expensive work has to happen before the read, not during it. Let's design the whole system, the way you'd whiteboard it in a Google or Meta system design interview. 💡 Numbers That Matter — Interview-Scale Assumptions 📱 Assume ~400M+ monthl...