4 UDP Use Cases
UDP workloads where low latency or one-to-many delivery matters more than reliability.
UDP is a minimal transport protocol. It gives an application source and destination ports, a length field, and a checksum. It does not create a connection, retransmit lost packets, guarantee ordering, or slow a sender down to match the receiver. That sounds primitive until you look at workloads where delay matters more than perfect delivery, or where the application already has its own idea of what reliability should mean.
Those constraints explain why UDP keeps appearing in the same families of systems.
1. Live audio and video
Real-time media is the classic UDP workload. Voice calls, video meetings, and interactive streaming care more about continuity than about recovering every missing packet. If one audio packet arrives too late, replaying it can be worse than dropping it because the listener hears delay and jitter instead of a tiny gap.
UDP lets the application make that tradeoff directly. Protocols such as RTP can attach sequence numbers and timestamps so the receiver can reorder packets, detect loss, and decide how much buffering to tolerate. Codecs then hide some damage with concealment and forward error correction.
The failure mode is obvious: a network with sustained loss or strong jitter still degrades the call. UDP does not fix a bad path. It only avoids adding TCP-style retransmission delay on top of that path.
2. DNS lookups
Most DNS traffic is small request-response exchange. A client asks for a record, a resolver replies, and the conversation is finished. UDP is a good fit because there is no need to establish a connection for a single short question.
That keeps lookup latency low and server overhead small, which matters because DNS sits on the critical path for almost every other network activity. Recursive resolvers can handle large volumes of traffic cheaply when each query is just a datagram in and a datagram out.
There are limits. Large DNS responses may be truncated, DNSSEC adds size, and zone transfers use TCP instead. The protocol works over UDP because the common case is small and short-lived, not because UDP is universally sufficient for all DNS operations.
3. Multicast and one-to-many market data feeds
UDP is also common where one sender must distribute the same data stream to many receivers at very low latency. Multicast market data is the textbook example. An exchange publishes quote updates, and many subscribers consume the stream simultaneously.
Using TCP for that pattern would require a separate connection and backpressure relationship for each receiver. One slow consumer could force extra buffering or a different send rate. UDP keeps the publisher simple and fast. Receivers process packets independently, and the sender does not wait for acknowledgements.
The cost is that each receiver has to handle loss itself. Production feeds usually add sequence numbers, gap detection, and a replay or recovery channel over another transport. UDP carries the hot path because it is fast. A separate control path repairs the misses.
4. IoT telemetry and lightweight control protocols
Small devices often have limited memory, battery budget, and radio bandwidth. For sensors that send brief status updates or devices that exchange short control messages, UDP avoids the overhead of maintaining many concurrent connections.
That is why protocols such as CoAP are built on top of UDP. They can add only the reliability features they actually need, such as confirmable messages or application-level retries, instead of inheriting the full behaviour of a connection-oriented transport.
The operational constraint is that reliability becomes your problem. If the command absolutely must arrive once and only once, the application needs idempotency, acknowledgements, and retry rules. UDP is attractive in constrained systems precisely because it is small. The application has to be disciplined enough to use that freedom safely.
UDP is not the fast option by default and TCP is not the safe option by default. The real question is whether the application wants transport-level recovery or whether it needs tighter control over latency, fan-out, and delivery semantics than TCP can provide.