Skip to content
  • TCP vs UDP · API Design

TCP vs UDP

LearnViaNotes @learnvianotes· 1 min read

These transport protocols determine how data physically moves between machines. Everything above — HTTP, WebSockets, gRPC — runs on top of one or the other.

PropertyTCPUDP
ConnectionConnection-oriented (handshake)Connectionless
ReliabilityGuaranteed delivery + orderingNo guarantees
SpeedSlower (overhead)Faster
Header size20 bytes minimum8 bytes
Use caseHTTP, email, file transferVideo, gaming, DNS, VoIP

Free for students and teachers

Write notes like this one

Cards for every idea, quizzes and flashcards, read aloud — on the web and your phone.

Something wrong with this note? Open it to report