{"id":1533,"date":"2016-04-18T16:48:36","date_gmt":"2016-04-18T08:48:36","guid":{"rendered":"http:\/\/www.storagelab.org.cn\/zhangdi\/?p=1533"},"modified":"2016-04-18T16:48:36","modified_gmt":"2016-04-18T08:48:36","slug":"2016%e5%b9%b43%e6%9c%8826%e6%97%a5%e5%8c%97%e4%ba%acnodeparty%e7%ba%bf%e4%b8%8b%e8%81%9a%e4%bc%9a%e5%b0%8f%e8%ae%b0","status":"publish","type":"post","link":"https:\/\/www.divis.cn\/index.php\/2016\/04\/18\/2016%e5%b9%b43%e6%9c%8826%e6%97%a5%e5%8c%97%e4%ba%acnodeparty%e7%ba%bf%e4%b8%8b%e8%81%9a%e4%bc%9a%e5%b0%8f%e8%ae%b0\/","title":{"rendered":"2016\u5e743\u670826\u65e5\u5317\u4eacNodeParty\u7ebf\u4e0b\u805a\u4f1a\u5c0f\u8bb0"},"content":{"rendered":"<p>3\u670826\u65e5\u4e0b\u5348\uff0c\u672c\u4eba\u540c\u5e08\u5f1f\u8096\u5b50\u8fbe\uff0c\u53c2\u52a0\u4e86\u4e00\u6b21\u5317\u4eacNodeParty\u7ebf\u4e0b\u805a\u4f1a\u3002NodeParty\u662f\u56fd\u5185Nodejs\u6280\u672f\u793e\u533a<a href=\"http:\/\/cnodejs.org\/\">cnodejs.org<\/a>\u00a0\u7684\u4e00\u5e72\u6d3b\u8dc3\u5206\u5b50\u7684\u7ebf\u4e0b\u6280\u672f\u6c99\u9f99\u6d3b\u52a8\u3002\u867d\u7136\u6211\u4e0d\u662f\u4ed6\u4eec\u793e\u533a\u7684\u6210\u5458\uff0c\u4f46\u56e0\u4e3a\u672c\u4eba\u6280\u672f\u6808\u662fmeanjs\u67b6\u6784\uff0c\u56e0\u6b64\u5f88\u6709\u5174\u8da3\u8ddf\u5176\u4ed6\u5f00\u53d1\u8005\u89c1\u89c1\u9762\uff0c\u4ea4\u6d41\u4e00\u4e0b\u5de5\u4f5c\u7ecf\u9a8c\u3002\u5f53\u5929\u6211\u5c31\u8bb0\u5f55\u4e86\u5341\u5206\u8be6\u7ec6\u7684\u7b14\u8bb0\u8d44\u6599\uff08\u6211\u65e5\u5e38\u6652surface pro\u7684\u9700\u8981\uff0c\u5df2\u7ecf\u6652\u4e863\u5e74\uff09\uff0c\u4e0d\u8fc7\u4e4b\u540e\u6211\u7d27\u63a5\u7740\u5c31\u56e0\u4e3a\u5fd9\u4e8e\u6bd5\u4e1a\u8bba\u6587\u7684\u4e8b\u6240\u4ee5\u65e0\u6687\u53d1\u51fa\u6b64\u535a\u5ba2\u3002\u73b0\u5728\u7a0d\u5fae\u8f7b\u677e\u4e9b\u4e86\uff0c\u628a\u4e4b\u524d\u6b20\u8d26\u8865\u5b8c\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large\" src=\"http:\/\/zhangdi.dengxinbo.cn\/697549283172000052.jpg\" width=\"800\" height=\"217\" \/><\/p>\n<p>\u4f1a\u8bae\u5730\u70b9\uff1a\u5317\u4eac\u4e09\u91cc\u5c6f\u79d1\u6280\u5bfa\uff0c\u4e00\u4e2a\u521b\u4e1a\u516c\u53f8\u805a\u96c6\u4e4b\u5730<\/p>\n<h2><strong>\u4e0e\u4f1a\u4eba\u5458\u76f8\u4e92\u4ecb\u7ecd<\/strong><\/h2>\n<p>\u5176\u5b9e\u53c2\u52a0\u8fd9\u4e00\u7c7b\u7ebf\u4e0b\u6d3b\u52a8\uff0c\u4e86\u89e3\u4e0e\u4f1a\u4eba\u5458\u7684\u60c5\u51b5\u548c\u80cc\u666f\uff0c\u8ddf\u4f1a\u8bae\u672c\u8eab\u7684\u5185\u5bb9\u662f\u4e00\u6837\u91cd\u8981\u7684\u3002\u4e0e\u4f1a\u8005\u5e74\u9f84\u6700\u5c0f\u4f30\u8ba1\u503c\u662f22\u5c81\uff0c\u6700\u5927\u76ee\u6d4b\u670940+\u7684\u3002\u53ef\u80fd\u8ddfnodeParty\u7684\u7ec4\u7ec7\u8005\u80cc\u666f\u6709\u5173\uff0c\u6765\u7684\u4eba\u4e0d\u5c11\u662f\u521b\u4e1a\u516c\u53f8\u7684\uff0c\u5f53\u7136\uff0c\u5176\u4e2d\u4e5f\u6709\u4e0d\u5c11\u5c31\u662f\u6765\u62db\u8058\u7684\u3002\u7531\u4e8e\u73b0\u5728\u5317\u4eac\u521b\u4e1a\u6c1b\u56f4\u6d53\u539a\uff0c\u521b\u4e1a\u516c\u53f8\u62db\u8058\u4e00\u76f4\u662f\u4e2a\u5927\u96be\u9898\uff0c\u60f3\u8981\u62db\u5230\u4ebaHR\u4eec\u65e0\u6240\u4e0d\u7528\u5176\u6781\uff0c\u7ecf\u5e38\u5230\u5404\u79cd\u6280\u672f\u6c99\u9f99\u8d70\u7a74\u90a3\u662f\u5fc5\u7136\u3002\u5176\u4ed6\u6765\u81ea\u5916\u4f01\u3001\u56fd\u4f01\u3001\u91d1\u878d\u516c\u53f8\u3001IT\u5927\u516c\u53f8\u3001\u5b66\u6821\u7684\u90fd\u6709\uff0c\u4e0d\u8fc7\u5728\u6821\u751f\u597d\u50cf\u53ea\u6709\u6211\u548c\u6211\u5e08\u5f1f\u800c\u5df2\u3002\u50cf\u6211\u4eec\u8fd9\u4e48\u79ef\u6781\u53c2\u52a0\u5404\u79cd\u6280\u672f\u6c99\u9f99\u7684\u5b66\u751f\u5e76\u4e0d\u591a\uff0c\u56e0\u4e3a\u5f88\u591a\u5b66\u751f\u8fd8\u6ca1\u6709\u8fd9\u65b9\u9762\u7684\u9700\u6c42\u3002\u6b64\u5916\uff0c\u7531\u4e8e\u73b0\u5728\u5fae\u4fe1\u5728\u4fe1\u606f\u5165\u53e3\u70b9\u7684\u5784\u65ad\u5730\u4f4d\uff0c\u4e0e\u4f1a\u8005\u4e2d\u505a\u5fae\u4fe1\u76f8\u5173\u5f00\u53d1\u7684\u4e0d\u5c11\uff0c\u96be\u602a\u73b0\u5728\u4e0d\u5c11\u5f00\u53d1\u8005\u90fd\u628a\u5fae\u4fe1\u53eb\u505a\u65b0\u65f6\u4ee3\u7684IE\u3002\u4e0e\u4f1a\u8005\u666e\u904d\u5c55\u73b0\u51fa\u4e86\u5bf9\u65b0\u6280\u672f\u7684\u70ed\u60c5\u3002\u5bf9\u6211\u4eec\u7684\u7814\u7a76\u5185\u5bb9\uff0c\u53ef\u89c6\u5316\u4e5f\u662f\u76f8\u5f53\u611f\u5174\u8da3\u3002\u5176\u4e2d\uff0c\u597d\u51e0\u5bb6\u516c\u53f8\uff0c\u5305\u62econeAPM\u3001\u4e0a\u6d77\u82f1\u7279\u5c14\u7b49\u90fd\u5728\u505a\u53ef\u89c6\u5316\u76f8\u5173\u7684\u5185\u5bb9\uff0c\u5982\u63a7\u5236\u9762\u677f\u3001\u53ef\u89c6\u5316\u62a5\u8868\u7b49\u7b49\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/i587.photobucket.com\/albums\/ss314\/zhangdiwaa\/my%20blog%20photo\/741065253024258888.jpg\" alt=\"\" width=\"614\" height=\"461\" \/><\/p>\n<p>\u4ee5\u4e0b\u7b80\u8981\u7684\u4ecb\u7ecd\u4e0e\u4f1a\u4eba\u5458\uff1a<\/p>\n<blockquote><p>\u6211\u548c\u5e08\u5f1f\u00a0\u4e2d\u56fd\u4f20\u5a92\u5927\u5b66 \u8ba1\u7b97\u673a\u5b66\u9662\u7814\u7a76\u751f<br \/>\n    Maco\u548c\u9648** robot \u5c0f\u7c73\u4e91\u5e73\u53f0\u7684\u670d\u52a1\u5668\u7aef java\u8f6cnodejs<br \/>\n    \u6768** \u00a0nodejs\u7ba1\u7406\u76d1\u63a7<br \/>\n    \u4ed8* python janhgo \u7a0b\u5e8f\u5b66\u4e60croousera<br \/>\n    \u5f20** \u7d22\u5c3c\u79fb\u52a8<br \/>\n    \u5218** \u00a0\u7535\u4fe1\u7cfb\u7edf\u96c6\u6210\u516c\u53f8 angular<br \/>\n    \u6bd5** \u00a0nodejs \u548c mongodb<br \/>\n    *** H5 nodejs<br \/>\n    \u6731** \u00a0OpenGL<br \/>\n    \u6234** PLC\u81ea\u52a8\u5316 \u533b\u7597\u8bbe\u5907\u667a\u80fd\u5316<br \/>\n    *** \u5730\u7406\u4fe1\u606f\u7cfb\u7edf<br \/>\n    \u738b* \u4e0a\u6d77\u82f1\u7279\u5c14 \u654f\u6377\u5f00\u53d1 one APM reactjs wawa<br \/>\n    *** \u524d\u7aef nodejs<br \/>\n    ** \u4ea4\u6613\u7cfb\u7edf\u5f00\u53d1<br \/>\n    ** \u00a0\u5fae\u4fe1\u76f8\u5173web\u5f00\u53d1\uff1a\u5fae\u4fe1\u5df2\u7ecf\u6210\u4e3a\u4e86\u65b0\u65f6\u4ee3\u7684IE<br \/>\n    ** \u00a0\u5fae\u4fe1\u5185\u90e8\u7684web app<br \/>\n    *** \u00a0Ios\u5f00\u53d1<br \/>\n    *** \u533b\u7597\u521b\u4e1a\u516c\u53f8 php java<br \/>\n    \u674e** \u53ef\u89c6\u5316\u7cfb\u7edf \u5546\u4e1a\u6570\u636e\u5206\u6790 java\u540e\u7aef\u5f00\u53d1<br \/>\n    \u5f20* \u00a0\u79d1\u6280\u5bfa\u7684\u7ba1\u7406\u5458<br \/>\n    \u80e1** \u67b6\u6784\u3001\u9879\u76ee\u7ba1\u7406 \u654f\u6377\u5206\u4eab \u5de5\u4f5c\u63a8\u8350<br \/>\n    ***\uff0c\u7f57\u8f91\u601d\u7ef4\u7814\u53d1\u90e8\uff0c\u524d\u7aef\u5f00\u53d1<\/p>\n<p>    &#8230;&#8230;<\/p><\/blockquote>\n<h2><strong>Speaker1 \u6851\u4e16\u9f99 \u7a7a\u5f26\u79d1\u6280 CTO<\/strong><\/h2>\n<ul>\n<li><a href=\"https:\/\/github.com\/i5ting\/\" target=\"_blank\" rel=\"noopener\">github<\/a>\u00a0\u4e2a\u4eba\u4e3b\u9875<\/li>\n<li><a href=\"http:\/\/git.oschina.net\/ubiware\/node-party\/raw\/master\/10th\/i5ting-node%20%E5%85%A8%E6%A0%88.pdf\" target=\"_blank\" rel=\"noopener\">\u5168\u6808\u5de5\u7a0b\u5e08\u4e4b\u8def NodeJS by i5ting<\/a>\u00a0 \u6b64\u6b21\u4f1a\u8bae\u6240\u7528PPT<\/li>\n<\/ul>\n<p>\u8fd9\u4e3a\u6f14\u8bb2\u8005\u4e5f\u662f\u4e2a\u521b\u4e1a\u8005\u3002\u76ee\u524d\u5728\u5929\u6d25\u521b\u4e1a\uff0c\u7a7a\u5f26\u79d1\u6280 CTO\uff0c\u5f00\u6e90\u9879\u76eeMoajs\u4f5c\u8005, \u5168\u6808\u7a0b\u5e8f\u5458 \u516c\u53f8\u76ee\u524d\u4f7f\u7528\u6280\u672f\u4e3b\u8981\u662fNode.js\uff0c\u6280\u672f\u6808\u7b97\u6240\u8c13\u7684MEAN\uff08mongodb + express + angular + node\uff09\uff1b<\/p>\n<p>\u66fe\u5728\u65b0\u6d6a\uff0c\u7f51\u79e6\u7b49\u5de5\u4f5c\u8fc7\uff1b\u505a\u8fc7\u9996\u5e2d\u67b6\u6784\u5e08\u3001\u6280\u672f\u603b\u76d1\uff1b\u5e26\u8fc7\u524d\u7aef\u3001\u540e\u7aef\u3001\u6570\u636e\u5206\u6790\u3001\u79fb\u52a8\u7aef\u8d1f\u8d23\u4eba\u3002 \u76ee\u524d\u4e3b\u8981\u4ece\u4e8b\u6280\u672f\u67b6\u6784 + \u62db\u4eba\u5de5\u4f5c<\/p>\n<h3><strong>1. Why Node.js \uff1f<\/strong><\/h3>\n<p>nodejs\u7684\u5168\u7403\u73b0\u72b6\uff0c\u5df2\u7ecf\u6709ebay\u3001google\u3001\u5fae\u8f6f\u7b49\u6570\u5341\u4e2a\u5927\u516c\u53f8\u4f7f\u7528\uff0c\u524d\u540e\u7aef\u5e94\u7528\u90fd\u5f88\u5e7f\u6cdb\u3002\u8fc7\u53bb\u6211\u4eec\u603b\u559c\u6b22\u62ffnodejs\u7684\u5f02\u6b65\u80fd\u529b\u4f5c\u4e3a\u5176\u4f18\u70b9\u8bf4\u4e8b\uff0c\u4f46\u73b0\u5728Nodejs\u771f\u6b63\u7684\u5356\u70b9\u5e94\u8be5\u8bf4\u662f\u201c\u80fd\u4ee5\u8f83\u4f4e\u6210\u672c\u5f00\u53d1\u6027\u80fd\u8f83\u5f3a\u7684\u7a0b\u5e8f\u201d\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large\" src=\"http:\/\/zhangdi.dengxinbo.cn\/5578e3aa00549.jpg\" width=\"480\" height=\"260\" \/><\/p>\n<p>Nodejs\u7684\u4f18\u70b9<\/p>\n<ul>\n<li>Nodejs\u8fc7\u53bb\u5e38\u88ab\u62a8\u51fb\u7684\u7f3a\u70b9\uff0ccallback hell\u4e5f\u6709\u4e86\u89e3\u51b3\u65b9\u6848\uff0cpromise\u3001generator \u3001async<\/li>\n<li>NPM\u5305\u7ba1\u7406\u5f3a\u5927\uff0c\u670925.6\u4e07\u4e2a\u5305\u4e86<\/li>\n<li>\u540c\u6837\u4e0d\u4f18\u5316\uff0c\u6027\u80fd\u6bd4\u5927\u90e8\u5206\u8bed\u8a00\u597d\uff1b\u540c\u6837\u4f18\u5316\uff0c\u4e5f\u6bd4\u5176\u4ed6\u8bed\u8a00\uff08java\u3001go\u7b49\uff09\u7b80\u5355\u3002<\/li>\n<li>\u6709\u8db3\u591f\u591a\u7684\u9009\u62e9\u548c\u67b6\u6784\u7684\u5e73\u8861\uff0c\u5982\u5b9e\u4e0d\u591f\uff0cjava\u8865\u5145<\/li>\n<li>\u6d4b\u8bd5\u76f8\u5173\u7684tdd\/bdd \u6d4b\u8bd5\u8986\u76d6\u7387<\/li>\n<li>\u89c4\u8303\u5316\u7684standard\uff0c \u76f8\u5173\u63d2\u4ef6\u8db3\u591f\u7b80\u5355\u6613\u7528<\/li>\n<\/ul>\n<p>Nodejs\u7684\u7f3a\u70b9\uff1a<\/p>\n<blockquote><p>\u7f3a\u5c11rails\u4e00\u6837\u7684\u5927\u6740\u5668\uff08express\u5df2\u7ecf\u6ca6\u4e3a\u5e95\u5c42\u3001sails\u548cmeteor\u8fd8\u90fd\u592a\u5f31\uff09\uff0cscaffold\u811a\u624b\u67b6\uff0c ORM\u592a\u5f31<\/p><\/blockquote>\n<p>\u67b6\u6784\u548c\u5e73\u8861\u7684\u9009\u62e9\uff1a<\/p>\n<p>\u5982\u679c\u8bed\u8a00\u5c42\u9762\u641e\u4e0d\u5b9a\uff0c\u5c31\u67b6\u6784\u5c42\u9762\u505a<\/p>\n<blockquote><p>\u4e1a\u52a1\u8fb9\u754c\u3001\u6a21\u5757\u62c6\u5206\u3001\u9762\u5411\u670d\u52a1<\/p>\n<p>    MQ\u3001RPC\u3001cache<\/p>\n<p>    \u8fd0\u7ef4\u3001\u76d1\u63a7\u3001\u81ea\u52a8\u5316<\/p><\/blockquote>\n<p>\u5982\u679c\u67b6\u6784\u4e5f\u641e\u4e0d\u5b9a\uff0c\u5c31\u7528\u522b\u7684\u8bed\u8a00\u505a<\/p>\n<blockquote><p>\u6bd4\u5982excel\u751f\u6210\u53ef\u4ee5\u7528java<\/p>\n<p>    \u6bd4\u5982\u77ed\u4fe1\u63a8\u9001apns<\/p><\/blockquote>\n<p>\u6211\u4eec\u7528Nodejs\u505a\u4ec0\u4e48\uff1f<\/p>\n<ul>\n<li>API\u670d\u52a1<\/li>\n<li>\u524d\u7aefmoa-frontend<\/li>\n<li>SDK<\/li>\n<li>\u8f85\u52a9\u5f00\u53d1cli\u5de5\u5177<\/li>\n<\/ul>\n<p>\u76ee\u524d\u8fdb\u5ea6\uff1a<\/p>\n<ul>\n<li>\u5f00\u53d1moajs\u6846\u67b6\uff0c express\/mongoDB<\/li>\n<li>Pm2\u90e8\u7f72\uff0c \u524d\u540e\u7aef\u5206\u79bb<\/li>\n<li>\u963f\u91cc\u4e91slb\u8d1f\u8f7d\uff0c alinode\u76d1\u63a7<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large\" src=\"http:\/\/zhangdi.dengxinbo.cn\/1113014.png\" width=\"500\" height=\"352\" \/><\/p>\n<p><strong>2. \u6211\u773c\u4e2d\u7684Node.js\u6838\u5fc3<\/strong><\/p>\n<p>2.1 \u5c0f\u800c\u7f8e\u7684\u54f2\u5b66<\/p>\n<p>2.2 \u4eceLAMP\u5230Mean\u6280\u672f\u6808\u3001<\/p>\n<p>\u521b\u4e1a\u516c\u53f8\u7684\u74f6\u9888<\/p>\n<ul>\n<li>\u7f3a\u4eba<\/li>\n<li>\u5f00\u53d1\u901f\u5ea6\u8981\u6c42\u9ad8<\/li>\n<li>\u7a33\u5b9a\u6027\u4f4e<\/li>\n<\/ul>\n<p>\u9009\u62e9MEAN\u67b6\u6784\u7684\u597d\u5904\uff1a<\/p>\n<ul>\n<li>\u628a\u63e1\u8d8b\u52bf\uff0c\u4ee5\u540enodejs\u524d\u666f\u975e\u5e38\u770b\u597d\uff0c\u524d\u540e\u7aef\u7edf\u4e00<\/li>\n<li>\u5728\u67b6\u6784\u4e0a\u53ef\u4ee5\u5c4f\u853d\u98ce\u9669\uff0c\u4e0d\u5b64\u6ce8\u4e00\u63b7\uff0c\u4e0d\u4e00\u53f6\u969c\u76ee\uff0c\u53ef\u4ee5\u7528\u5176\u4ed6\u8bed\u8a00\u8f85\u52a9<\/li>\n<li>\u62db\u4eba\u6210\u672c\u6027\u4ef7\u6bd4\u8f83\u9ad8\uff0c\u6280\u672f\u6808\u65b0\uff0c\u5bb9\u6613\u7559\u4f4f\u4eba\u624d<\/li>\n<\/ul>\n<p>nodejs\u5728Web\u5f00\u53d1\u4e0a\u53ef\u7528\u7684\u6846\u67b6\uff1aExpress, koa\u00a0Restify, hapi\u00a0Sails, meteor<\/p>\n<p>Nodejs\u6a21\u5757\u5f00\u53d1\uff1a\u666e\u901a\u6a21\u5757\u3001Cil\u3001\u811a\u624b\u67b6scaffold\u3001C\/C++ addons<\/p>\n<p><strong>3. \u5feb\u901f\u5f00\u53d1\u5b9e\u8df5<\/strong><\/p>\n<blockquote><p>3.1 \u4e1a\u52a1\u8fb9\u754c\u4f18\u5316<\/p>\n<p>    3.2\u9759\u6001API\u7406\u8bba<\/p>\n<p>    3.3 API\u7ea6\u5b9a<\/p>\n<p>    3.4. \u00a0\u3002\u3002\u3002<\/p>\n<p>    3.5 npm\u6a21\u5757\u5316<\/p>\n<p>    Npm \u79c1\u670d\u548c\u79c1\u6709\u6a21\u5757<\/p>\n<p>    3.6\u7f16\u5199\u751f\u6210\u5668<\/p>\n<p>    3.7 \u524d\u540e\u7aef\u5206\u79bb<\/p><\/blockquote>\n<p><strong>4. \u5168\u6808 or \u5168\u70c2 \uff1f \u00a0<\/strong><\/p>\n<p>4.1 \u76f8\u5173\u5de5\u5177\uff1aGrunt\u3001bower\u3001Tdd\/bdd\u3001Standard<\/p>\n<p>4.2 \u524d\u7aef\u5f00\u53d14\u9636\u6bb5<\/p>\n<ul>\n<li>Html, css, js<\/li>\n<li>Jquery<\/li>\n<li>Anguarjs\uff0cvuejs<\/li>\n<li>React, vuejs<\/li>\n<\/ul>\n<p>4.3 hybird\u5f00\u53d1<\/p>\n<p>H5\u5f00\u53d1\u4e00\u6b21\uff0c\u591a\u5e73\u53f0\u5e94\u7528\uff0c\u73b0\u5728\u975e\u5e38\u6d41\u884c<\/p>\n<p>4.4\u8de8\u5e73\u53f0<\/p>\n<p><strong>\u00a05. \u672a\u6765<\/strong><\/p>\n<p>Feature maybe \u00a0future<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large\" src=\"http:\/\/zhangdi.dengxinbo.cn\/aa3130f33a87e950a54e61ae12385343faf2b44c.jpg\" width=\"580\" height=\"717\" \/><\/p>\n<p>\u5168\u6808\u7684\u95ee\u9898\uff1a\u524d\u7aef\u4e0d\u4f1aDB\uff0c\u540e\u7aef\u4e0d\u4f1aUI<\/p>\n<p>5.1 \u4ece\u540e\u7aef\u8f6c \uff1a\u9636\u6bb5\u5faa\u5e8f\u6e10\u8fdb<\/p>\n<p>5.2 \u4ece\u524d\u7aef\u8f6c\uff1a\u4e00\u822c\u524d\u7aef\u90fd\u975e\u5e38\u5bb9\u6613\u5b66\u4f1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"http:\/\/i587.photobucket.com\/albums\/ss314\/zhangdiwaa\/my%20blog%20photo\/619987410660083674.jpg\" alt=\"\" width=\"614\" height=\"461\" \/><\/p>\n<div>\n<h2>\u00a0<strong>Speaker2 \u738b\u9f91 \u5f00\u53d1\u8005\uff0cOneAPM<\/strong><\/h2>\n<p>    \u8fd9\u4f4d\u6f14\u8bb2\u8005\u540d\u5b57\u975e\u5e38\u9f99\u50b2\u5929\uff0c\u539f\u6765\u5728\u4e0a\u6d77\u82f1\u7279\u5c14\u5de5\u4f5c\uff0c\u73b0\u5728\u5728\u4e00\u5bb6\u521b\u4e1a\u516c\u53f8oneAPM\u5de5\u4f5c\u3002OneAPM\u516c\u53f8\u4e3a\u670d\u52a1\u5668\uff0c\u5e94\u7528\uff0c\u5ba2\u6237\u7aef\u63d0\u4f9b\u76d1\u63a7\u548c\u62a5\u8b66\u670d\u52a1\u3002\u738b\u9f91\u8d1f\u8d23NodeJS\uff0f\u524d\u7aef\u76f8\u5173\u7684\u76d1\u63a7\uff0c\u6027\u80fd\u5206\u6790\u5de5\u4f5c\uff0c\u8fd9\u6b21\u5206\u4eab\uff0c\u4ed6\u5c06\u56f4\u7ed5\u4f7f\u7528nodejs\u548c\u524d\u7aef\u7684\u5178\u578b\u5e94\u7528\u67b6\u6784\u7684devops\u5b9e\u8df5\uff0c\u5305\u62ecdocker\uff0cCI\uff0cAPM\u670d\u52a1\u7b49\u3002<\/p>\n<p>    <a href=\"http:\/\/7xsa3z.com1.z0.glb.clouddn.com\/index2.html#1\" target=\"_blank\" rel=\"noopener\">Node.JS \u9879\u76ee\u4e2d\u7684\u6027\u80fd\u76d1\u63a7\u7684\u539f\u7406 \u548c Docker \u7684\u4f7f\u7528<\/a>\u00a0 \u6b64\u6b21\u6f14\u8bb2\u6240\u7528PPT<\/p>\n<p>    <strong>Nodejs \u6027\u80fd\u5206\u6790<\/strong><\/p>\n<p>    \u63a2\u9488\uff1a\u6700\u65e9\u662f\u7531J.C. Huang \u6559\u6388\u63d0\u51fa\u7684\uff0c\u5b83\u662f\u5728\u4fdd\u8bc1\u88ab\u6d4b\u7a0b\u5e8f\u539f\u6709\u903b\u8f91\u5b8c\u6574\u6027\u7684\u57fa\u7840\u4e0a\u5728\u7a0b\u5e8f\u4e2d\u63d2\u5165\u4e00\u4e9b\u63a2\u9488\uff08\u53c8\u79f0\u4e3a\u201c\u63a2\u6d4b\u4eea\u201d\uff09\uff0c\u901a\u8fc7\u63a2\u9488\u7684\u6267\u884c\u5e76\u629b\u51fa\u7a0b\u5e8f\u8fd0\u884c\u7684\u7279\u5f81\u6570\u636e\uff0c\u901a\u8fc7\u5bf9\u8fd9\u4e9b\u6570\u636e\u7684\u5206\u6790\uff0c\u53ef\u4ee5\u83b7\u5f97\u7a0b\u5e8f\u7684\u63a7\u5236\u6d41\u548c\u6570\u636e\u6d41\u4fe1\u606f\uff0c\u8fdb\u800c\u5f97\u5230\u903b\u8f91\u8986\u76d6\u7b49\u52a8\u6001\u4fe1\u606f\uff0c\u4ece\u800c\u5b9e\u73b0\u6d4b\u8bd5\u76ee\u7684\u7684\u65b9\u6cd5\u3002<\/p>\n<p>    \u8fd9\u91cc\u4ee5alert\u4e3a\u4f8b<\/p>\n<pre class=\"lang:js decode:true \">var _original=window.alert;\nwindow.alert=function(){\n    console.log('in');\n    var result=_original.apply(this,arguments);\n    console.log('out');\n    return result;\n}<\/pre>\n<p>    \u5728\u8fd9\u91cc\u4f8b\u5b50\u4e2d\u6211\u4eec\u53ef\u4ee5\u5f97\u52303\u4e2a\u503c\uff1a\u8fdb\u5165\u3001\u9000\u51fa\u548c\u8fd4\u56de\u503c\u3002\u5bf9\u4e8e\u8fd0\u884c\u5206\u6790\u53ef\u80fd\u5c31\u9700\u8981\u4ece\u8fd4\u56de\u503c\u4e2d\u6765\u83b7\u5f97\u3002\u5f53\u7136\u5b9e\u9645\u5de5\u4f5c\u4e0d\u53ef\u80fd\u8fd9\u4e48\u7b80\u5355\uff0c\u4e00\u4e2a\u96c6\u6210\u5316\u7684\u4fbf\u643a\u5f0f\u63a2\u9488\u6563\u5e03\u548c\u6570\u636e\u5f52\u6863\u5c31\u6210\u4e3a\u4e86\u9700\u6c42\u3002\u800coneAPM\u516c\u53f8\u5de5\u4f5c\u5c31\u662f\u5c06\u4ee5\u4e0a\u529f\u80fd\u96c6\u6210\u5316\u3002\u5728Nodejs\u7a0b\u5e8f\u4e0a\u52a0\u8f7d\u4ed6\u4eec\u63d0\u4f9b\u7684oneapm\u5305\u5373\u53ef\u3002node -r oneapm server.js<\/p>\n<p>    <span style=\"color: #000000\"><b>\u4e3e\u4f8b\uff1a\u524d\u7aef\u57cb\u70b9<\/b><\/span><\/p>\n<p>    \u6bd4\u5982\u8bf4\u6211\u4eec\u60f3\u5728\u4e0b\u9762\u8fd9\u4e2a\u7f51\u9875\u76d1\u63a7\u9875\u9762\u8bbf\u95ee\u548cbutton\u8bbf\u95ee\u6b21\u6570\u3002<\/p>\n<p>    <img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"http:\/\/i587.photobucket.com\/albums\/ss314\/zhangdiwaa\/my%20blog%20photo\/QQ20160418171335.png\" alt=\"\" width=\"478\" height=\"476\" \/><\/p>\n<p>    \u8be5\u9875\u9762\u7684\u4ee3\u7801\u5047\u8bbe\u662f\u4e0b\u9762\u8fd9\u6837\uff1a<\/p>\n<p>    <img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"http:\/\/i587.photobucket.com\/albums\/ss314\/zhangdiwaa\/my%20blog%20photo\/QQ20160418171350.png\" alt=\"\" width=\"614\" height=\"460\" \/><\/p>\n<p>    \u90a3\u4e48\u6211\u4eec\u53ef\u4ee5\u5728\u76ee\u6807\u51fd\u6570\u5904\u589e\u52a0\u4e00\u4e9b\u989d\u5916\u7684\u64cd\u4f5c\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u6211\u4eec\u52a0\u8f7d\u4e86\u4e00\u4e2a\u76d1\u89c6\u5668\uff0c\u5176\u4e2d\u5305\u542b\u4e24\u4e2a\u53c2\u6570pageview\u548cevent\uff0c\u5206\u522b\u7528\u4ee5\u76d1\u63a7\u9875\u9762\u6e32\u67d3\u6b21\u6570\u548c\u6309\u94ae\u70b9\u51fb\u6b21\u6570\uff1a<\/p>\n<p>    <img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"http:\/\/i587.photobucket.com\/albums\/ss314\/zhangdiwaa\/my%20blog%20photo\/QQ20160418171937.png\" alt=\"\" width=\"614\" height=\"360\" \/><\/p>\n<p>    <strong>\u57fa\u4e8e\u91c7\u6837\u7684\u6027\u80fd\u76d1\u63a7<\/strong><\/p>\n<p>    \u6709\u4e86\u63a2\u9488\uff0c\u5c31\u53ef\u4ee5\u901a\u8fc7\u6570\u636e\u91c7\u6837\u8fdb\u884c\u6027\u80fd\u76d1\u63a7\u3002\u4e0b\u9762\u7ed9\u51fa\u4e86\u4e00\u4e9b\u76d1\u63a7\u6570\u636e\u7684\u53ef\u89c6\u5316\u6548\u679c\uff1a(\u56fe\u7247\u6765\u81ea\uff1ahttp:\/\/www.brendangregg.com\/FlameGraphs\/cpuflamegraphs.html)<\/p>\n<p>    <img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"http:\/\/i587.photobucket.com\/albums\/ss314\/zhangdiwaa\/QQ20160418232348.png\" alt=\"\" width=\"560\" height=\"614\" \/><\/p>\n<p>    \u8fd9\u4e2a\u662flinux\u73af\u5883\u4e0bnodejs\u7684CPU\u8fd0\u884c\u72b6\u51b5\u706b\u7130\u56fe\uff0c\u5b83\u80fd\u7b80\u5355\u6709\u6548\u5730\u8fdb\u884cCPU\u6027\u80fd\u5206\u6790\u3002\u706b\u7130\u56fe\u4e2d\u7eb5\u5750\u6807\u4ee3\u8868CPU\u5360\u7528\u7387\uff0c\u6a2a\u5750\u6807\u662f\u65f6\u95f4\u3002\u4e0d\u540c\u989c\u8272\u4ee3\u8868CPU\u4e0a\u8fd0\u884c\u7684\u4e0d\u540c\u8fd0\u884c\u5355\u5143\uff0c\u7ea2\u8272\u4ee3\u8868\u7cfb\u7edf\u6a21\u5757\uff0c\u9ec4\u8272\u662fC++\uff0c\u7eff\u8272\u662fjs\uff0c\u84dd\u8272\u662f\u7f16\u8bd1\u73af\u5883\u3002\u6570\u636e\u6765\u6e90\u81ea\u63a2\u9488\u91c7\u6837\uff0c\u5177\u4f53\u7684\u8bf4\u662f\u901a\u8fc7\u521b\u5efa\u4e00\u4e2a\u5b9a\u65f6\u4e2d\u65ad\u6765\u6536\u96c6\u5f53\u524d\u7684\u7a0b\u5e8f\u8ba1\u6570\u5668\u3001\u51fd\u6570\u5730\u5740\u6216\u8ddf\u8e2a\u6574\u4e2a\u5806\u6808\uff0c\u5e76\u5c06\u8fd9\u4e9b\u8f6c\u6362\u4e3a\u4e00\u4e2a\u53ef\u89c6\u5316\u62a5\u544a\u3002<\/p>\n<p>    <img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"http:\/\/i587.photobucket.com\/albums\/ss314\/zhangdiwaa\/my%20blog%20photo\/QQ20160418233225.png\" alt=\"\" width=\"577\" height=\"614\" \/><\/p>\n<p>    \u5185\u5b58\u4e2d\u5404\u4e2a\u6a21\u5757\u4e4b\u95f4\u7684\u4e92\u76f8\u8c03\u7528\u5173\u7cfb\u56fe\uff0c\u597d\u50cf\u84dd\u8272\u662f\u7cfb\u7edf\u6a21\u5757\uff0c\u5176\u4ed6\u7684\u8bb0\u4e0d\u5f97\u4e86<\/p>\n<p>    <strong>\u57fa\u4e8edocker\u7684\u524d\u7aef\u81ea\u52a8\u5316\u5de5\u4f5c\u6d41<\/strong><\/p>\n<blockquote><p>\u6240\u8c13<a href=\"http:\/\/www.zdnet.com\/what-is-docker-and-why-is-it-so-darn-popular-7000032269\/\">docker<\/a>\uff0c\u662f\u73b0\u5728\u706b\u7684\u4e0d\u4e86\u7684\u5bb9\u5668\u6280\u672f\uff0c\u4f7f\u7528\u5b83\u53ef\u4ee5\u8ba9\u670d\u52a1\u5668\u8fd0\u884c\u66f4\u591a\u7684\u5e94\u7528\u7a0b\u5e8f\u3002\u636e\u8bf4\uff0c\u501f\u52a9\u7ecf\u8fc7\u5168\u9762\u8c03\u4f18\u7684\u5bb9\u5668\u7cfb\u7edf\uff0c\u4f60\u5c31\u53ef\u4ee5\u5728\u540c\u4e00\u786c\u4ef6\u4e0a\u62e5\u6709\u6570\u91cf\u6bd4\u4f7f\u7528Xen\u865a\u62df\u673a\u6216KVM\u865a\u62df\u673a\u591a\u51fa\u56db\u5230\u516d\u500d\u7684\u670d\u52a1\u5668\u5e94\u7528\u5b9e\u4f8b\u3002\u5bb9\u5668\u4e0e\u865a\u62df\u673a\u4e4b\u95f4\u7684\u533a\u522b\u4e3b\u8981\u5728\u4e8e\uff0c\u865a\u62df\u673a\u7ba1\u7406\u7a0b\u5e8f\u5bf9\u6574\u4e2a\u8bbe\u5907\u8fdb\u884c\u62bd\u8c61\u5904\u7406\uff0c\u800c\u5bb9\u5668\u53ea\u662f\u5bf9\u64cd\u4f5c\u7cfb\u7edf\u5185\u6838\u8fdb\u884c\u62bd\u8c61\u5904\u7406\u3002 \u8fd9\u610f\u5473\u7740\u4f7f\u7528docker\u6280\u672f\u7684\u670d\u52a1\u5668\uff0c\u5176\u4ea7\u751f\u7684\u5b9e\u4f8b\u53ea\u80fd\u8fd0\u884c\u540c\u4e00\u79cd\u7c7b\u578b\u7684\u64cd\u4f5c\u7cfb\u7edf\u3002<\/p><\/blockquote>\n<p>    Dockerfile- gitlab- jenkins &#8211; eslint &#8211; unit test &#8211; build &#8211; tag &#8211; push -run &#8211; a\/b testing<\/p>\n<p>    <img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"http:\/\/i587.photobucket.com\/albums\/ss314\/zhangdiwaa\/my%20blog%20photo\/QQ20160418170946.png\" alt=\"\" width=\"614\" height=\"453\" \/><\/p>\n<p>    \u6700\u540e\u662f\u4ed6\u6240\u5728\u9879\u76ee\u7ec4\u6240\u505a\u7684\u6027\u80fd\u76d1\u63a7\u53ef\u89c6\u5316\u754c\u9762\u3002\u4e0d\u5439\u725b\uff0c\u6362\u6211\u505a\u754c\u9762\u80fd\u53ef\u80fd\u505a\u5f97\u66f4\u597d\u3002<\/p>\n<p>    \u6211\u4e5f\u77e5\u9053\u7c7b\u4f3c\u7684\u5de5\u4f5c\uff0c\u50cf\u767e\u5ea6\u3001\u963f\u91cc\u7b49\u516c\u53f8\u7684\u5185\u90e8\uff0c\u5c31\u6709\u5c0f\u7ec4\u4e13\u95e8\u505a\u7528\u6237\u7814\u7a76\u3002\u901a\u8fc7\u5728\u524d\u7aef\u754c\u9762\u4e0a\u63a5\u5165\u8bb8\u591a\u7528\u6237\u4e0d\u53ef\u89c1\u7684\u63a2\u9488\uff0c\u6765\u6536\u96c6\u6570\u636e\u7edf\u8ba1\u7528\u6237\u504f\u597d\uff0c\u524d\u7aef\u6027\u80fd\u60c5\u51b5\u7b49\uff0c\u5e76\u5c06\u62a5\u544a\u63d0\u4f9b\u7ed9\u9879\u76ee\u7ec4\u3002\u5e76\u4e14\u63a5\u53d7\u670d\u52a1\u7684\u9879\u76ee\u7ec4\u901a\u5e38\u4e0d\u9700\u8981\u5bf9\u6b64\u63d0\u4f9b\u592a\u591a\u7684\u5e2e\u52a9\uff0c\u6574\u4e2a\u6d41\u7a0b\u662f\u81ea\u52a8\u5316\u7684\u3002\u4f46\u4ee5\u4e0a\u670d\u52a1\uff0c\u5bf9\u4e8e\u5c0f\u516c\u53f8\u800c\u8a00\u5c31\u4e0d\u5927\u6709\u7cbe\u529b\u53bb\u641e\u4e86\u3002\u800coneAPM\u4e4b\u7c7b\u7684\u516c\u53f8\u5c31\u662f\u9488\u5bf9\u4e2d\u5c0f\u516c\u53f8\u63d0\u4f9b\u7c7b\u4f3c\u7684\u670d\u52a1\u3002\u6211\u89c9\u5f97\u8fd9\u4e5f\u662f\u4e2a\u5f88\u597d\u7684\u7740\u773c\u70b9\u3002\u5c31\u50cf19\u4e16\u7eaa\u65e7\u91d1\u5c71\u91d1\u77ff\u5f00\u91c7\uff0c\u5168\u7f8e\u7684\u63a2\u9669\u8005\u90fd\u8dd1\u53bb\u6dd8\u91d1\uff0c\u4f46\u4e5f\u6709\u4eba\u4e13\u95e8\u505a\u8d77\u7ed9\u6dd8\u91d1\u8005\u5356\u996e\u7528\u6c34\u548c\u8863\u670d\u7684\u5de5\u4f5c\uff0c\u7ed3\u679c\u4e5f\u53d1\u4e86\u5927\u8d22\uff0c\u8bde\u751f\u4e86\u77f3\u6cb9\u5de8\u5934\u548c\u725b\u4ed4\u88e4\u3002<\/p>\n<h2><\/h2>\n<p>    <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large\" src=\"http:\/\/zhangdi.dengxinbo.cn\/828495544630972762.jpg\" width=\"800\" height=\"259\" \/><\/p>\n<p>    \u4f1a\u540e\u6211\u548c\u5e08\u5f1f\u53bb\u4e09\u91cc\u5c6f\u7684\u6ce2\u65af\u6ce2\u5229\u65af\u9910\u5385\u70b9\u4e86\u4e2a\u201c\u77f3\u69b4\u9171\u6838\u6843\u7096\u9e21\u201d\u5e26\u8d70\u3002\u8fd9\u91cc\u6709\u4e09\u5bb6\u4e2d\u4e1c\u98ce\u5473\u9910\u5385\uff0c\u5206\u522b\u662f\u963f\u62c9\u4f2f\u9910\u5385\u3001\u6ce2\u65af\u6ce2\u5229\u65af\u9910\u5385\u3001\u571f\u8033\u5176\u5988\u5988\u9910\u5385\u3002\u4e2d\u4e1c\u4e92\u4e3a\u654c\u4eba\u7684\u4e09\u56fd\uff0c\u5728\u8fd9\u91cc\u5012\u662f\u5f88\u548c\u8c10\u5730\u5f00\u5728\u4e00\u8d77\u3002<\/p>\n<p>    \u9644\u5f55\uff1a<a href=\"https:\/\/cnodejs.org\/topic\/56f8ce05e2d0ba0b32388717\">cnode\u7f51\u7ad9\u4e0a\u5173\u4e8e\u6b64\u6b21\u6d3b\u52a8\u7684\u4ecb\u7ecd<\/a><\/p>\n<p>    <a href=\"http:\/\/www.edwardesire.com\/beijing-nodeparty\/\">\u6211\u5e08\u5f1f\u8096\u5b50\u8fbe\u7684\u5173\u4e8e\u6b64\u6b21\u6d3b\u52a8\u7684\u535a\u5ba2<\/a>\uff0c\u6709\u4e9b\u5185\u5bb9\u6bd4\u6211\u7684\u66f4\u8be6\u7ec6\uff0c\u56e0\u4e3a\u4e8b\u540e\u91cd\u590d\u770b\u8fc7\u76f8\u5173PPT<\/p>\n<p>    &nbsp;<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>3\u670826\u65e5\u4e0b\u5348\uff0c\u672c\u4eba\u540c\u5e08\u5f1f\u8096\u5b50\u8fbe\uff0c\u53c2\u52a0\u4e86<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[41,67,78,104,105],"class_list":["post-1533","post","type-post","status-publish","format-standard","hentry","category-myteam","tag-node-js","tag-67","tag-78","tag-104","tag-105"],"_links":{"self":[{"href":"https:\/\/www.divis.cn\/index.php\/wp-json\/wp\/v2\/posts\/1533","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.divis.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.divis.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.divis.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.divis.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1533"}],"version-history":[{"count":0,"href":"https:\/\/www.divis.cn\/index.php\/wp-json\/wp\/v2\/posts\/1533\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.divis.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1533"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.divis.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1533"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.divis.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1533"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}