Hacker News new | past | comments | ask | show | jobs | submit login

Real world implementations would use OS-specific socketopts to create multiple listen sockets sharing the same port and then use one socket per thread.



You're among the 1% of engineers who both care enough to know and actually know about these kinds of facilities. For the rest of them, whatever they got at school or off Stack Overflow is as far as it goes, unless some business priority demands something different - and even in that case "throw more hardware at it" is often the route taken


The rest of them is probably, hopefully, using some library abstraction that implement this optimization.


I dunno about the BSDs but SO_REUSEPORT is a fairly recent addition. Was there a way to achieve this before then?




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: