Network

What is the difference between TCP and UDP?

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

TCP establishes a connection between the client and the server to guarantee the order of the packages, on the other hand, UDP does not establish a connection between the client and server and doesn't handle package orders. This makes UDP more lightweight than TCP and a perfect candidate for services like streaming.

Penguintutor.com provides a good explanation.