epoll
/kqueue
/IOCP so no need for libevent
or similar.For reference only, since using Go means we gain automatic integration.
From http://nginx.org/en/docs/events.html
Method | Linux | macOS | Windows | BSD | UNIX | Notes |
---|---|---|---|---|---|---|
select | X | X | X | X | X | Least efficient, widest support |
poll | X | X | X | X | Low efficiency, wide support | |
kqueue | X, Go | X | Go | Efficient | ||
epoll | Go | Efficient | ||||
/dev/poll | X | Efficient | ||||
eventport | Solaris 10+, Go | Problems, use /dev/poll instead | ||||
IOCP | X, Go | Recommended for Windows |