Choose vs poll vs epoll

I am developing a new server that should support thousands of UDP connections (somewhere around 100,000 sessions). Any input or suggestions you can use?

+52
linux sockets epoll
Oct 28 2018-10-10T00:
source share
3 answers

The author of CURL wrote a wonderful article about the poll vs select event libraries .

+40
Dec 30 '11 at 1:18
source share

Answer: epoll if you use Linux, kqueue if you use FreeBSD or Mac OS X, and I / O completion ports if you are on Windows.

Some of the additional things you (almost certainly) want to explore are:

  • Load balancing methods
  • Multithreaded network
  • Database architecture
  • Perfect hash tables

Also important Note that UDP has no "connections", not TCP. It would also be in your interest to start small and large-scale, as debugging network solutions can be a difficult task.

+35
Nov 05 '10 at 21:58
source share

Linux: epoll FreeBSD: kqueue Windows: ??

There are wrapper libraries like libevent and libev that can abstract this for you.

+16
Oct 28 '10 at 4:48
source share



All Articles