Implementation and comparison of various socketchannel supported by Netty

Source: Internet
Author: User

The performance from low to High is as follows:

    • Oiosocketchannel: Traditional, block-type programming.
    • Epoll is automatically selected under Linux after Niosocketchannel:select/poll or EPOLL,JDK 7.
    • Epollsocketchannel:epoll, Linux only, provides additional options.
    • EPOLLDOMAINSOCKETCHANNEL:IPC mode, only the client, the service side in the same host situation, starting from 4.0.26 Support, see https://github.com/netty/netty/pull/3344.

For a detailed explanation of Unix domain sockets, refer to:

http://blog.csdn.net/guxch/article/details/7041052

For the vernacular interpretation of Epoll/poll/select, refer to:

https://my.oschina.net/dclink/blog/287198

Epoll usage and help manuals:

Http://man7.org/linux/man-pages/man7/epoll.7.html

Http://blog.chinaunix.net/uid-311680-id-2439723.html

Http://www.tuicool.com/articles/y6je2yf

Http://www.tuicool.com/articles/mQ3iAr

For more information about the time-out setting for connections in Epoll mode, refer to:

Http://stackoverflow.com/questions/6590531/how-do-i-implement-epoll-timeout

Implementation and comparison of various socketchannel supported by Netty

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.