2 ms·
UDP will give you better performance. TCP will work better in pathologically bad network conditions (either some kind of firewall, or some specific kinds of ne
by rdl 13y ago
UDP will give you better performance. TCP will work better in pathologically bad network conditions (either some kind of firewall, or some specific kinds of network loss).
The issue is that "TCP in TCP" can lead to weird interactions where you delay one packet, wait for retransmit, etc., and essentially a single packet lost can eat up a second or two.
In general I'd always try UDP, and if it doesn't work, fall back to TCP.
They're equivalent security -- it's just network performance.
- alex_doom 13y agoThanks! Good to know. Service worked flawlessly.