TCP vs UDP.
Registered mail that is tracked and re-sent, versus postcards you fire off and hope arrive.
- Sign here. And here.1
TCP is registered mail: every chunk numbered, tracked, and signed for.
- 2
Lose a piece and it’s noticed and sent again — so it all arrives, in order.
- 3
The catch: everything behind a lost piece waits for the resend (head-of-line blocking).
- No time, go go go!4
UDP is a postcard cannon: fired off fast, no receipts, no resending.
- 5
Some arrive late, out of order, or not at all — and UDP genuinely doesn’t care.
- 6
Every byte matters (files, email)? TCP. Fast-and-live (calls, video, games)? UDP.
Semicolony semicolony.dev/eli5/tcp-vs-udp/comic