{"id":486,"date":"2020-12-30T22:12:02","date_gmt":"2020-12-30T14:12:02","guid":{"rendered":"http:\/\/log.tanxiaodian.com\/?p=486"},"modified":"2020-12-30T22:12:02","modified_gmt":"2020-12-30T14:12:02","slug":"%e8%81%8a%e8%81%8a-2018-%e5%b9%b4%e5%90%8e%e7%ab%af%e6%8a%80%e6%9c%af%e8%b6%8b%e5%8a%bf","status":"publish","type":"post","link":"https:\/\/log.tanxiaodian.com\/?p=486","title":{"rendered":"\u804a\u804a 2018 \u5e74\u540e\u7aef\u6280\u672f\u8d8b\u52bf"},"content":{"rendered":"\n<p>\u8f6c\u81ea https:\/\/segmentfault.com\/a\/1190000012975028<\/p>\n\n\n\n<p>\u4eca\u5929\u592a\u5fd9\uff0c\u5c11\u5199\u4e00\u70b9\uff0c\u540e\u9762\u518d\u8865\u5145\u3002<\/p>\n\n\n\n<h2 id=\"item-1\">\u5f02\u6b65\u6a21\u5f0f<\/h2>\n\n\n\n<p>Go \u8bed\u8a00\u8d8a\u6765\u8d8a\u70ed\u95e8\uff0c\u5f88\u591a\u5927\u578b\u4e92\u8054\u7f51\u516c\u53f8\u540e\u7aef\u6b63\u5728\u8f6c\u5411 GO \u3002Java \u5708\u77e5\u540d\u7684\u670d\u52a1\u5316\u6846\u67b6 Dubbo \u4e5f\u5ba3\u5e03\u8f6c\u578b\u5f02\u6b65\u6a21\u5f0f\u3002\u8fd9\u662f\u4e00\u4e2a\u5927\u8d8b\u52bf\uff0c\u5f02\u6b65\u6a21\u5f0f\u5df2\u7ecf\u88ab\u5e02\u573a\u9a8c\u8bc1\u548c\u8ba4\u53ef\u3002<\/p>\n\n\n\n<p>\u5728 Web \u670d\u52a1\u5668\u9009\u62e9\u4e0a\uff0c\u51e0\u5e74\u524d\u5927\u90e8\u5206\u4eba\u5c31\u5f00\u59cb\u9009\u62e9\u5f02\u6b65\u975e\u963b\u585e\u7684 Nginx\uff0c\u800c\u4e0d\u662f\u540c\u6b65\u963b\u585e\u7684 Apache\u3002\u5c31\u662f\u56e0\u4e3a Nginx \u8fd9\u6837\u7684\u5f02\u6b65\u7a0b\u5e8f\uff0c\u5b83\u7684\u9002\u5e94\u6027\u66f4\u597d\u3001\u5e76\u53d1\u80fd\u529b\u66f4\u5f3a\u3002\u73b0\u5728\u5728\u540e\u7aef\u4e1a\u52a1\u5f00\u53d1\u7f16\u7a0b\u65b9\u9762\uff0c\u6280\u672f\u529b\u91cf\u5f3a\u7684\u56e2\u961f\u5df2\u7ecf\u5f00\u59cb\u5c06\u6280\u672f\u6808\u4ece\u540c\u6b65\u6a21\u5f0f\u5207\u6362\u4e3a\u5f02\u6b65\u4e86\u3002<\/p>\n\n\n\n<p>\u540c\u6b65\u963b\u585e\u6a21\u5f0f\u5b58\u5728\u8f83\u591a\u7f3a\u9677\uff0c\u5e76\u53d1\u80fd\u529b\u5f31\u3001\u9002\u5e94\u6027\u5dee\u3001\u6162\u901f\u8bf7\u6c42\u5bfc\u81f4\u670d\u52a1\u4e0d\u53ef\u7528\u3002\u5982\uff1a\u540e\u53f0\u63a5\u53e3\u4e2d\u8c03\u7528\u7b2c\u4e09\u65b9 API \u7684\u573a\u666f\uff0c\u540c\u6b65\u6a21\u5f0f\u6548\u679c\u6781\u5dee\u3002\u8fc7\u53bb\u90a3\u4e9b\u4f7f\u7528 Java\u3001PHP\u3001C++\u3001Python\u3001Ruby \u8bed\u8a00\u5f00\u53d1\u7684\u540c\u6b65\u963b\u585e\u6a21\u5f0f\u6846\u67b6\uff0c\u7528\u7684\u4eba\u8d8a\u6765\u8d8a\u5c11\u3002<\/p>\n\n\n\n<h2 id=\"item-2\">Node.js<\/h2>\n\n\n\n<p>\u867d\u7136 Node.js \u4e5f\u5f88\u70ed\u95e8\uff0c\u5f88\u6d41\u884c\uff0c\u4f46\u4ecd\u7136\u5f88\u5c11\u89c1\u5230\u4f01\u4e1a\u5c06 Node.js \u4f5c\u4e3a\u516c\u53f8\u540e\u7aef\u65b9\u9762\u7684\u4e3b\u8981\u7f16\u7a0b\u8bed\u8a00\u3002C++\u3001Java\u3001PHP\u3001Python \u8bed\u8a00\u540c\u6837\u4e5f\u6709\u4e00\u4e9b\u7c7b\u4f3c\u7684\u65b9\u6848\uff0c\u5305\u62ec Swoole-1.0 \u4e5f\u662f\u57fa\u4e8e\u7c7b\u4f3c\u4e8e Node.js \u7684\u5f02\u6b65\u56de\u8c03\u6a21\u5f0f\u3002<\/p>\n\n\n\n<p>\u672c\u8d28\u539f\u56e0\u662f\u5f02\u6b65\u56de\u8c03\u7684\u6280\u672f\u65b9\u6848\uff0c\u4ee5\u53ca\u5728\u5b83\u4e4b\u4e0a\u6240\u505a\u7684\u4e00\u4e9b\u4f18\u5316\u65b9\u6848\uff0c\u5305\u62ec Promise\u3001Future\u3001Yield\/Generator\u3001Async\/Await \u7b49\uff0c\u6539\u53d8\u4e86\u7a0b\u5e8f\u5f00\u53d1\u7684\u98ce\u683c\u548c\u4e60\u60ef\u3002\u5982\u679c\u8981\u4f7f\u7528\u8fd9\u4e9b\u6280\u672f\uff0c\u90a3\u4e48\u5de5\u7a0b\u5e08\u9700\u8981\u989d\u5916\u5b66\u4e60\u8fd9\u4e9b\u5173\u952e\u8bcd\u548c\u51fd\u6570\u7684\u4f7f\u7528\u65b9\u6cd5\u3002<\/p>\n\n\n\n<p><strong>\u4f7f\u7528\u8fd9\u4e9b\u6280\u672f\u65b9\u6848\u662f\u65e0\u6cd5\u517c\u5bb9\u5df2\u6709\u7a0b\u5e8f\u7684\u3002<\/strong>\u53ef\u4ee5\u8bf4\u7814\u53d1\u6210\u672c\u5de8\u5927\uff0c\u96be\u4ee5\u5e73\u6ed1\u8fc7\u6e21\u3002\u5f71\u54cd\u4e86\u5f02\u6b65\u56de\u8c03\u6280\u672f\u6808\u7684\u666e\u53ca\u3002\u8fd9\u79cd\u7f16\u7a0b\u6a21\u5f0f\u5f88\u96be\u8ba9\u6240\u6709\u4eba\u90fd\u63a5\u53d7\u3002<\/p>\n\n\n\n<h2 id=\"item-3\">\u534f\u7a0b<\/h2>\n\n\n\n<p>\u800c\u534f\u7a0b\u6a21\u5f0f\uff0c\u517c\u987e\u4e86\u540c\u6b65\u963b\u585e\u7684\u53ef\u7ef4\u62a4\u6027\u548c\u5f02\u6b65\u975e\u963b\u585e\u7684\u9ad8\u5e76\u53d1\u80fd\u529b\u3002\u5c06\u4f1a\u6210\u4e3a\u672a\u6765\u540e\u7aef\u5f00\u53d1\u9886\u57df\u7684\u4e3b\u6d41\u6280\u672f\u65b9\u6848\u3002<\/p>\n\n\n\n<p>\u6700\u91cd\u8981\u7684\uff0c\u534f\u7a0b\u6a21\u5f0f\u53ea\u9700\u8981\u5bf9\u5df2\u6709\u9879\u76ee\u4ee3\u7801\u8fdb\u884c\u5c11\u91cf\u8c03\u6574\u5c31\u53ef\u4ee5\u8fd0\u884c\u8d77\u6765\uff0c\u751a\u81f3\u53ef\u4ee5\u5b8c\u5168\u517c\u5bb9\u8001\u9879\u76ee\u3002\u53ea\u9700\u8981\u6846\u67b6\u5c42\u8fdb\u884c\u517c\u5bb9\u5373\u53ef\u3002\u8fd9\u4f7f\u5f97\u56e2\u961f\u53ef\u4ee5\u5e73\u6ed1\u8fc7\u6e21\u3002<\/p>\n\n\n\n<p>\u4f7f\u7528\u534f\u7a0b\u6a21\u5f0f\uff0c\u5f00\u53d1\u8005\u5b8c\u5168\u4e0d\u9700\u8981\u5b66\u4e60\u989d\u5916\u7684\u5173\u952e\u8bcd\u548c\u51fd\u6570\u7528\u6cd5\u3002\u7f16\u7801\u98ce\u683c\u4e0e\u540c\u6b65\u6a21\u5f0f\u4e0b\u662f\u5b8c\u5168\u4e00\u81f4\u7684\u3002<\/p>\n\n\n\n<p>\u5404\u79cd\u534f\u7a0b\u6280\u672f\u91cc\uff0c<code>GO<\/code> \u662f\u6700\u8000\u773c\u7684\u90a3\u4e00\u4e2a\u3002\u534f\u7a0b\u3001\u901a\u9053\u3001\u9759\u6001\u8bed\u8a00\u3001\u6027\u80fd\u3001\u5bcc\u7f16\u8bd1\u3001\u6807\u51c6\u5e93\u4e30\u5bcc\u3001\u751f\u6001\u5b8c\u6574\u3001Google \u7b49\uff0c\u4f18\u52bf\u592a\u591a\u4e86\u3002<strong>GO \u8bed\u8a00\uff0c\u4e2a\u4eba\u8ba4\u4e3a\u662f\u76ee\u524d\u6240\u6709\u7f16\u7a0b\u8bed\u8a00\u4e2d\uff0c\u6700\u503c\u5f97\u5b66\u4e60\u7684<\/strong>\u3002<\/p>\n\n\n\n<p><code>Swoole 2.x<\/code> \u8ba9 PHP \u8fd9\u95e8 20\u591a\u5e74\u5386\u53f2\u7684\u8001\u724c\u540e\u53f0\u7f16\u7a0b\u8bed\u8a00\u4e5f\u80fd\u6709\u534f\u7a0b\u7684\u80fd\u529b\u3002\u76f8\u6bd4 <code>Go<\/code> \u8fd9\u6837\u7684\u6280\u672f\uff0c<code>PHP + Swoole<\/code> \u7684\u6280\u672f\u6808\uff0c\u66f4\u9002\u5408\u5feb\u901f\u5f00\u53d1\u3001\u5feb\u901f\u8fed\u4ee3\u3001\u4e1a\u52a1\u9a71\u52a8\u7684\u573a\u666f\u3002\u6bd5\u7adf\u52a8\u6001\u8bed\u8a00\u6bd4\u9759\u6001\u8bed\u8a00\u8fd8\u662f\u8981\u66f4\u52a0\u7075\u6d3b\u3001\u5f00\u53d1\u6548\u7387\u66f4\u9ad8\u3002\u800c <code>Go<\/code> \u66f4\u9002\u5408\u7f16\u5199\u7cfb\u7edf\u7ea7\u8f6f\u4ef6\u3001\u6838\u5fc3\u4e1a\u52a1\u3002<\/p>\n\n\n\n<p>2018 \u5e74\u6211\u91cd\u6784\u4e86 swoole framework \u8fd9\u4e2a\u5f88\u8001\u7684\u9879\u76ee\uff0c\u5e95\u5c42\u652f\u6301 <code>Swoole 2.x<\/code> \u534f\u7a0b\u6a21\u5f0f\u3002\u4e3b\u8981\u539f\u56e0\u662f\u8f66\u8f6e\u516c\u53f8\u5185\u90e8\u6709\u5f88\u591a\u9879\u76ee\u57fa\u4e8e\u8fd9\u4e2a\u6846\u67b6\uff0c\u5c24\u5176\u662f\u670d\u52a1\u5c42\u5168\u90e8\u7528\u4e86 swoole framework\u3002\u6211\u4eec\u5e0c\u671b\u4e1a\u52a1\u4ee3\u7801\u4e00\u884c\u4e0d\u6539\uff0c\u53ef\u4ee5\u4e00\u952e\u5207\u6362\u4e3a\u534f\u7a0b\u6a21\u5f0f\u3002\u7406\u8bba\u4e0a\u5176\u4ed6\u7684\u540c\u6b65\u963b\u585e PHP \u6846\u67b6\uff0c\u5982 Laravel \u3001Yii \uff0c\u90fd\u53ef\u4ee5\u5b9e\u73b0\u53ea\u4fee\u6539\u5e95\u5c42\u517c\u5bb9 <code>Swoole 2.x<\/code> \u534f\u7a0b\uff0c\u5b9e\u73b0\u9879\u76ee\u4ee3\u7801\u65e0\u7f1d\u5207\u6362\u534f\u7a0b\u6a21\u5f0f\u3002<\/p>\n\n\n\n<p>\u4f7f\u7528\u534f\u7a0b\u540e\uff0c\u6574\u4e2a\u7cfb\u7edf\u7684\u6027\u80fd\u3001\u5e76\u53d1\u80fd\u529b\u3001\u7a33\u5b9a\u6027\u6709\u4e86\u5de8\u5927\u63d0\u5347\u3002\u8fc7\u53bb\uff0c\u7ebf\u4e0a\u7ecf\u5e38\u51fa\u73b0\u4e00\u4e2a\u6162\u8bf7\u6c42\u5bfc\u81f4\u6574\u4e2a\u670d\u52a1\u5668\u5361\u4f4f\u7684\u95ee\u9898\u4e0d\u5b58\u5728\u4e86\u3002<\/p>\n\n\n\n<h2 id=\"item-4\">PHP &amp; Swoole<\/h2>\n\n\n\n<p>\u867d\u7136 Swoole 2.0 \u53ea\u6709\u4e0d\u5230\u4e24\u5e74\u7684\u5386\u53f2\uff0c\u76f8\u6bd4 Go \u8bed\u8a00 10 \u5e74\u7684\u8015\u8018\uff0c\u8fd8\u6709\u5f88\u957f\u4e00\u6bb5\u8def\u8981\u8d70\u3002\u4f46\u76f8\u6bd4 GO \u8fd9\u6837\u7684\u9759\u6001\u8bed\u8a00\uff0cPHP + Swoole \u8fd8\u662f\u6709\u5f88\u591a\u4f18\u52bf\u7684\uff0cPHP \u66f4\u52a0\u7b80\u5355\u6613\u7528\uff0cPHP \u662f\u52a8\u6001\u8bed\u8a00\uff0c\u4f7f\u7528\u8d77\u6765\u66f4\u52a0\u7075\u6d3b\u3002<\/p>\n\n\n\n<p>\u5f53\u7136\uff0c\u5982\u679c\u662f\u65b0\u9879\u76ee\u8fd8\u662f\u63a8\u8350\u4f7f\u7528 <a href=\"https:\/\/www.swoft.org\/\" rel=\"noreferrer noopener\" target=\"_blank\">Swoft<\/a> \u8fd9\u4e2a\u4e13\u95e8\u4e3a <code>Swoole 2.x<\/code> \u7684\u6846\u67b6\uff0c\u5b83\u7684\u5386\u53f2\u5305\u88b1\u66f4\u5c11\uff0c\u56e0\u6b64\u7a33\u5b9a\u6027\u66f4\u597d\u3002<\/p>\n\n\n\n<p>\u73b0\u5728\u6709\u4e86 Swoole 2.0 \u534f\u7a0b\uff0c\u6211\u4eec\u5bf9 PHP \u7684\u672a\u6765\u4ecd\u7136\u5145\u6ee1\u4fe1\u5fc3\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8f6c\u81ea https:\/\/segmentfault.c&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/log.tanxiaodian.com\/?p=486\">Continue reading<span class=\"screen-reader-text\">\u804a\u804a 2018 \u5e74\u540e\u7aef\u6280\u672f\u8d8b\u52bf<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[52],"_links":{"self":[{"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=\/wp\/v2\/posts\/486"}],"collection":[{"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=486"}],"version-history":[{"count":1,"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=\/wp\/v2\/posts\/486\/revisions"}],"predecessor-version":[{"id":487,"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=\/wp\/v2\/posts\/486\/revisions\/487"}],"wp:attachment":[{"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=486"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=486"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=486"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}