Skip to interview prep
Apexed

35. Compare TCP and UDP.

EasyOS, networking & concurrency

Technical
Show model answer

TCP is connection-oriented and reliable: ordered delivery, retransmission and congestion control. It suits web pages, APIs and file transfer.

UDP sends independent datagrams without guarantees, giving lower latency and overhead. It suits real-time voice, video, games and DNS, where late data is worse than lost data.

Compare TCP and UDP. — Software engineering interview question — Apexed