User Datagram Protocol (UDP) is a high-performance way to communicate short packets of data to one or more recipients.
UDP transfers data faster, with higher throughput and lower latency, than TCP, because UDP does not require the overhead that TCP does. UDP does not guarantee successful and proper delivery of the data you send, and if you send data in multiple packets, they may not arrive at the destination in the order you sent them. For more reliable network communication, you can use TCP.
You use UDP to send datagrams between processes or processors without establishing a connection between the sender and the receiver. A datagram is a basic data transfer packet that contains the data you want to transmit and a header that indicates the source and destination address.