Ever heard someone casually say, "We need to introduce caching and horizontal scaling"?
And you're just sitting there like...
BRO, I WAS JUST TRYING TO BUILD A WEBSITE.
System design has a talent for making perfectly normal ideas sound like they require a PhD and three infrastructure teams.
So let's decode a few terms without making this a 3-hour lecture.
1. Caching β Stop doing the same work again and again.
Imagine you order the same coffee every morning.
Would you ask the barista to look up the recipe from scratch every single time?
Hopefully not.
That's basically caching.
You store frequently needed data somewhere it can be accessed quickly instead of fetching or calculating it repeatedly.
A tiny JavaScript example:
const cache = new Map();
function getUser(id) {
if (cache.has(id)) {
console.log("From cache!");
return cache.get(id);
}
// Imagine this is an expensive database call
const user = { id, name: "Shruti" };
cache.set(id, user);
return user;
}
getUser(1); // Fetches and stores
getUser(1); // Uses cached result
Congratulations. You just saved yourself an unnecessary trip.
In real applications, caching needs expiration, invalidation, and sometimes distributed storage. But that's another headache.
2. Load Balancing β Don't dump all the work on one server.
Imagine 1,000 people entering a restaurant.
There's one waiter.
That poor soul is about to resign.
Now imagine five waiters distributing the orders.
That's load balancing.
A load balancer distributes incoming requests across multiple servers so one server doesn't become the main character for all the wrong reasons.
3. Rate Limiting β Bestie, slow down.
Imagine someone refreshing your login endpoint 10,000 times in a minute.
At some point, the server needs to say:
"Okay, that's enough."
Rate limiting controls how many requests a user or client can make within a specific time window.
A tiny Express example:
const rateLimit = require("express-rate-limit");
const limiter = rateLimit({
windowMs: 60 * 1000, // 1 minute
max: 10 // 10 requests per window
});
app.use("/api", limiter);
Now your API has boundaries.
Honestly, we could all use some rate limiting.
And that's three system design terms you can now casually throw into a conversation without immediately opening 17 browser tabs.
Your turn: Which system design term sounded unnecessarily complicated when you first heard it?
Let's make engineering sound less like black magic.
Brain Buffering π§ β Come curious, leave slightly less confused.
Top comments (7)
Idempotency π This is another one that sounds complicated at first, but the concept is pretty simple. It's about making sure that performing the same operation multiple times has the same effect as doing it once. For example, clicking the payment button twice shouldn't charge you twice.
Exactly, thank you hema! π€β¨
Partitioning and sharding for me! πΉ
I still don't fully understand when to use which or how to design them properly in practice.
Maybe that's a topic for your next article! ππ
Alrighty i was asked that in my first interview btw ππΉ
Oh nooo! πΉ
Understanding the concepts is one thing, but understanding the trade-offs and knowing when to actually apply them is the really difficult part! πΏπΏ
The server analogy really clicked.
And the rate limiting, I always heard about it but never tried to know it.
Now, its clear!
Ahaa we gotchu broπͺπ»β¨