Latency Kills

It doesn’t matter how fast your network can get, it isn’t going to get faster than the speed of light. And that means that there are absolute lower limits to the amount of latency, e.g., packet round-trips from NYC to SF are not going to take less than 25ms (ok, maybe a bit faster if you have a tunnel in a straight line, a straight-shot laser, and other SF-tech).
The thing about latency is that lowering latency increases engagement (•). Mind you, there are limits to this (zero latency =/= infinite engagement 😆), but still, you want to get it as low as you can, or need to.
And yeah, lets postulate that you know this, and have allowed for it — say, 200ms is fine between your app and your back-end, and this is the ballpark latency that you are seeing when your users are in NYC, and the servers are in SF.
The problem with the above is that, this is the latency for each request!
Each of your ∞ micro-services? 200ms latency.
Each of the API calls that your Most Excellent PWA is making to your servers? 200ms latency.
OUCH!
So yeah, keep track of not just the latency for each API call, but aggregatelatencies too — pyramid them up your functionality chain, and make sure that, at a task level, your latencies are acceptable. And, as a coda, realize that you’re probably going to have to bring your systems and databases closer to your users (hello multi-region deployments!)
(•) Google’s research shows that a delay of 400ms leads to a drop in search volume by 0.44% (and yes, that’s a lot. Remember — this is Google we’re talking about). And Amazon found that 100ms of latency cost 1% in sales.
In fact, when Edmunds reduced load times on insideline.com from 9sto 1.4s, page views went up 17%, and ad revenue went up 3%. The same with Shopzilla — dropping latency from 7s to 2s increased page views by 25%, and revenue by over 7%.
The bottom line is fairly straightforward reducing latency increases engagement.

Comments

Popular posts from this blog

Erlang, Binaries, and Garbage Collection (Sigh)

Spot The Difference — Deep Learning Edition