3 ms·
I don't think it's so much that a second is more significant on the front-end. An entire second is practically an eternity on the backend. The main difference
by TheCoelacanth 6y ago
I don't think it's so much that a second is more significant on the front-end. An entire second is practically an eternity on the backend.
The main difference is how much latency a typical request is likely to have.
On the backend, this optimization would frequently only save you 50 ms, because you are making a low latency call to another service that you are running in the same datacenter.
- brundolf 6y agoThat's a good point. And I guess the payloads will often be smaller, because the large datasets often just stay in the DB until needed. Whereas if the front-end needs to load data for a huge table (from a location that's obviously not in the same datacenter), it's easy for this optimization to save you hundreds of milliseconds if not entire seconds.