May we use cookies so Meta, Google, LinkedIn and ChatGPT see your visit and we learn which ads work? PrivacyMay we use cookies to see which pages help, and let Meta, Google, LinkedIn and ChatGPT see your visit, so we know which of our ads work? That way we spend less on ads that do not work. We do not sell your data, and the site works the same if you decline. You can change your answer at any time under Cookie settings at the foot of the page. Privacy policy
Loading...
This idea carries a full system design question on its own. Each walks through the full answer.
System Design Masterclass · Cloud Infrastructure
Free preview: the first 2 parts of this 8-part lesson.
Already bought the course? Sign in to read the whole lesson.
this lesson is part of
System Design Masterclass
Unlock this lesson and the 751 other paid lessons
$35 once, by card or PayPal
See the System Design courseread the rest of this lesson in
System Design Masterclass
Unlock this lesson and the 751 other paid lessons
$35 once, by card or PayPal
See the System Design coursein Cloud Infrastructure
This lesson is part of the full System Design Masterclass. Unlock it along with 769 other lessons for a one-time payment.
One-time payment by card or PayPal
Get Lifetime AccessOne-time payment: UPI, card or netbanking
Get Lifetime Access18 Foundation lessons are free, no payment needed. Try them now
It is easy and good
“It is really nice and good Please join the course”
Amazon calculated that every 100ms of added costs them 1% in sales revenue. At their scale, that is billions of dollars per year. Google found that adding 500ms of latency to search results reduced traffic by 20%. Walmart discovered that for every 1 second of page load improvement, conversions increased by 2%.
Network latency is often the dominant component of total response time, especially for globally distributed applications. Your server-side processing might take 5ms, but if the network round trip from a user in Mumbai to your server in Virginia adds 200ms, that is what the user actually feels.
Unlike server-side optimization (where you hit diminishing returns after profiling a few hot paths), network latency optimization can yield dramatic improvements with relatively straightforward changes. Moving your servers closer to users, reducing protocol round trips, compressing payloads, and choosing the right transport protocols can cut perceived latency by 50-80% without touching a single line of application code.
The physics are non-negotiable: light travels at roughly 200 km/ms in fiber optic cable. A round trip from New York to London (11,000 km of cable) takes at minimum 55ms just for photons. You cannot optimize past physics. But you can stop making it worse.