Breaking Down Scale: Memory, Bandwidth & Load in Simple Terms
Hi Curious Heads! 👋If you have followed the series, you would have seen how quickly we fall into issues as […]
Anmoldeep Singh · 27 Jun 2025
Part of System Design with Anmoldeep
Anmoldeep Singh ·
Let’s go back to our last simple system design-
Now It is all good, everything works, until,
Our users increase and overwhelm the web server 🙁
What’s Happening?
The humble small CPU is being overwhelmed with abundance of requests, being unable to quickly handle each, essentially losing ability to hold a connection, and then, crash and stop responding.
What to do next?
First of all, we need our servers to recover from such crashes automatically.
So we create a OS level service to run our app and also restart it in case of crashes.
A good example – https://pm2.keymetrics.io/
This is essentially doing the same job of getting our web server process back up and running in case of crash, every time, just like saying –
Source – x.com
Such system load can more likely be a DoS (Denial of Service) or DDos (Distributed Dos) attack, so we need to ensure are these legit user load, or attack load.
In case it is an attack, we need to do either of these –
src – imgflip
We can do this –
Vertical Scaling
**Ans: Load Balancer 🙂
**A simple node in our design that focuses on the exact problem in hand – balancing load among multiple server instances.
Now our system looks far better, we have a highly available system, that we can easily scale as per our future needs, even though that means slower read and writes, as every request updates data on the same DB!
src – custom made meme 🙂
Well, that’s indeed bad, but hey we have a system up and running!
Even if not completely functional 😂
We will work on that in next one – Handling Trade-offs
Till then,
Stay Curious,
and Keep Learning! 😀
Peace,
Anmoldeep.
Hi Curious Heads! 👋If you have followed the series, you would have seen how quickly we fall into issues as […]
Anmoldeep Singh · 27 Jun 2025
hello learners! This is the first step in your system design journey, and being very honest, I know how much […]
Anmoldeep Singh · 11 May 2025