What is the difference between UDP and TCP?

TCP is backed by acks and retries to make sure you data gets where it’s going. UDP is connectionless and “fire and forget”. UDP is mostly used for streaming type applications, where if you lose some data you don’t need to try to send it again.

Which one you use depends on the application. For example, a web server uses TCP.

Leave a Comment