UDP with unique fds for each "connection" #198
Labels
enhancement
New feature or request
pending development
Requested PR owner to improve code and waiting for the result
proposal
Proposal for this repo
stale
Milestone
Is your feature request related to a problem? Please describe.
I have heard the linux kernel performs significantly better when using a unique socket for each UDP 'connection', because the routing data will be saved internally. (in our application, hundreds of thousands of packets sent to the same client)
Describe the solution you'd like
Possible to use unique file descriptors for each UDP 'connection' inside of gnet
Describe alternatives you've considered
Writing the code myself, using gnet as is (and potentially missing out on kernel performance)
Additional context
I don't actually know that much about linux networking performance. Our application involves maintaining streams of data between thousands of clients, each sending ~150 packets/second. Currently using the go/net package and it's become a bottleneck. From some cursory googling and my experience from a C server I worked on a decade ago, individual FDs for UDP sockets is the way to go. Hopefully you know more!
The text was updated successfully, but these errors were encountered: