{"id":144792,"date":"2019-05-21T08:00:47","date_gmt":"2019-05-21T00:00:47","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=144792"},"modified":"2019-05-15T09:00:18","modified_gmt":"2019-05-15T01:00:18","slug":"micro-service-soa","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/micro-service-soa.html","title":{"rendered":"\u901a\u8fc7\u5fae\u670d\u52a1\u6765\u6b63\u786e\u5b9e\u65bdSOA"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u5bf9\u4e8e\u7ec4\u7ec7\u6765\u8bf4\uff0c\u80fd\u591f\u6784\u5efa\u3001\u53d1\u5c55\u548c\u6269\u5c55\u5927\u578b\u5e94\u7528\u7a0b\u5e8f\u662f\u81f3\u5173\u91cd\u8981\u7684, \u4f46\u6240\u6d89\u53ca\u7684\u6311\u6218\u4f7f\u5176\u6210\u4e3a\u4e00\u9879\u8270\u5de8\u7684\u4efb\u52a1\u3002\u6b63\u56e0\u4e3a\u5982\u6b64, \u5fae\u670d\u52a1\u51ed\u501f\u80fd\u591f\u5c06\u5355\u4e2a\u7ec4\u4ef6\u62c6\u5206\u6210\u56f4\u7ed5\u7279\u5b9a\u4e1a\u52a1\u529f\u80fd\u7684\u72ec\u7acb\u670d\u52a1\uff0c\u5df2\u6210\u4e3a\u6784\u5efa\u73b0\u4ee3\u4e91\u5e94\u7528\u7a0b\u5e8f\u7684\u4e3b\u8981\u6a21\u5f0f\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u5fae\u670d\u52a1\u67b6\u6784\u662f\u4e00\u79cd\u5206\u5e03\u5f0f\u7cfb\u7edf\u7684\u65b9\u6cd5\uff0c\u5b83\u53ef\u4ee5\u4fc3\u8fdb\u4f7f\u7528\u5177\u6709\u81ea\u8eab\u751f\u547d\u5468\u671f\u7684\u7ec6\u7c92\u5ea6\u670d\u52a1\u3002\u7531\u4e8e\u5fae\u670d\u52a1\u4e3b\u8981\u662f\u56f4\u7ed5\u5355\u4e2a\u4e1a\u52a1\u6d41\u7a0b\/\u529f\u80fd\u800c\u5efa\u6a21\u7684\uff0c\u6240\u4ee5\u5b83\u4eec\u907f\u514d\u4e86\u4f20\u7edf\u5206\u5c42 (\u591a\u5c42\/n \u5c42)\u4f53\u7cfb\u7ed3\u6784(\u5982\u5355\u4f53\u5e94\u7528) \u7684\u95ee\u9898\u3002\u5fae\u670d\u52a1\u540c\u65f6\u8fd8\u96c6\u6210\u4e86\u8fc7\u53bb\u5341\u5e74\u51fa\u73b0\u7684\u6280\u672f\u548c\u65b0\u5174\u6280\u672f\uff0c\u56e0\u6b64\u907f\u514d\u4e86\u8bb8\u591a\u9762\u5411\u670d\u52a1\u4f53\u7cfb\u7ed3\u6784\u5b9e\u73b0\u7684\u7f3a\u70b9\u3002<\/p>\n

\u867d\u7136\u4f7f\u7528\u5fae\u670d\u52a1\u5728\u4f7f\u5927\u578b\u5e94\u7528\u7a0b\u5e8f\u66f4\u6613\u4e8e\u7ba1\u7406\u65b9\u9762\u6709\u8bf8\u591a\u597d\u5904\uff0c\u4f46\u662f\u5728\u4efb\u4f55\u60c5\u51b5\u4e0b\uff0c\u6784\u5efa\u4e00\u4e2a\u53ef\u9760\u7684\u5206\u5e03\u5f0f\u7cfb\u7edf\u90fd\u662f\u975e\u5e38\u5177\u6709\u6311\u6218\u6027\u7684\uff0c\u56e0\u4e3a\u5728\u5904\u7406\u6545\u969c\u3001\u4e00\u81f4\u6027\u548c\u6027\u80fd\u7b49\u65b9\u9762\u6709\u5f88\u591a\u9700\u8981\u8003\u8651\u7684\u56e0\u7d20\u3002<\/p>\n

\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5fae\u670d\u52a1\u67b6\u6784\u7684\u5b9e\u73b0\u8def\u5f84\uff0c\u5e76\u5206\u6790\u4e86\u8be5\u6a21\u5f0f\u7684\u4f18\u7f3a\u70b9\u3002\u540c\u65f6\u8ba8\u8bba\u4e86\u5e2e\u52a9\u5f00\u53d1\u4eba\u5458\u548c\u5e94\u7528\u67b6\u6784\u5e08\uff0c\u5b9e\u73b0\u5176\u5e94\u7528\u7a0b\u5e8f\u76ee\u6807\u7684\u6700\u4f18\u65b9\u6cd5\u3002<\/p>\n

SOA\uff1a\u9762\u5411\u670d\u52a1\u7684\u67b6\u6784<\/strong><\/span><\/div>\n

\u9762\u5411\u670d\u52a1\u7684\u4f53\u7cfb\u67b6\u6784SOA\u662f\u4e00\u79cd\u53ef\u6839\u636e\u9700\u6c42\u901a\u8fc7\u7f51\u7edc\u5bf9\u677e\u6563\u8026\u5408\u7684\u7c97\u7c92\u5ea6\u5e94\u7528\u7ec4\u4ef6\u8fdb\u884c\u5206\u5e03\u5f0f\u90e8\u7f72\u3001\u7ec4\u5408\u548c\u4f7f\u7528\u7684\u65b9\u6cd5\u3002\u6bcf\u4e2a\u670d\u52a1\u90fd\u5c06\u5b9e\u73b0\u9884\u5b9a\u4e49\u7684\u4e1a\u52a1\u76ee\u6807\uff0c\u5e76\u6267\u884c\u5206\u79bb\u7684\u5de5\u4f5c\u5355\u5143\u3002\u8fd9\u4e9b\u670d\u52a1\u662f\u72ec\u7acb\u7684\uff0c\u4e0d\u4f9d\u8d56\u4e8e\u5176\u5b83\u670d\u52a1\u7684\u4e0a\u4e0b\u6587\u6216\u72b6\u6001\u3002\u5b83\u4eec\u5728\u5206\u5e03\u5f0f\u7cfb\u7edf\u4f53\u7cfb\u7ed3\u6784\u4e2d\u5de5\u4f5c\u3002<\/p>\n

\u5728\u67d0\u4e9b\u65b9\u9762\uff0cSOA\u67b6\u6784\u662f\u5206\u5e03\u5f0f\u6280\u672f\uff08COM\u548cCORBA\uff09\u7684\u8fdb\u5316\u3002\u4e0e\u8fd9\u4e9b\u7c7b\u4f3c\uff0cSOA\u5f3a\u8c03\u670d\u52a1\u4e0e\u6d88\u8d39\u8005\uff08WSDL\uff09\u4ee5\u53ca\u7279\u5b9a\u670d\u52a1\u53d1\u73b0\uff08UDDI\uff09\u3001\u4f20\u8f93\uff08SOAP\uff09\u3001\u4e2d\u4ecb\uff08WS-mediation\uff09\u3001\u8def\u7531\uff08WS-\u5bfb\u5740\uff09\u3001\u5b89\u5168\uff08WS-security\u3001WS-trust\u3001WS- secure conversation\u7b49\uff09\u548c\u5206\u5e03\u5f0f\u8ba1\u7b97\u7684\u5176\u4ed6\u65b9\u9762\u4e4b\u95f4\u7684\u4e25\u683c\u5951\u7ea6\u3002\u6b64\u5916\uff0cSOA\u901a\u8fc7\u4f01\u4e1a\u5b58\u50a8\u5e93\u3001\u670d\u52a1\u751f\u547d\u5468\u671f\u7ba1\u7406\u548c\u670d\u52a1\u7ea7\u522b\u76d1\u63a7\u5de5\u5177\uff0c\u5f3a\u8c03\u5bf9\u670d\u52a1\u7684\u8bbe\u8ba1\u3001\u5f00\u53d1\u548c\u8fd0\u8425\u6cbb\u7406<\/p>\n

Introduction<\/strong><\/span><\/div>\n

\u5fae\u670d\u52a1\u662f\u4e00\u79cd\u4f53\u7cfb\u7ed3\u6784\u98ce\u683c\u3002\u5b83\u662f\u4e00\u79cd\u5c06\u5355\u4e2a\u5e94\u7528\u7a0b\u5e8f\u5f00\u53d1\u4e3a\u4e00\u7ec4\u5c0f\u578b\u670d\u52a1\u7684\u65b9\u6cd5\uff0c\u6bcf\u4e2a\u670d\u52a1\u90fd\u8fd0\u884c\u81ea\u5df1\u7684\u6d41\u7a0b\uff0c\u5e76\u4e0e\u8f7b\u91cf\u7ea7\u673a\u5236\u901a\u4fe1\uff0c\u901a\u5e38\u662f HTTP API\u3002\u8fd9\u4e9b\u670d\u52a1\u662f\u56f4\u7ed5\u4e1a\u52a1\u529f\u80fd\u6784\u5efa\u7684\uff0c\u53ef\u4ee5\u72ec\u7acb\u90e8\u7f72\u3002<\/p>\n

\u5fae\u670d\u52a1\u6a21\u5f0f\u6709\u7740\u663e\u8457\u7684\u597d\u5904\uff0c\u7279\u522b\u662f\u5728\u652f\u6301\u590d\u6742\u4f01\u4e1a\u5e94\u7528\u7a0b\u5e8f\u7684\u654f\u6377\u5f00\u53d1\u548c\u4ea4\u4ed8\u65b9\u9762\u3002<\/p>\n

\u5fae\u670d\u52a1\u4f53\u7cfb\u7ed3\u6784\u6a21\u5f0f\u5c06\u5e94\u7528\u7a0b\u5e8f\u5206\u89e3\u4e3a\u53ef\u7ba1\u7406\u7684\u5757\uff0c\u4ece\u800c\u5b9e\u73b0\u6267\u884c\u6a21\u5757\u7ea7\u522b\uff0c\u800c\u5728\u5b9e\u8df5\u4e2d\uff0c\u901a\u8fc7\u5355\u4e00\u4ee3\u7801\u5e93\u5b9e\u73b0\u6a21\u5757\u7ea7\u522b\u662f\u6781\u5176\u56f0\u96be\u7684\u3002\u56e0\u6b64\uff0c\u5355\u4e2a\u670d\u52a1\u7684\u5f00\u53d1\u901f\u5ea6\u66f4\u5feb\uff0c\u4e5f\u66f4\u5bb9\u6613\u7406\u89e3\u548c\u7ef4\u62a4\u3002<\/p>\n

\u53e6\u5916\uff0c\u8fd9\u79cd\u65b9\u6cd5\u66f4\u503e\u5411\u4e8e\u8f7b\u91cf\u7ea7\u6d88\u606f\u603b\u7ebf\u3002\u7b80\u5355\u6765\u8bf4\uff0c\u57fa\u4e8e\u5fae\u670d\u52a1\u6784\u5efa\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u5176\u76ee\u7684\u662f\u5c3d\u53ef\u80fd\u5730\u505a\u5230\u89e3\u8026\u548c\u805a\u5408\u3002\u5b83\u4eec\u62e5\u6709\u81ea\u5df1\u7684\u5355\u4e2a\u57df\u903b\u8f91\uff0c\u5e76\u66f4\u591a\u5730\u5145\u5f53\u8fc7\u6ee4\u5668\u2014\u2014\u63a5\u6536\u8bf7\u6c42\uff0c\u6839\u636e\u9700\u8981\u9002\u5f53\u5730\u5e94\u7528\u903b\u8f91\uff0c\u5e76\u4ea7\u751f\u54cd\u5e94\u3002<\/p>\n

\u5fae\u670d\u52a1\u4f53\u7cfb\u7ed3\u6784\u7684\u672c\u8d28\u5e76\u4e0d\u65b0\u9c9c\uff0c\u5206\u5e03\u5f0f\u7cfb\u7edf\u7684\u6982\u5ff5\u7531\u6765\u5df2\u4e45\u3002\u5fae\u670d\u52a1\u4f53\u7cfb\u7ed3\u6784\u4e5f\u7c7b\u4f3c\u4e8eSOA\u3002\u5fae\u670d\u52a1\u80cc\u540e\u7684\u7406\u5ff5\u662f\u6784\u5efa\u5927\u578b\u7684\u3001\u590d\u6742\u7684\u3001\u957f\u671f\u5b58\u5728\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u5373\u968f\u7740\u65f6\u95f4\u7684\u63a8\u79fb\uff0c\u800c\u6f14\u8fdb\u6210\u4e00\u5957\u7edf\u4e00\u7684\uff08\u6709\u7ec4\u7ec7\u7684\u6216\u76f8\u4e92\u8fde\u63a5\u7684\uff09\u670d\u52a1\u3002\u201c\u5fae\u670d\u52a1\u201d\u8fd9\u4e00\u672f\u8bed\u5f3a\u70c8\u8868\u660e\u4e86\u670d\u52a1\u5e94\u8be5\u662f\u5c0f\u578b\u7684\u3002<\/p>\n

\u7136\u800c\uff0c\u5c3d\u7ba1\u62e5\u6709\u5c0f\u578b\u670d\u52a1\u662f\u53ef\u53d6\u7684\uff0c\u4f46\u8fd9\u4e0d\u5e94\u8be5\u662f\u4e3b\u8981\u76ee\u6807\u3002\u76f8\u53cd\uff0c\u4f60\u7684\u76ee\u6807\u5e94\u8be5\u5728\u4e8e\u5c06\u7cfb\u7edf\u5206\u89e3\u4e3a\u670d\u52a1\uff0c\u4ee5\u89e3\u51b3\u5f00\u53d1\u548c\u90e8\u7f72\u7684\u95ee\u9898\u3002\u6709\u4e9b\u670d\u52a1\u53ef\u80fd\u786e\u5b9e\u5f88\u5c0f\uff0c\u800c\u53e6\u4e00\u4e9b\u53ef\u80fd\u76f8\u5f53\u5927\u3002<\/p>\n

\u5e94\u7528\u7a0b\u5e8f\u7684\u53d1\u5c55\u6f14\u53d8
\n\"\"<\/p>\n

\u5355\u5c42\u5e94\u7528\u7a0b\u5e8f<\/strong><\/span><\/div>\n

\u5728\u65e9\u671f\u53d1\u5c55\u8fdb\u7a0b\u4e2d\uff0c\u5e94\u7528\u7a0b\u5e8f\u4f5c\u4e3a\u4e00\u4e2a\u5355\u4e00\u5b9e\u4f53\u5f00\u53d1\u90e8\u7f72\u3002\u8fd9\u4e9b\u5355\u5c42\u5e94\u7528\u7a0b\u5e8f\u6613\u4e8e\u90e8\u7f72\uff0c\u56e0\u4e3a\u5b83\u4eec\u53ea\u6709\u4e00\u4e2a\u4ee3\u7801\u57fa\u548c\u90e8\u7f72\u914d\u7f6e\u3002<\/p>\n

\u53ef\u4f38\u7f29\u6027\u5bf9\u4e8e\u8fd9\u79cd\u5e94\u7528\u7a0b\u5e8f\u6765\u8bf4\uff0c\u662f\u4e00\u4e2a\u5de8\u5927\u7684\u6311\u6218\uff0c\u56e0\u4e3a\u5b83\u53ea\u80fd\u901a\u8fc7\u590d\u5236\u6574\u4e2a\u5e94\u7528\u7a0b\u5e8f\u6765\u5b9e\u73b0\u3002\u8fd9\u5c06\u76f4\u63a5\u589e\u52a0\u4f01\u4e1a\u7684\u6210\u672c\uff0c\u5e76\u968f\u7740\u6d41\u91cf\u548c\u8d1f\u8f7d\u7684\u589e\u52a0\u800c\u9020\u6210\u8d44\u6e90\u6d6a\u8d39\u3002<\/p>\n

\u591a\u5c42 (\u6216 n \u5c42)<\/strong><\/span><\/div>\n

\u5355\u5c42\/\u6574\u4f53\u5e94\u7528\u7684\u7f3a\u70b9\u5bfc\u81f4\u4e86\u591a\u5c42\u4f53\u7cfb\u7ed3\u6784\u7684\u4ea7\u751f\u3002\u8fd9\u79cd\u65b0\u4f53\u7cfb\u7ed3\u6784\u5c06\u5e94\u7528\u7a0b\u5e8f\u5206\u89e3\u4e3a\u903b\u8f91\u5206\u5e03\u5f0f\u5c42\uff0c\u4ece\u800c\u5b9e\u73b0\u4e86\u9ad8\u6548\u7684\u53ef\u4f38\u7f29\u6027\u3002\u8fd9\u79cd\u65b9\u6cd5\u901a\u5e38\u5c06\u8868\u793a\u5c42\u3001\u6570\u636e\u5c42\u548c\u4e1a\u52a1\u903b\u8f91\u5c42\u5206\u79bb\u3002\u6240\u4ee5\uff0c\u6269\u5c55\u65b9\u6cd5\u5355\u72ec\u5e94\u7528\u4e8e\u8fd9\u4e9b\u5c42\uff0c\u800c\u4e0d\u662f\u5e94\u7528\u4e8e\u6574\u4e2a\u5e94\u7528\u3002<\/p>\n

\u4f46\u662f\uff0c\u5f53\u4f7f\u7528\u8be5\u6a21\u5f0f\u6784\u5efa\u7684\u5e94\u7528\u7a0b\u5e8f\u589e\u957f\u65f6\uff0c\u5b83\u4f1a\u5728\u4e1a\u52a1\u903b\u8f91\u5c42\u4e0a\u4ea7\u751f\u5e94\u53d8\uff0c\u5e76\u5f15\u51fa\u5355\u4f53\u67b6\u6784\u7684\u8bb8\u591a\u7f3a\u70b9\u3002\u540c\u6837\uff0c\u4f5c\u4e3a\u4e00\u4e2a\u5355\u4e00\u5b9e\u4f53\uff0c\u53ef\u4f38\u7f29\u6027\u662f\u5177\u6709\u6311\u6218\u6027\u7684\uff0c\u6210\u672c\u4e5f\u662f\u9ad8\u6602\u7684\u3002<\/p>\n

\u9762\u5411\u670d\u52a1\u7684\u4f53\u7cfb\u7ed3\u6784 (SOA)<\/strong><\/span><\/div>\n

SOA\u53d1\u5c55\u6f14\u53d8\u8fc7\u7a0b\u4e2d\uff0c\u5176\u7406\u5ff5\u662f\u5b9e\u73b0\u5c06\u5e94\u7528\u7a0b\u5e8f\u89c6\u4e3a\u4e1a\u52a1\u529f\u80fd\u7684\u613f\u666f\u3002<\/p>\n

\u968f\u7740\u8d8a\u6765\u8d8a\u591a\u7684\u4f01\u4e1a\u8d70\u5411\u81ea\u52a8\u5316\/\u6570\u5b57\u5316\uff0cIT\u56e0\u670d\u52a1\u4e8e\u5feb\u901f\u53d8\u5316\u7684\u4e1a\u52a1\u9700\u6c42\uff0c\u5df2\u7136\u53d1\u5c55\u4e3a\u4e1a\u52a1\u7684\u652f\u67f1\u3002\u8fd9\u4e9b\u5feb\u901f\u53d8\u5316\u7684\u4e1a\u52a1\u9700\u6c42\uff0c\u4f7f\u5f97\u5f00\u53d1\u4eba\u5458\u5f00\u59cb\u5c06\u4ed6\u4eec\u7684\u5e94\u7528\u8bbe\u60f3\u4e3a\u4e1a\u52a1\u529f\u80fd\u7684\u96c6\u5408\uff0c\u56e0\u6b64\u4e0e\u7ec4\u4ef6\u5728\u5806\u6808\u4e2d\u7684\u4f4d\u7f6e\u76f8\u6bd4\uff0c\u9694\u79bb\u7ec4\u4ef6\u66f4\u7b26\u5408\u4ed6\u4eec\u7684\u7528\u9014\u3002\u4f8b\u5982\uff0c\u5f00\u53d1\u4eba\u5458\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u7528\u6765\u5904\u7406\u7528\u6237\u8eab\u4efd\u9a8c\u8bc1\u3001\u8ba1\u8d39\u8ba2\u5355\u670d\u52a1\u6216\u5904\u7535\u5b50\u90ae\u4ef6\u53d1\u9001\u901a\u77e5\u7684\u7528\u6237\u670d\u52a1\uff0c\u56e0\u4e3a\u6bcf\u4e2a\u670d\u52a1\u90fd\u66f4\u5c0f\u3001\u66f4\u96c6\u4e2d\uff0c\u8fd9\u6837\u53ef\u4ee5\u63d0\u4f9b\u66f4\u6709\u6548\u7684\u53ef\u4f38\u7f29\u6027\u3002<\/p>\n

\u867d\u7136\u8fd9\u79cd\u6a21\u5f0f\u4e3a\u6784\u5efa\u6709\u6548\u7684\u5e94\u7528\u7a0b\u5e8f\u4f53\u7cfb\u7ed3\u6784\u63d0\u4f9b\u4e86\u6846\u67b6\uff0c\u4f46\u7531\u4e8e\u4e0d\u5fc5\u8981\u7684\u590d\u6742\u62bd\u8c61\u548c\u9057\u7559\u534f\u8bae\uff0c\u5b83\u7684\u5b9e\u8df5\u901a\u5e38\u662f\u65e0\u6548\u7684\u3002\u5f00\u53d1\u4eba\u5458\u5c06\u5c1d\u8bd5\u4f7f\u7528 SOA \u6765\u8fde\u63a5\u8303\u56f4\u5e7f\u6cdb\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u5b83\u4eec\u90fd\u91c7\u7528\u4e0d\u540c\u7684\u8bed\u8a00\uff0c\u9700\u8981\u4e3a\u4f01\u4e1a\u670d\u52a1\u603b\u7ebf\u63d0\u4f9b\u989d\u5916\u7684\u5c42\u3002\u8fd9\u5bfc\u81f4\u4e86\u8fc7\u65f6\u3001\u6602\u8d35\u7684\u914d\u7f6e\uff0c\u65e0\u6cd5\u8ddf\u4e0a\u6280\u672f\u548c\u5546\u4e1a\u73af\u5883\u7684\u53d1\u5c55\u3002<\/p>\n

Microservices\u2014\u2014Artefacts<\/strong><\/span><\/div>\n

\u4e3a\u4ec0\u4e48\u662f\u5fae\u670d\u52a1\u2014\u2014\u65b0\u6a21\u5f0f\uff1f<\/p>\n

IT\u7684\u53d1\u5c55\u5df2\u7ecf\u6781\u5927\u5730\u6539\u53d8\u4e86\u5168\u7403\u5546\u4e1a\u7684\u524d\u666f\u3002\u5728\u65e9\u671f\uff0cIT\u88ab\u8ba4\u4e3a\u662f\u5546\u4e1a\/\u7ec4\u7ec7\u7684\u63f4\u52a9\u4e4b\u624b\uff0c\u7528\u4e8e\u51cf\u5c11\u4e1a\u52a1\u529f\u80fd\/\u5355\u5143\u7684\u624b\u5de5\u5de5\u4f5c\u3002<\/p>\n

\u5982\u4eca\uff0cIT\u6b63\u88ab\u7528\u6765\u6539\u9020\u4e1a\u52a1, \u4ea7\u751f\u66f4\u591a\u7684\u6536\u5165\u3002\u6240\u4ee5\uff0c\u73b0\u5728IT\u4e0d\u4ec5\u4ec5\u662f\u4e00\u4e2a\u652f\u6301\u529f\u80fd\uff0c\u800c\u662f\u4e3b\u8981\u7684\u4e1a\u52a1\u529f\u80fd\u3002<\/p>\n

Gartner \u5728\u51762015\u768410\u5927\u6218\u7565\u6280\u672f\u8d8b\u52bf\u4e2d\u8868\u793a\uff1a\u201c\u4e3a\u4e86\u8fc5\u901f\u5730\u5e94\u5bf9\u6570\u5b57\u4e1a\u52a1\u548c\u89c4\u6a21\u7cfb\u7edf\u7684\u5feb\u901f\u53d8\u5316\u9700\u6c42\uff0c\u8ba1\u7b97\u5fc5\u987b\u4ece\u9759\u6001\u6a21\u5f0f\u8f6c\u5411\u52a8\u6001\u6a21\u5f0f\u3002\u89c4\u5219\u3001\u6a21\u5f0f\u548c\u4ee3\u7801\u53ef\u4ee5\u901a\u8fc7\u5e94\u7528\u7a0b\u5e8f\u52a8\u6001\u5730\u7ec4\u88c5\uff0c\u4ee5\u53ca\u914d\u7f6e\u7f51\u7edc\u6240\u9700\u7684\u6240\u6709\u5143\u7d20\u3002\u201d<\/p>\n

\u8fd9\u79cd\u5728\u5e94\u7528\u4f53\u7cfb\u7ed3\u6784\u4e2d\u601d\u7ef4\u7684\u8f6c\u53d8\uff0c\u4e5f\u5e26\u6765\u4e86\u5b9e\u8df5\u4e0a\u7684\u8f6c\u53d8\u3002Gartner \u7684\u8fdb\u4e00\u6b65\u9884\u6d4b\u8868\u660e\uff0c\u201c\u5bf9\u4e8e\u8bb8\u591a\u7ec4\u7ec7\u6765\u8bf4\uff0c\u9762\u5411 Web-Scale IT \u672a\u6765\u8fc8\u51fa\u7684\u7b2c\u4e00\u6b65\u5e94\u8be5\u662f DevOps \u2014\u2014\u4ee5\u534f\u8c03\u7684\u65b9\u5f0f\u5c06\u5f00\u53d1\u548c\u8fd0\u7ef4\u7ed3\u5408\u5728\u4e00\u8d77\uff0c\u4ee5\u63a8\u52a8\u5e94\u7528\u670d\u52a1\u7684\u5feb\u901f\u3001\u6301\u7eed\u7684\u589e\u91cf\u5f00\u53d1\u3002\u201d<\/p>\n

\u4f7f\u7528 Web-Scale IT \u4f01\u4e1a\u53ef\u4ee5\u66f4\u8f7b\u677e\u5730\u6784\u5efa\u7c7b\u4f3c\u4e8e Amazon\u3001Google \u548c Facebook \u63d0\u4f9b\u7684\u5e94\u7528\u7a0b\u5e8f\u548c\u57fa\u7840\u67b6\u6784\u3002Web-Scale IT \u80fd\u591f\u4f7f\u4f01\u4e1a\u5728\u5176 IT \u8bbe\u7f6e\u4e2d\uff0c\u8fdb\u4e00\u6b65\u62e5\u62b1\u4e91\uff0c\u5411\u5185\u90e8\u7528\u6237\u63d0\u4f9b\u5927\u578b\u670d\u52a1\u63d0\u4f9b\u5546\u7684\u80fd\u529b\u3002
\n\u4eceSOA\u5206\u5316<\/p>\n

\u5fae\u670d\u52a1\u6a21\u5f0f\u5728\u5b9a\u4e49\u7279\u6027\u65b9\u9762\u6bd4 SOA \u66f4\u6e05\u6670\uff0c\u5b83\u63d0\u4f9b\u4e86\u4e00\u4e2a\u6ee1\u8db3\u73b0\u4ee3\u5e94\u7528\u7a0b\u5e8f\u4f53\u7cfb\u7ed3\u6784\u9700\u6c42\u7684\u6846\u67b6\u3002\u5fae\u670d\u52a1\u901a\u5e38\u88ab\u79f0\u4e3a\uff1a\u6b63\u786e\u5b9e\u65bd\u7684 SOA \u3002<\/p>\n

SOA \u4e13\u6ce8\u4e8e\u72ec\u7acb\u7684\u6280\u672f\u7cfb\u7edf, \u5fae\u670d\u52a1\u4e13\u6ce8\u4e8e\u72ec\u7acb\u7684\u4e1a\u52a1\u7cfb\u7edf\u3002<\/p>\n

\u5fae\u670d\u52a1\u6a21\u5f0f\u7684\u76ee\u6807\u4e0d\u662f\u5c06\u5404\u79cd\u5e94\u7528\u7a0b\u5e8f\u8fde\u63a5\u5728\u4e00\u8d77\uff0c\u800c\u662f\u521b\u5efa\u4e00\u4e2a\u7531\u72ec\u7acb\u5f00\u53d1\u3001\u72ec\u7acb\u90e8\u7f72\u7684\u670d\u52a1\uff0c\u7ec4\u6210\u7684\u5355\u4e00\u3001\u805a\u5408\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u6bcf\u4e2a\u670d\u52a1\u90fd\u9075\u5faa\u5355\u4e00\u804c\u8d23\u539f\u5219\u3002\u7136\u800c\uff0c\u201c\u5fae\u201d\u8fd9\u4e2a\u8868\u8ff0\uff0c\u5bf9\u4e8e\u5fae\u670d\u52a1\u7684\u7279\u6027\u6765\u8bf4\uff0c\u53ef\u80fd\u4f1a\u5177\u6709\u4e00\u70b9\u513f\u6b3a\u9a97\u6027\uff0c\u56e0\u4e3a\u5927\u5c0f\u5e76\u4e0d\u662f\u5fae\u670d\u52a1\u5b9a\u4e49\u7684\u7279\u5f81\u3002\u867d\u7136\u5fae\u670d\u52a1\u901a\u5e38\u5f88\u5c0f\uff0c\u4f46\u66f4\u91cd\u8981\u7684\u662f\u6bcf\u4e2a\u670d\u52a1\u81ea\u5df1\u5c01\u88c5\u7684\u6d41\u7a0b\u53ef\u4ee5\u72ec\u7acb\u5f00\u53d1\u548c\u90e8\u7f72\u3002\u5f00\u53d1\u4eba\u5458\u901a\u8fc7\u9650\u5236\u4e00\u4e2a\u670d\u52a1\u53ef\u505a\u7684\u4e8b\u60c5\u8303\u56f4\uff0c\u6765\u786e\u4fdd\u8fd9\u4e9b\u670d\u52a1\u4e0d\u4f1a\u65e0\u610f\u4e2d\u548c\u8bb8\u591a\u89e3\u8026\u7684\u5355\u4f53\u4e00\u8d77\u7ed3\u675f\u3002<\/p>\n

\u4e0e\u73b0\u4ee3\u4e91\u4e00\u6837\uff0c\u670d\u52a1\u4e4b\u95f4\u7684\u901a\u4fe1\u662f\u901a\u8fc7\u57fa\u4e8eREST\u7684API\uff0c\u901a\u8fc7HTTP\u5b8c\u6210\u7684\uff0c\u4f20\u9012JSON\u6570\u636e\uff0c\u901a\u5e38\u901a\u8fc7\u6d88\u606f\u961f\u5217\u6765\u786e\u4fdd\u53ef\u9760\u6027\u3002\u5355\u4e2a\u5fae\u670d\u52a1\u901a\u5e38\u662f\u5f02\u6b65\u5904\u7406\u7684\uff0c\u7531API\u8c03\u7528\u3001\u63a8\u9001\u961f\u5217\u3001\u8c03\u5ea6\u6216 webhook \u7b49\u4e8b\u4ef6\u89e6\u53d1\u3002\u4e00\u4e2a\u56f4\u7ed5\u901a\u4fe1\u548c\u5904\u7406\u7684\u8f7b\u91cf\u7ea7\u3001\u9ad8\u6548\u6846\u67b6\uff0c\u8fdb\u4e00\u6b65\u5c06\u5fae\u670d\u52a1\u4e0eSOA\u533a\u5206\u5f00\u6765\u3002<\/p>\n

\u5c06\u5e94\u7528\u7a0b\u5e8f\u5206\u89e3\u4e3a\u591a\u4e2a\u670d\u52a1<\/strong><\/span><\/div>\n

\u8fd9\u91cc\u8fd8\u6709\u4e00\u4e9b\u5176\u4ed6\u7684\u4f53\u7cfb\u7ed3\u6784\u98ce\u683c\u53ef\u4ee5\u8fdb\u884c\u6269\u5c55\u3002\u300a\u53ef\u4f38\u7f29\u6027\u7684\u827a\u672f\u300b\u4e00\u4e66\uff0c\u63cf\u8ff0\u4e86\u4e00\u4e2a\u975e\u5e38\u6709\u7528\u7684\u4e09\u7ef4\u53ef\u4f38\u7f29\u6027\u6a21\u578b\uff1a\u4f38\u7f29\u7acb\u65b9\uff08Scale Cube\uff09\uff0c\u5982\u4e0b\u56fe\u6240\u793a\u3002
\n\"\"<\/p>\n

\u5728\u8fd9\u4e2a\u6a21\u578b\u4e2d\uff0c\u901a\u8fc7\u5728\u8d1f\u8f7d\u5747\u8861\u5668\u4e4b\u540e\uff0c\u8fd0\u884c\u591a\u4efd\u5e94\u7528\u526f\u672c\u6765\u4f38\u7f29\u5e94\u7528\u7684\u65b9\u5f0f\u53eb\u505aX\u8f74\u4f38\u7f29\u3002\u8fd9\u662f\u63d0\u9ad8\u5e94\u7528\u7a0b\u5e8f\u5bb9\u91cf\u548c\u53ef\u7528\u6027\u7684\u4e00\u4e2a\u597d\u65b9\u6cd5\u3002<\/p>\n

\u4f7f\u7528 Z \u8f74\u6536\u7f29\u65f6\uff0c\u6bcf\u4e2a\u670d\u52a1\u5668\u90fd\u8fd0\u884c\u4e00\u4efd\u76f8\u540c\u7684\u4ee3\u7801\u526f\u672c\u3002\u5728\u8fd9\u65b9\u9762\uff0c\u5b83\u7c7b\u4f3c\u4e8e X \u8f74\u7f29\u653e\u3002\u6700\u5927\u7684\u533a\u522b\u5728\u4e8e\u6bcf\u4e2a\u670d\u52a1\u5668\u53ea\u8d1f\u8d23\u6570\u636e\u7684\u4e00\u4e2a\u5b50\u96c6\u3002\u4e0eX\u8f74\u4f38\u7f29\u4e00\u6837\uff0cZ\u8f74\u6536\u7f29\u53ef\u4ee5\u63d0\u9ad8\u5e94\u7528\u7a0b\u5e8f\u7684\u5bb9\u91cf\u548c\u53ef\u7528\u6027\u3002<\/p>\n

\u4f46\u662f\uff0c\u4e24\u79cd\u65b9\u6cd5\u90fd\u65e0\u6cd5\u89e3\u51b3\u5f00\u53d1\u589e\u52a0\u548c\u5e94\u7528\u7a0b\u5e8f\u590d\u6742\u6027\u7684\u95ee\u9898\u3002<\/p>\n

\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e9b\u95ee\u9898\uff0c\u6211\u4eec\u9700\u8981\u5e94\u7528 Y \u8f74\u4f38\u7f29\u3002<\/p>\n

Z \u8f74\u4f38\u7f29\u4f1a\u62c6\u5206\u76f8\u4f3c\u7684\u670d\u52a1, Y \u8f74\u4f38\u7f29\u4f1a\u62c6\u5206\u4e0d\u540c\u7684\u670d\u52a1\u3002\u5728\u5e94\u7528\u5c42\uff0cY \u8f74\u7f29\u653e\u5c06\u4e00\u4e2a\u6574\u4f53\u5e94\u7528\u7a0b\u5e8f\u62c6\u5206\u4e3a\u4e00\u7ec4\u670d\u52a1\u3002<\/p>\n

\u6bcf\u4e2a\u670d\u52a1\u90fd\u5b9e\u73b0\u4e86\u4e00\u7cfb\u5217\u76f8\u5173\u529f\u80fd\uff0c\u5982\u8ba2\u5355\u7ba1\u7406\u3001\u5ba2\u6237\u7ba1\u7406\u7b49\u3002<\/p>\n

\u4f5c\u4e3a\u4e00\u79cd\u6a21\u5f0f\uff0c\u5fae\u670d\u52a1\u901a\u8fc7\u5c06\u529f\u80fd\u5143\u7d20\u5206\u89e3\u4e3a\u5355\u4e2a\u670d\u52a1\uff0c\u6765\u63d0\u5347 Y \u8f74\u7684\u53ef\u4f38\u7f29\u6027, \u800c\u4e0d\u662f\u901a\u8fc7\u4f20\u7edf\u7684\u590d\u5236\u3002<\/p>\n

\u7406\u60f3\u60c5\u51b5\u4e0b\uff0c\u6bcf\u4e2a\u670d\u52a1\u5e94\u8be5\u53ea\u6709\u4e00\u5c0f\u90e8\u5206\u804c\u8d23\u3002SRP\uff08\u5355\u4e00\u8d23\u4efb\u539f\u5219\uff09\u5c06\u7c7b\u7684\u8d23\u4efb\u5b9a\u4e49\u4e3a\u9700\u8981\u66f4\u6539\u7684\u539f\u56e0\uff0c\u5e76\u4e14\u7c7b\u5e94\u8be5\u53ea\u6709\u4e00\u4e2a\u539f\u56e0\u9700\u8981\u66f4\u6539\u3002\u5c06SRP\u5e94\u7528\u4e8e\u670d\u52a1\u8bbe\u8ba1\u4e5f\u662f\u6709\u610f\u4e49\u7684\u3002<\/p>\n

\u5fae\u670d\u52a1\u4f53\u7cfb\u7ed3\u6784\u2013\u901a\u4fe1\u673a\u5236<\/strong><\/span><\/div>\n

\u5728\u5fae\u670d\u52a1\u67b6\u6784\u4e2d\uff0c\u5ba2\u6237\u7aef\u4e0e\u5e94\u7528\u4e4b\u95f4\uff0c\u4ee5\u53ca\u5e94\u7528\u7ec4\u4ef6\u4e4b\u95f4\u7684\u901a\u4fe1\u6a21\u5f0f\u4e0e\u5355\u4f53\u5e94\u7528\u4e0d\u540c\u3002\u8ba9\u6211\u4eec\u5148\u6765\u770b\u4e00\u4e0b\u5e94\u7528\u5ba2\u6237\u7aef\u5982\u4f55\u4e0e\u5fae\u670d\u52a1\u4ea4\u4e92\u7684\u95ee\u9898\u3002\u5728\u6b64\u4e4b\u540e\uff0c\u6211\u4eec\u5c06\u7814\u7a76\u5e94\u7528\u7a0b\u5e8f\u4e2d\u7684\u901a\u4fe1\u673a\u5236\u3002<\/p>\n

\u76f4\u63a5\u8c03\u7528<\/strong><\/span><\/div>\n

\u5e94\u7528\u7a0b\u5e8f\u5ba2\u6237\u7aef \uff08\u5982\u672c\u673a\u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\uff09\u53ef\u4ee5\u5bf9\u5404\u4e2a\u670d\u52a1\u53d1\u51fa\u57fa\u4e8e REST \u7684 HTTP \u8bf7\u6c42\uff0c\u5982\u4e0b\u56fe\u6240\u793a\u3002
\n\"\"<\/p>\n

\u5355\u4e2a\u670d\u52a1\u7684 API<\/strong><\/span><\/div>\n

\u548c\u5ba2\u6237\u7aef\u6240\u9700\u7684\u6570\u636e\u4e4b\u95f4\u7684\u7c92\u5ea6\u53ef\u80fd\u5b58\u5728\u660e\u663e\u7684\u7c92\u5ea6\u4e0d\u5339\u914d\u3002<\/p>\n

\u4f8b\u5982\uff0c\u663e\u793a\u4e00\u4e2aWeb\u9875\u9762\u53ef\u80fd\u9700\u8981\u8c03\u7528\u5927\u91cf\u670d\u52a1\u3002\u4f8b\u5982\uff0cAmazon.com\u63cf\u8ff0\u4e86\u4e00\u4e9b\u9875\u9762\u5982\u4f55\u9700\u8981\u8c03\u7528100\u591a\u4e2a\u670d\u52a1\u3002\u5373\u4f7f\u662f\u5728\u9ad8\u901f\u4e92\u8054\u7f51\u8fde\u63a5\u4e0a\u53d1\u51fa\u5982\u6b64\u591a\u7684\u8bf7\u6c42\uff0c\u66f4\u4e0d\u7528\u8bf4\u4f4e\u5e26\u5bbd\u3001\u9ad8\u5ef6\u8fdf\u7684\u79fb\u52a8\u7f51\u7edc\u4e86\uff0c\u8fd9\u5c06\u975e\u5e38\u4f4e\u6548\uff0c\u5e76\u5bfc\u81f4\u7528\u6237\u4f53\u9a8c\u5dee\u3002<\/p>\n

API \u7f51\u5173\u6a21\u5f0f<\/strong><\/span><\/div>\n

\u8fd9\u662f\u4e00\u79cd\u66f4\u597d\u7684\u65b9\u6cd5\uff0c\u56e0\u4e3a\u5ba2\u6237\u7aef\u5c06\u5728\u7f51\u7edc\u4e0a\u5bf9\u88ab\u79f0\u4e3aAPI\u7f51\u5173\u7684\u524d\u7aef\u670d\u52a1\u5668\u53d1\u51fa\u6bcf\u4e2a\u9875\u9762\u7684\u5c11\u91cf\u8bf7\u6c42\uff0c\u53ef\u80fd\u53ea\u6709\u4e00\u4e2a\u8bf7\u6c42\u3002
\n\"\"<\/p>\n

API \u7f51\u5173\u4f4d\u4e8e\u5e94\u7528\u7a0b\u5e8f\u5ba2\u6237\u7aef\u548c\u5fae\u670d\u52a1\u4e4b\u95f4\uff0c\u5b83\u63d0\u4f9b\u4e86\u9488\u5bf9\u5ba2\u6237\u7aef\u91cf\u8eab\u5b9a\u505a\u7684 API\u3002API \u7f51\u5173\u4e3a\u79fb\u52a8\u5ba2\u6237\u7aef\u63d0\u4f9b\u7c97\u7c92\u5ea6\u7684API\uff0c\u4e3a\u4f7f\u7528\u9ad8\u6027\u80fd\u7f51\u7edc\u7684\u684c\u9762\u5ba2\u6237\u7aef\u63d0\u4f9b\u7ec6\u7c92\u5ea6\u7684 API\u3002\u5728\u6b64\u793a\u4f8b\u4e2d, \u684c\u9762\u5ba2\u6237\u7aef\u53d1\u51fa\u591a\u4e2a\u8bf7\u6c42\u4ee5\u68c0\u7d22\u6709\u5173\u4ea7\u54c1\u7684\u4fe1\u606f, \u800c\u79fb\u52a8\u5ba2\u6237\u7aef\u5219\u53d1\u51fa\u5355\u4e2a\u8bf7\u6c42\u3002<\/p>\n

API \u7f51\u5173\u901a\u8fc7\u5728\u9ad8\u6027\u80fd LAN \u4e0a\u5411\u4e00\u4e9b\u5fae\u670d\u52a1\u53d1\u51fa\u8bf7\u6c42\u6765\u5904\u7406\u4f20\u5165\u7684\u8bf7\u6c42\u3002\u5728\u6b64\u793a\u4f8b\u4e2d\uff0c\u6765\u81ea\u684c\u9762\u5ba2\u6237\u7aef\u7684\u7ec6\u7c92\u5ea6\u8bf7\u6c42\u53ea\u662f\u4ee3\u7406\u5230\u76f8\u5e94\u7684\u670d\u52a1\uff0c\u800c\u6765\u81ea\u79fb\u52a8\u5ba2\u6237\u7aef\u7684\u6bcf\u4e2a\u7c97\u7c92\u5ea6\u8bf7\u6c42\u90fd\u901a\u8fc7\u805a\u5408\u8c03\u7528\u591a\u4e2a\u670d\u52a1\u7684\u7ed3\u679c\u6765\u8fdb\u884c\u5904\u7406\u7684\u3002<\/p>\n

Advantages of Microservices<\/strong><\/span><\/div>\n

\u7ec4\u4ef6\u7684\u5206\u79bb\u4e3a\u6784\u5efa\u548c\u7ef4\u62a4\u9ad8\u5ea6\u53ef\u4f38\u7f29\u7684\u9700\u6c42\uff0c\u63d0\u4f9b\u4e86\u66f4\u6709\u6548\u7684\u73af\u5883\u3002\u72ec\u7acb\u5f00\u53d1\u3001\u72ec\u7acb\u90e8\u7f72\u7684\u8f83\u5c0f\u7684\u670d\u52a1\u66f4\u5bb9\u6613\u7ef4\u62a4\u3001\u4fee\u590d\u548c\u66f4\u65b0\uff0c\u4ece\u800c\u4e3a\u54cd\u5e94\u5f53\u4eca\u4e0d\u65ad\u53d8\u5316\u7684\u73af\u5883\u63d0\u4f9b\u66f4\u654f\u6377\u7684\u529f\u80fd\u3002<\/p>\n

\r\n    \u6a21\u5757\u5316\r\n\r\n\u5fae\u670d\u52a1\u4ee5\u670d\u52a1\u4e3a\u5355\u4f4d;\u6bcf\u4e2a\u670d\u52a1\u90fd\u6709\u81ea\u5df1\u7684\u8fb9\u754c\uff0c\u4f60\u4e0d\u80fd\u7b80\u5355\u5730\u7ed5\u8fc7\u8fb9\u754c\uff0c\u8fd9\u6837\u4f60\u5c31\u53ef\u4ee5\u72ec\u7acb\u5730\u5f00\u53d1\u3001\u90e8\u7f72\u548c\u6269\u5c55\u670d\u52a1\u3002\r\n\r\n    \u7279\u5b9a\u4e8e\u670d\u52a1\u7684\u6570\u636e\u5e93\r\n\r\n\u5fae\u670d\u52a1\u662f\u677e\u6563\u8026\u5408\u7684\uff0c\u5e76\u4e14\u62e5\u6709\u81ea\u5df1\u7684\u6570\u636e\u5e93\uff0c\u56e0\u6b64\u670d\u52a1\u4e0d\u4f1a\u901a\u8fc7\u6301\u6709\u6570\u636e\u5e93\u9501\u6765\u963b\u6b62\u5176\u4ed6\u670d\u52a1\u3002\r\n\r\n    \u6545\u969c\u9694\u79bb\r\n\r\n\u5fae\u670d\u52a1\u4f53\u7cfb\u7ed3\u6784\u5177\u6709\u66f4\u597d\u7684\u6545\u969c\u9694\u79bb;\u4e00\u4e2a\u670d\u52a1\u7684\u95ee\u9898\u4e0d\u4f1a\u5f71\u54cd\u5176\u4ed6\u670d\u52a1\uff0c\u5176\u4ed6\u670d\u52a1\u5c06\u7ee7\u7eed\u6b63\u5e38\u5de5\u4f5c\u3002\r\n\r\n    \u53ef\u4f38\u7f29\u6027\r\n\r\n\u5728\u4e2a\u4eba\u670d\u52a1\u6c34\u5e73\u4e0a\u7684\u6269\u5c55\u53d8\u5f97\u66f4\u5177\u6709\u6210\u672c\u6548\u76ca\uff0c\u5e76\u968f\u9700\u5e94\u53d8\u3002\u53ef\u4ee5\u5e76\u53d1\u5730\u5904\u7406\u5355\u4e2a\u4efb\u52a1\uff0c\u800c\u4e0d\u4f1a\u5f71\u54cd\u5e94\u7528\u7a0b\u5e8f\u7684\u5176\u4f59\u90e8\u5206\u3002\r\n\r\n\u5206\u79bb\u5e94\u7528\u7a0b\u5e8f\u7684\u7ec4\u4ef6\u4f7f\u5355\u4e2a\u9519\u8bef\u6216\u786c\u4ef6\u6545\u969c\u5bfc\u81f4\u6574\u4e2a\u7cfb\u7edf\u762b\u75ea(\u6d88\u9664\u5355\u4e2a\u6545\u969c\u70b9)\u7684\u53ef\u80fd\u6027\u964d\u4f4e\u3002\u5931\u8d25\u7684\u8fdb\u7a0b\u53ef\u4ee5\u88ab\u9694\u79bb\uff0c\u5e76\u4e14\u53ef\u4ee5\u9000\u51fa\u7aef\u70b9\u76f4\u5230\u5230\u8fbe\u3002\r\n\r\n    \u6280\u672f\/\u8bed\u8a00\u7075\u6d3b\u6027\r\n\r\n\u6bcf\u4e2a\u5355\u72ec\u7684\u670d\u52a1\u90fd\u53ef\u4ee5\u57fa\u4e8e\u5f00\u53d1\u4eba\u5458\u7684\u9996\u9009\u9879\u3001\u4efb\u52a1\u9002\u7528\u6027\u6216\u4e0e\u67d0\u4e2a\u5e93\u5339\u914d\u7684\u4e0d\u540c\u8bed\u8a00\u3002\r\n<\/pre>\n

\u9664\u6b64\u4e4b\u5916, \u4ee5\u4e0b\u51e0\u70b9\u4e5f\u662f\u5fae\u670d\u52a1\u7684\u4e3b\u8981\u4f18\u52bf\uff1a<\/p>\n

\r\n    \u5fae\u670d\u52a1\u4f53\u7cfb\u7ed3\u6784\u5141\u8bb8\u5f00\u53d1\u4eba\u5458\u81ea\u7531\u5730\u72ec\u7acb\u5f00\u53d1\u548c\u90e8\u7f72\u670d\u52a1\u3002\r\n    \u5c0f\u56e2\u961f\u53ef\u4ee5\u5f00\u53d1\u5fae\u670d\u52a1\u3002\r\n    \u4e0d\u540c\u670d\u52a1\u7684\u4ee3\u7801\u53ef\u4ee5\u7528\u4e0d\u540c\u7684\u8bed\u8a00\u7f16\u5199\u3002\r\n    \u6613\u4e8e\u96c6\u6210\u548c\u81ea\u52a8\u90e8\u7f72\uff08\u4f7f\u7528\u5f00\u6e90\u6301\u7eed\u96c6\u6210\u5de5\u5177\uff0c\u5982 Jenkins\u3001Hudson \u7b49\uff09\u3002\r\n    \u6613\u4e8e\u7406\u89e3\u548c\u4fee\u6539\u7684\u5f00\u53d1\u4eba\u5458\uff0c\u4ece\u800c\u53ef\u4ee5\u5e2e\u52a9\u4e00\u4e2a\u65b0\u7684\u56e2\u961f\u53d8\u5f97\u9ad8\u6548\u5feb\u901f\u3002\r\n    api\u53ef\u4ee5\u66f4\u6709\u6548\u5730\u8fdb\u884c\u7248\u672c\u63a7\u5236\uff0c\u56e0\u4e3a\u5355\u4e2a\u670d\u52a1\u53ef\u4ee5\u9075\u5faa\u81ea\u5df1\u7684\u65b9\u6848\u3002\u4e3b\u8981\u7248\u672c\u53ef\u4ee5\u5728\u5e94\u7528\u7a0b\u5e8f\u7ea7\u522b\u6267\u884c\uff0c\u800c\u670d\u52a1\u53ef\u4ee5\u6839\u636e\u9700\u8981\u66f4\u65b0\u3002\r\n    \u5c06\u5e94\u7528\u7a0b\u5e8f\u7684\u7ec4\u4ef6\u5206\u79bb\u5f00\u6765\uff0c\u5c31\u4e0d\u592a\u53ef\u80fd\u51fa\u73b0\u5355\u4e2a\u9519\u8bef\u6216\u786c\u4ef6\u6545\u969c\u5bfc\u81f4\u6574\u4e2a\u7cfb\u7edf\u762b\u75ea\u7684\u60c5\u51b5\u3002\u5931\u8d25\u7684\u8fdb\u7a0b\u53ef\u4ee5\u88ab\u9694\u79bb\uff0c\u5e76\u4e14\u5411\u4e0b\u7684\u7aef\u70b9\u53ef\u4ee5\u88ab\u9000\u4f11\u76f4\u5230\u5230\u8fbe\uff08\u6d88\u9664\u5355\u4e2a\u6545\u969c\u70b9\uff09\u3002\r\n    \u5f00\u53d1\u8005\u53ef\u4ee5\u4f7f\u7528\u6700\u65b0\u7684\u6280\u672f\u3002\r\n    \u56f4\u7ed5\u4e1a\u52a1\u529f\u80fd\u7684\u4ee3\u7801\u3002\r\n    \u542f\u52a8web\u5bb9\u5668\u66f4\u5feb\uff0c\u6240\u4ee5\u90e8\u7f72\u4e5f\u66f4\u5feb\u3002\r\n    \u5f53\u5e94\u7528\u7a0b\u5e8f\u7684\u67d0\u4e2a\u90e8\u5206\u9700\u8981\u66f4\u6539\u65f6\uff0c\u53ea\u80fd\u4fee\u6539\u548c\u91cd\u65b0\u90e8\u7f72\u76f8\u5173\u7684\u670d\u52a1\u2014\u2014\u4e0d\u9700\u8981\u4fee\u6539\u548c\u91cd\u65b0\u90e8\u7f72\u6574\u4e2a\u5e94\u7528\u7a0b\u5e8f\u3002\r\n    \u66f4\u597d\u7684\u6545\u969c\u9694\u79bb\uff1a\u5982\u679c\u4e00\u4e2a\u5fae\u670d\u52a1\u5931\u8d25\uff0c\u53e6\u4e00\u4e2a\u5c06\u7ee7\u7eed\u5de5\u4f5c\uff08\u5c3d\u7ba1\u4e00\u4e2a\u6574\u4f53\u5e94\u7528\u7a0b\u5e8f\u7684\u4e00\u4e2a\u95ee\u9898\u533a\u57df\u53ef\u80fd\u4f1a\u5371\u53ca\u6574\u4e2a\u7cfb\u7edf\uff09\u3002\r\n    \u6613\u4e8e\u6269\u5c55\u548c\u4e0e\u7b2c\u4e09\u65b9\u670d\u52a1\u96c6\u6210\u3002\r\n    \u6ca1\u6709\u957f\u671f\u81f4\u529b\u4e8e\u6280\u672f\u6808\u3002\r\n<\/pre>\n
Drawbacks of Microservices<\/strong><\/span><\/div>\n

\u5c06\u5e94\u7528\u7a0b\u5e8f\u5206\u79bb\u5230\u72ec\u7acb\u7684\u670d\u52a1\u610f\u5473\u7740\u73b0\u5728\u6709\u66f4\u591a\u7684\u6d3b\u52a8\u7ec4\u4ef6\u9700\u8981\u7ef4\u62a4\u3002\u8fd9\u4e5f\u5e26\u6765\u4e86\u4e00\u4e9b\u6311\u6218\u3002<\/p>\n

\r\n    \u590d\u6742\u7684\u4e1a\u52a1\u6d41\u7a0b\r\n\r\n\u867d\u7136\u5fae\u670d\u52a1\u7684\u4e00\u4e2a\u4e3b\u8981\u4f18\u70b9\u662f\u7cbe\u7b80\u7684\u7f16\u6392\u529f\u80fd\uff0c\u4f46\u66f4\u591a\u7684\u670d\u52a1\u610f\u5473\u7740\u8981\u7ef4\u62a4\u66f4\u591a\u7684\u90e8\u7f72\u6d41\u3002DevOps \u5728\u8fd9\u4e2a\u6a21\u5f0f\u4e2d\u626e\u6f14\u7740\u66f4\u4e3a\u91cd\u8981\u7684\u89d2\u8272\uff0c\u56e0\u4e3a\u6bcf\u4e2a\u670d\u52a1\u90fd\u5fc5\u987b\u5728\u5b83\u7684\u6574\u4e2a\u751f\u547d\u5468\u671f\u4e2d\u6b63\u786e\u5730\u914d\u7f6e\u3002\r\n\r\n    \u670d\u52a1\u95f4\u901a\u4fe1\r\n\r\n\u5206\u79bb\u7684\u670d\u52a1\u9700\u8981\u4e00\u79cd\u53ef\u9760\u3001\u6709\u6548\u7684\u65b9\u5f0f\u6765\u8fdb\u884c\u901a\u4fe1\uff0c\u540c\u65f6\u53c8\u4e0d\u4f1a\u51cf\u6162\u6574\u4e2a\u5e94\u7528\u7a0b\u5e8f\u7684\u901f\u5ea6\u3002\u901a\u8fc7\u7f51\u7edc\u4ea4\u4ed8\u6570\u636e\u4f1a\u5e26\u6765\u5ef6\u8fdf\u548c\u6f5c\u5728\u7684\u6545\u969c\uff0c\u8fd9\u4f1a\u5f71\u54cd\u7528\u6237\u4f53\u9a8c\u3002\u4e00\u79cd\u5e38\u89c1\u7684\u65b9\u6cd5\u662f\u5f15\u5165\u6d88\u606f\u961f\u5217\u4f5c\u4e3a\u53ef\u9760\u7684\u4f20\u8f93\u5c42\u3002\r\n\r\n    \u6d4b\u8bd5\r\n\r\n\u867d\u7136\u4fdd\u6301\u4ee3\u7801\u548c\u4f9d\u8d56\u5173\u7cfb\u7d27\u5bc6\u610f\u5473\u7740\u4e3a\u7279\u5b9a\u670d\u52a1\u63d0\u4f9b\u66f4\u7b80\u5355\u7684\u5f00\u53d1\u73af\u5883\uff0c\u4f46\u5b83\u786e\u5b9e\u5e26\u6765\u4e86\u4e0e\u6574\u4e2a\u5e94\u7528\u7a0b\u5e8f\u76f8\u5173\u7684\u6d4b\u8bd5\u6311\u6218\u3002\u670d\u52a1\u901a\u5e38\u9700\u8981\u76f8\u4e92\u901a\u4fe1\uff0c\u6216\u8005\u4f9d\u8d56\u4e8e\u6570\u636e\u6e90\u6216API\u3002\u72ec\u7acb\u5730\u6d4b\u8bd5\u4e00\u4e2a\u670d\u52a1\u5c06\u9700\u8981\u4e00\u4e2a\u5b8c\u6574\u7684\u6d4b\u8bd5\u73af\u5883\u624d\u80fd\u6709\u6548\u3002\r\n\r\n    \u5fae\u670d\u52a1\u4f53\u7cfb\u7ed3\u6784\u5e26\u6765\u4e86\u5927\u91cf\u7684\u64cd\u4f5c\u5f00\u9500\u3002\r\n    \u8981\u6c42\u6709 DevOps \u6280\u80fd\u3002\r\n    \u5206\u5e03\u5f0f\u7cfb\u7edf\u7ba1\u7406\u8d77\u6765\u5f88\u590d\u6742\u3002\r\n    \u7531\u4e8e\u5206\u5e03\u5f0f\u90e8\u7f72\uff0c\u9ed8\u8ba4\u8ddf\u8e2a\u95ee\u9898\u3002\u968f\u7740\u670d\u52a1\u6570\u91cf\u7684\u589e\u52a0\uff0c\u6574\u4e2a\u4ea7\u54c1\u7684\u7ba1\u7406\u53d8\u5f97\u8d8a\u6765\u8d8a\u590d\u6742\u3002\r\n<\/pre>\n
\u7ed3\u8bba<\/strong><\/span><\/div>\n

\u5355\u4f53\u5e94\u7528\u662f\u7528\u4e8e\u6784\u5efa\u4f01\u4e1a\u5e94\u7528\u7a0b\u5e8f\u7684\u5e38\u7528\u6a21\u5f0f\u3002\u5b83\u5728\u5c0f\u578b\u5e94\u7528\u7a0b\u5e8f\u4e2d\u5de5\u4f5c\u5f97\u76f8\u5f53\u597d\uff1a\u5f00\u53d1\u3001\u6d4b\u8bd5\u548c\u90e8\u7f72\u5c0f\u578b\u5355\u7247\u5e94\u7528\u7a0b\u5e8f\u76f8\u5bf9\u7b80\u5355\u3002<\/p>\n

\u7136\u800c\uff0c\u5bf9\u4e8e\u5927\u578b\u3001\u590d\u6742\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u5355\u5757\u4f53\u7cfb\u7ed3\u6784\u6210\u4e3a\u5f00\u53d1\u548c\u90e8\u7f72\u7684\u969c\u788d\u3002\u6301\u7eed\u7684\u4ea4\u4ed8\u662f\u5f88\u96be\u505a\u5230\u7684\uff0c\u5e76\u4e14\u60a8\u5e38\u5e38\u88ab\u6c38\u4e45\u5730\u9501\u5b9a\u5728\u4f60\u6700\u521d\u7684\u6280\u672f\u9009\u62e9\u4e0a\u3002\u5bf9\u4e8e\u5927\u578b\u5e94\u7528\u7a0b\u5e8f\uff0c\u4f7f\u7528\u5c06\u5e94\u7528\u7a0b\u5e8f\u5206\u89e3\u4e3as\u7ec4\u670d\u52a1\u7684\u5fae\u670d\u52a1\u4f53\u7cfb\u7ed3\u6784\u66f4\u6709\u610f\u4e49\u3002<\/p>\n

\u5fae\u670d\u52a1\u4f53\u7cfb\u7ed3\u6784\u6709\u8bb8\u591a\u4f18\u70b9\u3002\u4f8b\u5982\uff0c\u5355\u4e2a\u670d\u52a1\u66f4\u5bb9\u6613\u7406\u89e3\uff0c\u53ef\u4ee5\u72ec\u7acb\u4e8e\u5176\u4ed6\u670d\u52a1\u8fdb\u884c\u5f00\u53d1\u548c\u90e8\u7f72\u3002\u4f7f\u7528\u65b0\u8bed\u8a00\u548c\u6846\u67b6\u4e5f\u5bb9\u6613\u5f97\u591a\uff0c\u56e0\u4e3a\u4f60\u53ef\u4ee5\u4e00\u6b21\u5c1d\u8bd5\u4e00\u4e2a\u670d\u52a1\u7684\u65b0\u6280\u672f\u3002<\/p>\n

\u5fae\u670d\u52a1\u4f53\u7cfb\u7ed3\u6784\u4e5f\u6709\u4e00\u4e9b\u660e\u663e\u7684\u7f3a\u9677\u3002\u7279\u522b\u662f\uff0c\u5e94\u7528\u7a0b\u5e8f\u8981\u590d\u6742\u5f97\u591a\uff0c\u5e76\u4e14\u6709\u66f4\u591a\u7684\u6d3b\u52a8\u90e8\u4ef6\u3002\u4f60\u9700\u8981\u9ad8\u5ea6\u81ea\u52a8\u5316\uff0c\u4f8b\u5982PaaS\uff0c\u624d\u80fd\u6709\u6548\u5730\u4f7f\u7528\u5fae\u670d\u52a1\u3002<\/p>\n

\u5728\u5f00\u53d1\u5fae\u670d\u52a1\u65f6\uff0c\u8fd8\u9700\u8981\u5904\u7406\u4e00\u4e9b\u590d\u6742\u7684\u5206\u5e03\u5f0f\u6570\u636e\u7ba1\u7406\u95ee\u9898\u3002\u5c3d\u7ba1\u5b58\u5728\u8fd9\u4e9b\u7f3a\u70b9\uff0c\u4f46\u5bf9\u4e8e\u5feb\u901f\u53d1\u5c55\u7684\u5927\u578b\u590d\u6742\u5e94\u7528\u7a0b\u5e8f\uff08\u5c24\u5176\u662fSaaS\u98ce\u683c\u7684\u5e94\u7528\u7a0b\u5e8f\uff09\u6765\u8bf4\uff0c\u5fae\u670d\u52a1\u4f53\u7cfb\u7ed3\u6784\u662f\u6709\u610f\u4e49\u7684\u3002<\/p>\n

\u6709\u8bb8\u591a\u7b56\u7565\u53ef\u4ee5\u6e10\u8fdb\u5730\u5c06\u73b0\u6709\u7684\u5355\u4f53\u5e94\u7528\u7a0b\u5e8f\u6f14\u5316\u4e3a\u5fae\u670d\u52a1\u4f53\u7cfb\u7ed3\u6784\u3002\u5f00\u53d1\u4eba\u5458\u5e94\u8be5\u5c06\u65b0\u529f\u80fd\u4f5c\u4e3a\u72ec\u7acb\u7684\u670d\u52a1\u5b9e\u73b0\uff0c\u5e76\u7f16\u5199\u7c98\u5408\u4ee3\u7801\u5c06\u670d\u52a1\u4e0e\u5355\u4f53\u96c6\u6210\u3002<\/p>\n

\u8fed\u4ee3\u5730\u8bc6\u522b\u7ec4\u4ef6\u4ee5\u4ece\u6574\u4f53\u4e2d\u63d0\u53d6\u5e76\u8f6c\u6362\u4e3a\u670d\u52a1\u4e5f\u662f\u6709\u610f\u4e49\u7684\u3002\u867d\u7136\u8fd9\u79cd\u6539\u8fdb\u5e76\u4e0d\u5bb9\u6613\uff0c\u4f46\u5b83\u6bd4\u5f00\u53d1\u548c\u7ef4\u62a4\u4e00\u4e2a\u7b28\u91cd\u7684\u5355\u4f53\u5e94\u7528\u7a0b\u5e8f\u8981\u597d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u5fae\u670d\u52a1\u67b6\u6784\u662f\u4e00\u79cd\u5206\u5e03\u5f0f\u7cfb\u7edf\u7684\u65b9\u6cd5\uff0c\u5b83\u53ef\u4ee5\u4fc3\u8fdb\u4f7f\u7528\u5177\u6709\u81ea\u8eab\u751f\u547d\u5468\u671f\u7684\u7ec6\u7c92\u5ea6\u670d\u52a1\u3002\u7531\u4e8e\u5fae\u670d\u52a1\u4e3b\u8981\u662f\u56f4\u7ed5\u5355\u4e2a\u4e1a\u52a1\u6d41\u7a0b […]<\/p>\n","protected":false},"author":1479,"featured_media":144798,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-144792","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/144792","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1479"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=144792"}],"version-history":[{"count":6,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/144792\/revisions"}],"predecessor-version":[{"id":144988,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/144792\/revisions\/144988"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/144798"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=144792"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=144792"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=144792"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}