Re:Golang is evil on shitty networks
by pclmulqdq on Thursday December 29, 2022 @10:36PM
(#34181480)
TCP within datacenters is tuned to have shorter retransmit times, and tends to use long-lived connections.
See this RFC for more info on retransmit times: https://www.rfc-editor.org/rfc/rfc6298
However, you shouldn’t be using TCP for latency-sensitive applications IMHO. Firstly, TCP requires a handshake on any new connection. This takes time. Secondly, if 3 packets are sent and the first one is lost, you won’t get those last packets for a couple hundred ms anyway (default retransmission times). So you’re better off using something like UDP. So, if you need the properties of TCP, you aren’t doing latency-sensitive anything.