System Design Is Just "It Depends" With Extra Steps
Load balancers, caches, sharding, CAP and Kafka, translated from group-chat jargon into plain words, plus the jokes the whole community keeps making about them.

Every placement season, the same thing happens.
Someone in the group chat says "bro, learn system design, every company asks it now." Someone else drops a 4-hour video called System Design Complete Course. Everyone saves it to Watch Later. It lives there now. Like that gym membership.
Then you open a senior's interview notes and it's a spell book. Load balancer. Sharding. CAP theorem. Kafka.
So here's a translation of the words people throw around, plus the jokes the whole community keeps making about them. Most of it is simpler than it sounds.
"It depends"
The official answer to every system design question. Ask a senior engineer anything and they'll stare into the distance and say "well, it depends."
Sounds like a dodge. It isn't, but you do have to say what it depends on. Every choice is a trade-off: making reads fast often makes writes slower, and keeping more copies of your data makes it safer but harder to keep in sync.
In an interview, "it depends" followed by silence is a fail. "It depends on whether we care more about speed or about never showing old data, and here's what I'd pick" is a pass.

Scalability, or "will it survive"
Scalability means: when more people show up, does your app keep working or fall over?
Every college project gets designed for a million users. You have 12 users. 11 of them are you, on different browsers. The twelfth is your roommate, who only signed up because you begged.
Two ways to scale:
- Vertical: buy a bigger machine. Easy, until there's no bigger machine to buy.
- Horizontal: buy more machines and split the work. Harder, because now the machines have to agree on things, like which one remembers that you're logged in.
Most of system design is cleaning up after horizontal scaling.
Load balancer
You have three servers now. Who decides which one gets your request?
The load balancer. It's the uncle at a wedding buffet going "that counter is free, go there." It spreads requests out so no server gets crushed, and if one server stops responding to its checks, it stops sending people there.
Cache: "just add a cache"
When something is slow, the reflex is "just add a cache." You keep a copy of the data somewhere fast, usually in memory (Redis is the popular one, basically a very fast store that lives in RAM), so you don't hit the slow database every time.
Works great. Until the data changes and the cache still has the old copy. Now half your users see the new price and half see the old one. Knowing when your saved copy has gone stale is called cache invalidation, and it's famously painful.
There's an old line usually credited to Phil Karlton: "There are only two hard things in Computer Science: cache invalidation and naming things." The internet added a third: off-by-one errors.

SQL vs NoSQL
The longest-running fight in the community.
- SQL (Postgres, MySQL): data in tables with fixed columns. You can combine tables in one query (a join), like "give me every user with their orders." Boring in the best way.
- NoSQL (MongoDB, Cassandra, DynamoDB): store data in looser shapes, like one document per user with their orders tucked inside. Built to spread across many machines.
In 2010 someone made a cartoon called MongoDB is Web Scale, where one character answers every single objection with "but it's web scale." It's still the standard roast for anyone who picks a database because the name sounds cool.
Real answer: it depends. If your data has clear relationships (users, orders, payments), SQL is usually the safe start. NoSQL shines when the data is huge, simple to look up, and spread out.
Sharding
Your database got too big for one machine, so you split it. Users A to M on one database, N to Z on another. Each piece is a shard.
The catch: no single database has the full picture anymore. "How many users ordered more than 10 times?" now means asking every shard and adding up the answers.
And if way too many of your users have names starting with S, that one shard does most of the work while the others nap. That's called a hot shard.
Idempotency
Scary word. Simple idea.
You click "Pay." The page hangs. You click again. Did you just pay twice?
In a good payment system, no. Each payment request carries a unique ID, so when the same request shows up a second time, the server recognises it and does nothing new. Doing it twice has the same effect as doing it once. That's idempotency.
Every time you rage-clicked a button and it still worked fine, someone thought about this.
Rate limiting
You've already met it. It's the "too many attempts, try again in 30 seconds" screen after you got your password wrong four times.
It caps how many requests one user (or one bot) can send in a given time, so nobody can flood the servers.
Eventual consistency
When you have copies of data on several servers, an update doesn't reach all of them at the same instant.
Eventual consistency means: if nobody changes it again, every copy ends up the same. Eventually. Like when you change your profile picture and your friend still sees the old one for a minute.
Fine for likes and view counts. Not fine for your bank balance.
CAP theorem
Here's the setup. Two servers both hold your bank balance. The cable between them breaks, so they can't sync. (Networks do break. This is called a partition.) You ask one of them for your balance. What should it do?
- Refuse to answer until it can be sure the number is right. That's Consistency.
- Answer anyway, maybe with an old number. That's Availability.
During the break, it has to pick one. Wrong number or no number. Pick your poison.
That's the CAP theorem: Consistency, Availability, Partition tolerance. People say "pick two out of three," which is close enough for the group chat. The interview version: when there's no partition you can have both, and when there is one, you choose.
Microservices
Instead of one big app (a monolith), you split it into small services that talk over the network. One handles users, one handles payments.
For a big company with a hundred engineers, that's how teams stop stepping on each other. For a college project, it's a great way to turn one bug into twelve network calls. Doing it badly even has a name: the distributed monolith, all the pain of microservices and none of the benefits.

Queues, and "just use Kafka"
Some work can wait. Sending the welcome email, resizing your uploaded photo. You drop a message in a queue and a background worker handles it later.
Kafka is a huge, very reliable queue that big companies use. "Just use Kafka" is the new "just add a cache." Sometimes right. Often like hiring a truck to deliver one samosa.
Kubernetes
It runs your app (packed into containers, ready-to-run copies of your app) across many machines, restarts it when it crashes, and adds more copies when traffic spikes.
It also runs on YAML. So much YAML.

The interview itself
The classic prompt: "Design Twitter." Or WhatsApp. In 45 minutes, on a whiteboard, with a marker that's running out of ink. Real companies needed years and hundreds of engineers.
Nobody expects you to build Twitter. They want to see you:
- Ask what it actually needs to do, and for how many users.
- Draw the simple version first.
- Find what breaks when it grows.
- Fix that, and say what you gave up to fix it.
Where to actually start
Skip the 4-hour video for now. Pick one app you use every day, your college portal counts, and draw boxes for how you think it works. Then read real engineering blogs and outage write-ups. Companies publish what broke and why, and it's the best free system design course there is.
And next time someone in the group chat asks a system design question, you know the answer.
It depends.

ssn@codingclub:~$ discussion_
// Questions & conversations
Ask a question, share an idea or leave a reply.
Sign in with GitHub to join the conversation.