Tech
TCP or UDP? Choosing the Right Protocol
1. Analogy
Imagine you're sending your friend a 500-page book.
You have two delivery companies.
The first guarantees every page arrives in order.
If page 187 gets lost, they'll resend only page 187.
The second company is incredibly fast.
They throw pages onto trucks immediately.
If page 187 disappears...
They simply keep driving.
Which company would you choose?
The answer depends on what you're sending.
That's exactly why the Internet has TCP and UDP.
Why One Prot...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to