Grokking Operating Systems and Networking for Backend Engineers
Vote

0% completed

​

UDP: When a Datagram Is Enough

Checkout sent 3,000 metric lines to a metrics agent on the same machine, and every one of the 3,000 sendto calls reported success. The agent read 136 of them. The kernel threw the other 2,864 away, and neither program received an error.

That result is not a bug. The metrics travel over UDP, and UDP is designed to do very little: it carries one message from one port to another and promises nothing more. For metrics, that is often the right choice. For an order, it would be a serious mistake.

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content