Identifying Bottlenecks
Let’s go back to our last simple system design- Now It is all good, everything works, until, Our users increase […]
Anmoldeep Singh · 18 May 2025
Part of System Design with Anmoldeep
Anmoldeep Singh ·
Hi Curious Heads! 👋
If you have followed the series, you would have seen how quickly we fall into issues as we scale…
First one thing struggles to keep up, and shortly it is all a forest fire 🔥 in our VPCs!
To mitigate this, we need to have an idea of growth rates 📈 and point of failures ❌ to ensure we can scale correctly as per need and not waste our money 💸 to random scaling just to keep things running…
Ans: Back-of-the-envelope Estimations 🧾
Because they are so simple 💡 that we can do them on the go — over an envelope ✉️ or even a paper napkin 🍽️ once we’re good enough on our numbers and thinking 💯.
Let’s take a simple, well-known app to use as a reference —
YouTube 🎥🙂
Entities (oversimplified):
Types of Data:
| Component | Resource Need |
|---|---|
| Content Distribution | Network Bandwidth 🌐 |
| User + Comments + Video Metadata | Database Storage 🗃️ |
| Videos | Object Storage 📦 |
User Table
1,000,000 x 40B = 40,000,000 Bytes ≈ 40MBUser Content
1M x 10 x 80B = 800,000,000 Bytes ≈ 800MBAnd we haven’t even included indexing, caching, or relational tables yet!
Let’s assume each video view streams 2MB data on average.
If we have 500K Daily Active Users (DAU), each watching 5 videos/day:
So:
500K / 50K = 10 servers minimum 🖥️
Add redundancy, spikes, and background jobs and the number easily doubles.
These back-of-the-envelope estimations don’t need to be perfect — but they give you a gut-check framework to know what’s coming your way.
They help you:
Next time you think “Will our system handle this?”,
Don’t panic — pull out that napkin and do the math 💯🧾
See you in the next one!
– Anmoldeep 👨💻
Let’s go back to our last simple system design- Now It is all good, everything works, until, Our users increase […]
Anmoldeep Singh · 18 May 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