Skip to content
Preptima
mediumConceptMidSenior

When would you choose UDP over TCP, given that TCP is reliable and UDP is not?

4 min readUpdated 2026-08-15

Answer

Short answer

TCP guarantees an ordered byte stream and pays for it with head-of-line blocking and retransmissions that arrive too late to be useful.UDP is right when a late packet is worthless, when you need multicast, or when you intend to build your own reliability with different trade-offs.

Was this answer helpful?

Likely follow-ups

  • QUIC runs over UDP and is reliable. What did that let it change?
  • You are sending 200-byte telemetry every second from 50,000 devices. Which do you pick and why?
  • What does UDP do about congestion, and why should you care about being a good citizen?
  • Why is DNS traditionally UDP, and when does it fall back to TCP?

Related questions