{"id":2908,"date":"2018-06-24T18:46:43","date_gmt":"2018-06-24T10:46:43","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=2908"},"modified":"2018-06-24T18:52:51","modified_gmt":"2018-06-24T10:52:51","slug":"nio-netty-%e8%a7%86%e9%a2%91%e6%95%99%e7%a8%8b%e5%85%8d%e8%b4%b9%e4%b8%8b%e8%bd%bd","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=2908","title":{"rendered":"NIO Netty \u89c6\u9891\u6559\u7a0b\u514d\u8d39\u4e0b\u8f7d"},"content":{"rendered":"<p>\n\t\u6700\u8fd1\u51e0\u5929\u6211\u5728\u5fae\u4fe1\u516c\u4f17\u53f7\u5206\u4eab\u4e86\u4e00\u5957 Docker \u7684\u89c6\u9891\u6559\u7a0b\uff0c\u6536\u5230\u5e7f\u5927\u7f51\u53cb\u7684\u5f88\u591a\u597d\u8bc4\uff01\u4ed6\u4eec\u4e00\u81f4\u7684\u8981\u6c42\u6211\u5206\u4eab\u66f4\u591a\u7684\u89c6\u9891\u6559\u7a0b\u5185\u5bb9\u3002\u4e8e\u662f\u4fbf\u6709\u4e86\u524d\u9762\u7684 HTML5\u89c6\u9891\u6559\u7a0b\uff0cLayUI\u89c6\u9891\u6559\u7a0b\uff0cSpringboot \u89c6\u9891\u6559\u7a0b\uff0cLucene\u89c6\u9891\u6559\u7a0b\uff0cGit\u89c6\u9891\u6559\u7a0b\uff0cJenkins\u89c6\u9891\u6559\u7a0b\uff0cShiro\u89c6\u9891\u6559\u7a0b\uff0cElasticsearch \u89c6\u9891\u6559\u7a0b\uff0cSpringboot\u535a\u5ba2\u89c6\u9891\u6559\u7a0b\u7b49\u3002\u4eca\u5929\u6211\u518d\u4e3a\u5927\u5bb6\u5206\u4eab\u4e00\u5957 NIO \u6846\u67b6 Netty \u7684\u89c6\u9891\u6559\u7a0b\uff0c\u5e0c\u671b\u5927\u5bb6\u559c\u6b22\uff01\n<\/p>\n<p>\n\t\u672c\u5957\u89c6\u9891\u5171\u6709\u5982\u4e0b\u8bfe\u7a0b\uff1a\n<\/p>\n<p>\n\t\u8bfe\u7a0b\u76ee\u5f55\uff1a&nbsp;<br \/>\n\t\u8bfe\u65f61\uff1aNetty\u5b9e\u73b0\u9ad8\u6027\u80fd\u5206\u5e03\u5f0fRPC\u67b6\u6784\u4ecb\u7ecd&nbsp;<br \/>\n\t\u8bfe\u65f62\uff1a\u5206\u5e03\u5f0frpc\u67b6\u6784\u7684\u6574\u4e2a\u67b6\u6784\u56fe&nbsp;<br \/>\n\t\u8bfe\u65f63\uff1a\u91c7\u7528netty\u7f16\u5199java\u670d\u52a1\u5668&nbsp;<br \/>\n\t\u8bfe\u65f64\uff1azookeeper\u5b89\u88c5\u4e0e\u64cd\u4f5c&nbsp;<br \/>\n\t\u8bfe\u65f65\uff1a\u670d\u52a1\u5668\u6ce8\u518c\u5230zookeeper\u4e0a&nbsp;<br \/>\n\t\u8bfe\u65f66\uff1anetty\u5ba2\u6237\u7aef\u7f16\u5199&nbsp;<br \/>\n\t\u8bfe\u65f67\uff1anetty\u957f\u8fde\u63a5\u5fc3\u8df3\u5305\u8bbe\u7f6e&nbsp;<br \/>\n\t\u8bfe\u65f68\uff1anetty\u5ba2\u6237\u7aef\u957f\u8fde\u63a5\u5f02\u6b65\u83b7\u53d6\u54cd\u5e94&nbsp;<br \/>\n\t\u8bfe\u65f69\uff1anetty\u957f\u8fde\u63a5\u5f02\u6b65\u5f97\u5230\u54cd\u5e94\u7ed3\u679c&nbsp;<br \/>\n\t\u8bfe\u65f610\uff1a\u4e0e\u6700\u65b0\u7248spring\u6574\u5408&nbsp;<br \/>\n\t\u8bfe\u65f611\uff1a\u670d\u52a1\u5668\u67b6\u6784\u5b9e\u73b0&nbsp;<br \/>\n\t\u8bfe\u65f612\uff1a\u5ba2\u6237\u7aef\u4e0e\u670d\u52a1\u5668\u67b6\u6784\u901a\u4fe1&nbsp;<br \/>\n\t\u8bfe\u65f613\u3001\u4f18\u5316\u670d\u52a1\u5668&nbsp;<br \/>\n\t\u8bfe\u65f614\u3001\u5ba2\u6237\u7aef\u65b0\u589e\u52a8\u6001\u4ee3\u7406&nbsp;<br \/>\n\t\u8bfe\u65f615\u3001\u4f18\u5316netty\u5ba2\u6237\u7aef&nbsp;<br \/>\n\t\u8bfe\u65f616\u3001\u5b9e\u73b0\u8d1f\u8f7d\u5747\u8861&nbsp;<br \/>\n\t\u8bfe\u65f617\u3001\u603b\u7ed3\u5e76\u4e0edubbo\u5206\u5e03\u5f0frpc\u5bf9\u6bd4\n<\/p>\n<p>\n\t\u8bfe\u7a0b\u76ee\u5f55\uff1a&nbsp;<br \/>\n\t\u7b2c1\u8bfe\u3001nio\u7b80\u5355\u4ecb\u7ecd&nbsp;<br \/>\n\t\u7b2c2\u8bfe\u3001Nio\u57fa\u672c\u7ec4\u4ef6ByteBuffer&nbsp;<br \/>\n\t\u7b2c3\u8bfe\u3001ServerSocket&nbsp;<br \/>\n\t\u7b2c4\u8bfe\u3001selector\u4e0eserversocketchannel\u7684\u4f7f\u7528&nbsp;<br \/>\n\t\u7b2c5\u8bfe\u3001SocketChannelSelector&nbsp;<br \/>\n\t\u7b2c6\u8bfe\u3001aio\u7f16\u7a0b&nbsp;<br \/>\n\t\u7b2c7\u8bfe\u3001netty\u670d\u52a1\u5668\u7684\u5feb\u901f\u5b9e\u73b0&nbsp;<br \/>\n\t\u7b2c8\u8bfe\u3001netty\u5ba2\u6237\u7aef\u67b6\u6784\u5b9e\u73b0&nbsp;<br \/>\n\t\u7b2c9\u8bfe\u3001netty\u5ba2\u6237\u7aef\u6a21\u62df\u9ad8\u5e76\u53d1\u4ee5\u53canetty5\u7ebf\u7a0b\u6a21\u578b&nbsp;<br \/>\n\t\u7b2c10\u8bfe\u3001netty\u7684\u7f16\u7801\u89e3\u7801&nbsp;<br \/>\n\t\u7b2c11\u8bfe\u3001protobuf\u7b80\u5355\u8bb2\u89e3&nbsp;<br \/>\n\t\u7b2c12\u8bfe\u3001protobuf\u4e0enetty\u6574\u5408&nbsp;<br \/>\n\t\u7b2c13\u8bfe\u3001netty\u4e0eprotobuf\u67b6\u67841&nbsp;<br \/>\n\t\u7b2c14\u8bfe\u3001netty\u4e0eprotobuf\u67b6\u67842&nbsp;<br \/>\n\t\u7b2c15\u8bfe\u3001netty http\u901a\u4fe1\u4e0espring\u6574\u5408\u67b6\u67841&nbsp;<br \/>\n\t\u7b2c16\u8bfe\u3001netty http\u901a\u4fe1\u4e0espring\u6574\u5408\u67b6\u67842&nbsp;<br \/>\n\t\u7b2c17\u8bfe\u3001netty websocket\u804a\u5929\u5ba41&nbsp;<br \/>\n\t\u7b2c18\u8bfe\u3001netty websocket\u804a\u5929\u5ba42&nbsp;<br \/>\n\t\u7b2c19\u8bfe\u3001Thrift\u8bb2\u89e3&nbsp;<br \/>\n\t\u7b2c20\u8bfe\u3001thrift\u4e0enetty\u6574\u5408&nbsp;<br \/>\n\t\u7b2c21\u8bfe\u3001thrift\u4e0enetty\u6574\u54082&nbsp;<br \/>\n\t\u7b2c22\u8bfe\u3001thrift rpc\u67b6\u67841&nbsp;<br \/>\n\t\u7b2c23\u8bfe\u3001thrift rpc\u67b6\u67842&nbsp;<br \/>\n\t\u7b2c24\u8bfe\u3001netty\u7684http\u4e0esocket&nbsp;<br \/>\n\t\u7b2c25\u8bfe\u3001\u5404\u79cd\u67b6\u6784\u6574\u54082\u4ee5\u53canety\u6e90\u7801\u5206\u6790&nbsp;<br \/>\n\t\u7b2c26\u8bfe\u3001\u8bfe\u7a0b\u603b\u7ed3\n<\/p>\n<p>\n\t\u4e0b\u9762\u662f\u90e8\u5206\u89c6\u9891\u6559\u7a0b\u7684\u622a\u56fe\uff1a\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"Netty \u89c6\u9891\u6559\u7a0b\" src=\"http:\/\/ocuzluml6.bkt.clouddn.com\/nio_netty.png\" style=\"width: 591px;height: 329px\" \/>\n<\/p>\n<p>\n\t\u8fd8\u662f\u8001\u89c4\u77e9\uff0c\u5173\u6ce8\u5fae\u4fe1\u516c\u4f17\u53f7&ldquo;\u4e1a\u4f59\u8349&rdquo;\uff0c\u56de\u590d\u5173\u952e\u5b57&ldquo;netty&rdquo;\u5373\u53ef\u514d\u8d39\u4e0b\u8f7d\uff01\n<\/p>\n<p>\n\t\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u53ef\u52a0QQ1\u7fa4\uff1a135430763\uff0cQQ2\u7fa4\uff1a454796847\uff0cQQ3\u7fa4\uff1a187424846\u3002QQ\u7fa4\u8fdb\u7fa4\u5bc6\u7801\uff1axttblog\uff0c\u60f3\u52a0\u5fae\u4fe1\u7fa4\u7684\u670b\u53cb\uff0c\u53ef\u4ee5\u5fae\u4fe1\u641c\u7d22\uff1axmtxtt\uff0c\u5907\u6ce8\uff1a&ldquo;xttblog&rdquo;\uff0c\u6dfb\u52a0\u52a9\u7406\u5fae\u4fe1\u62c9\u4f60\u8fdb\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u53ef\u6dfb\u52a0\u52a9\u7406\u5fae\u4fe1\u8fdb\u884c\u6c9f\u901a\uff01<\/p>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=2908\">NIO Netty \u89c6\u9891\u6559\u7a0b\u514d\u8d39\u4e0b\u8f7d<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u51e0\u5929\u6211\u5728\u5fae\u4fe1\u516c\u4f17\u53f7\u5206\u4eab\u4e86\u4e00\u5957 Docker \u7684\u89c6\u9891\u6559\u7a0b\uff0c\u6536\u5230\u5e7f\u5927\u7f51\u53cb\u7684\u5f88\u591a\u597d\u8bc4\uff01\u4ed6\u4eec\u4e00\u81f4\u7684\u8981\u6c42\u6211\u5206\u4eab\u66f4\u591a\u7684 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[176,351,255,1656,252],"class_list":["post-2908","post","type-post","status-publish","format-standard","hentry","category-java","tag-mina","tag-netty","tag-nio"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2908","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2908"}],"version-history":[{"count":2,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2908\/revisions"}],"predecessor-version":[{"id":2910,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2908\/revisions\/2910"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2908"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2908"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2908"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}