logoalt Hacker News

andersmurphytoday at 5:46 AM3 repliesview on HN

I think a lot of the time when people say the network is slow. They really mean their backend is slow.

With a fast backend ~1-5ms response times (not even that fast). Streaming compression over something like SSE to keep your response sub 1kb packet (roughly an ethernet MTU).

With a push based model, pushing data to a user is half their RTT latency. They will only experience their full RTT on actions they trigger.

Now the network to you is distance to the server (not your rail/nextjs backend taking 400ms). Things like 4G and 3G are fine. The real problem is when you have such bad signal you effectively have no down or up.


Replies

fhubtoday at 6:14 AM

1-5ms response time is clearly hard for most real world endpoints.

show 1 reply
swiftcodertoday at 6:44 AM

> With a fast backend ~1-5ms response times (not even that fast).

Even though benchmarks suggest this sort of performance should be trivial, most real-world servers I have interacted with do not reliably managed to process a request, make a roundtrip to the DB, and return a response in <5ms

troupotoday at 7:36 AM

Reddit's reaponses are rarely above 400ms. And yet their frontend routinely takes several seconds to render that response