From 82f4df7e3f6659b90580a7fd79da079b2e427dfa Mon Sep 17 00:00:00 2001 From: Farhim Ferdous <37705070+AluBhorta@users.noreply.github.com> Date: Tue, 28 Mar 2023 13:08:00 +0600 Subject: [PATCH] Add TCP & UDP use case conditions Add use cases of when to choose TCP over UDP or vice versa that can help others make a better decision. The proposed changes are based on guaranteed & ordered data delivery that TCP provides. --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index eb1006bf..c0d80f15 100644 --- a/README.md +++ b/README.md @@ -1481,6 +1481,8 @@ TCP is useful for applications that require high reliability but are less time c Use TCP over UDP when: +* You want the guaranteed delivery of your data +* You want your data to arrive in order to the destination * You need all of the data to arrive intact * You want to automatically make a best estimate use of the network throughput @@ -1501,6 +1503,8 @@ UDP is less reliable but works well in real time use cases such as VoIP, video c Use UDP over TCP when: * You need the lowest latency +* You don't need guaranteed delivery of data +* You can accept out of order delivery of data * Late data is worse than loss of data * You want to implement your own error correction