📌 Why Scaling Fails – Episode 5
#systemdesign #tech #interview
📌 Why Scaling Fails – Episode 5
Traffic doubled.
CPU utilisation is 30%.
Latency still spiked. Why?
Because CPU is not the only resource in your system.
Here’s what most engineers miss 👇
1️⃣ I/O Wait (The Silent Killer)
Your service may be:
* Waiting on database responses
* Waiting on disk reads
* Waiting on network calls
* Waiting on third-party APIs
CPU looks free.
Threads are just blocked.
Low CPU ≠ fast system.
2️⃣ Database Connection Pool Exhaustion
Traffic doubled.
Your connection pool size didn’t.
Now requests are:
* Queued
* Waiting for free DB connections
* Timing out
CPU is relaxed.
Your DB pool is choking.
3️⃣ Lock Contention
More traffic = More concurrent writes = More row or distributed locks.
Requests wait for locks. Latency spikes.
CPU still looks fine.
4️⃣ Thread Pool Saturation
Your app server has:
* 200 worker threads
* Traffic suddenly needs 400
Requests start queuing.
CPU doesn’t spike because threads are waiting.
Throughput collapses.
5️⃣ Downstream Rate Limits
Maybe your service calls:
* Payment gateway
* External API
* Auth service
They rate limit you.
You wait. Latency grows.
Kubernetes shows green.
CPU shows 30%.
Users see slowness.
🧠 Real Lesson
Scaling compute fixes compute bottlenecks.
But most production issues are:
* I/O bound
* Lock bound
* Network bound
* Dependency bound
CPU utilisation is a misleading metric.
Senior engineers look at:
* p95 latency
* I/O wait
* Connection pool usage
* Queue length
* Dependency response time
If you’ve debugged a “low CPU but slow system” issue…
Comment “I/O”👇
#systemdesign #tech #interview #production #softwareengineer
(CPU utilisation vs latency
Low CPU high latency issue
Backend performance debugging
Kubernetes performance issues
Scaling performance problems
Production latency spike
Traffic increase performance issue
Microservices bottleneck)
Comments
Comments from the original post on Instagram
No comments yet
