When is it appropriate to use UDP instead of TCP? [closed]

Since TCP guarantees packet delivery and thus can be considered “reliable”, whereas UDP doesn’t guarantee anything and packets can be lost. What would be the advantage of transmitting data using UDP in an application rather than over a TCP stream? In what kind of situations would UDP be the better choice, and why?

I’m assuming that UDP is faster since it doesn’t have the overhead of creating and maintaining a stream, but wouldn’t that be irrelevant if some data never reaches its destination?

24 Answers
24

Leave a Comment