If it guarantees delivery and preserves order, what’s the difference vs. TCP?
Re:Never* Use Datagrams
by colanderman on Sunday June 23, 2024 @10:21AM
(#40767672)
Delimited messages vs. stream.
Re:Never* Use Datagrams
by throwaway7ahgb on Monday June 24, 2024 @08:49AM
(#40775381)
Much much faster, TCP is very slow and complicated (relatively). This can be sped up by not using the kernel using something talking directly to hardware.
I've seen a few implementations of a reliable UDP messaging stream (using multicast or broadcast). It uses a sequencer to ensure all clients receive the correct message and order.
It can be extremely fast and reliable.