What is the difference between TCP and UDP?

3 stars If you are short on time, start with this one.

In one or two sentences
TCP opens a connection and guarantees order and delivery. UDP just sends datagrams with no connection, which is light.

Think of your own answer first

Say it out loud, or type it below. What you type never leaves this device.

Follow-up questions

These are likely next questions from an interviewer. Think of your answer first, then press the button.

  1. 1 / 3

    What if you need reliability over UDP?

Sources checked