Content Deep Dive
Everything you ever wanted to know about UDP sockets but were afraid to ask, part 1
Blog post from Cloudflare
Post Details
Company
Date Published
Author
Marek Majkowski
Word Count
1,551
Language
English
Hacker News Points
69
Summary
The text discusses the inner workings of User Datagram Protocol (UDP) within Cloudflare's Spectrum service. It highlights that while UDP is simple in principle, there is a lot of domain knowledge needed to run things at scale. The text covers topics such as connected vs unconnected sockets, handling packets from wildcard sockets, and the challenges of graceful server restarts for UDP services. It also introduces an "established-over-unconnected" technique that can help manage long-lived flows in a UDP environment. The text concludes by noting that there are still many complexities to explore within the realm of production UDP servers.