TCP vs UDP: When Each Wins, in Plain Terms

TCP and UDP are not interchangeable. The choice is workload-shaped; the consequences are operational.

What each guarantees

TCP and UDP make opposite trade-offs. Pick by what your workload actually needs the network to do, not by habit.

When TCP wins

When UDP wins

UDP wins when retransmission is worse than loss, when state is small, or when the application can do reliability better than the kernel.

HTTP/3 case study

HTTP/3 on QUIC is the canonical example of UDP done right. The application owns reliability and gains capabilities TCP cannot offer.

Antipatterns

What to do this week

Three moves. (1) Apply this pattern to your highest-risk network path. (2) Measure the failure mode rate before/after. (3) Document the change so the next incident-responder inherits the knowledge.