{"id":198666,"date":"2020-08-31T08:12:27","date_gmt":"2020-08-31T00:12:27","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=198666"},"modified":"2020-08-19T17:13:05","modified_gmt":"2020-08-19T09:13:05","slug":"microservice-architecture-new","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/microservice-architecture-new.html","title":{"rendered":"\u5fae\u670d\u52a1\u67b6\u6784\u4e00\u76f4\u706b\uff0c\u670d\u52a1\u5316\u6709\u4f55\u7528"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | \u5fae\u670d\u52a1\u67b6\u6784\u662f\u4e00\u9879\u5728\u4e91\u4e2d\u90e8\u7f72\u5e94\u7528\u548c\u670d\u52a1\u7684\u65b0\u6280\u672f\u3002\u5927\u90e8\u5206\u56f4\u7ed5\u5fae\u670d\u52a1\u7684\u4e89\u8bba\u90fd\u96c6\u4e2d\u5728\u5bb9\u5668\u6216\u5176\u4ed6\u6280\u672f\u662f\u5426\u80fd\u5f88\u597d\u7684\u5b9e\u65bd\u5fae\u670d\u52a1\uff0c\u800c\u7ea2\u5e3d\u8bf4API\u5e94\u8be5\u662f\u91cd\u70b9\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n \u5bf9\u5fae\u670d\u52a1\u67b6\u6784\u7684\u7406\u89e3<\/strong><\/div>\n \u5fae\u670d\u52a1\u67b6\u6784<\/strong><\/span><\/div>\n <\/p>\n \u5fae\u670d\u52a1\u67b6\u6784\uff0c\u4e3b\u8981\u662f\u591a\u4e86\u4e2a \u201c\u5fae\u201d\u3002\u4e9a\u9a6c\u900a\u6709\u4e2a\u7c97\u7c97\u7684\u5b9a\u4e49\uff1a\u4e00\u4e2a\u5fae\u670d\u52a1\u5e94\u7528\u5de5\u7a0b\u7684\u6240\u6709\u5f00\u53d1\u3001\u6d4b\u8bd5\u3001\u8fd0\u7ef4\u52a0\u8d77\u6765\u5927\u7ea6 6 \u5230 8 \u4e2a\u4eba\uff0c\u53ea\u9700\u8981\u4e24\u4e2a\u62ab\u8428\u5c31\u53ef\u4ee5\u805a\u9910\u4e86\u3002<\/p>\n \u53cd\u4f8b\uff1a\u4e0d\u662f\u4e00\u4e2a Service \u7c7b\u7ec4\u6210\u7684\u5e94\u7528\u5de5\u7a0b\uff0c\u53d1\u5e03\u6210\u670d\u52a1\u5c31\u662f\u5fae\u670d\u52a1\u3002\u8fd9\u6837\u5206\u7684\u592a\u5c0f\uff0c\u7406\u89e3\u5fae\u670d\u52a1\u5c31\u5f88\u7247\u9762\u3002\u676d\u5dde\u67d0\u91d1\u878d\u5927\u5382\uff0c\u66fe\u7ecf\u5206\u7684\u5f88\u7ec6\uff0c\u9020\u6210\u4e86\u8fd0\u7ef4\u6d4b\u8bd5\u6210\u672c\u5de8\u5927\u3002\u5f00\u59cb\u5206\u4e86\u5408\uff0c\u6298\u817e\u2026<\/p>\n \u4e3a\u5565\u9700\u8981\u5fae\u670d\u52a1\uff1f<\/strong><\/span><\/div>\n \u7531 SOA \u67b6\u6784 -> \u5fae\u670d\u52a1\u67b6\u6784\u7684\u8f6c\u53d8\uff0c\u5f97\u7406\u89e3\u4e3a\u4ec0\u4e48\u5fae\u670d\u52a1\u67b6\u6784\u88ab\u5e7f\u6cdb\u63d0\u5230\u5e76\u5b9e\u8df5\u3002\u5b83\u89e3\u51b3\u4e86\u4ec0\u4e48\u95ee\u9898\uff0c\u5e26\u6765\u4e86\u4ec0\u4e48\u4ef7\u503c\uff1f<\/p>\n \u4f20\u7edf\u4f01\u4e1a\u6216\u8005\u5f88\u591a\u4f01\u4e1a\u7684\u8f6f\u4ef6\uff0c\u5927\u591a\u4e0d\u6b62\u4e00\u5957\u7cfb\u7edf\uff0c\u90fd\u662f\u5404\u4e2a\u72ec\u7acb\u5927\u7cfb\u7edf\u7684\u5806\u780c\u3002\u6574\u4f53\u5b58\u5728\u7684\u95ee\u9898\u662f\uff1a<\/p>\n \u6269\u5c55\u6027\u5dee<\/p>\n \u53ef\u9760\u6027\u4e0d\u9ad8<\/p>\n \u7ef4\u62a4\u6210\u672c\u8fd8\u5f88\u5927<\/p>\n \u91cd\u590d\u8f6e\u5b50\u5f88\u591a<\/p>\n <\/p>\n \u90a3\u4e48\u8fd9\u4e9b\u95ee\u9898\uff0c\u53ef\u4ee5\u60f3\u5230\u7684\u89e3\u51b3\u65b9\u6848\u5c31\u662f\uff1a<\/p>\n \u7ec4\u4ef6\u5316<\/p>\n \u670d\u52a1\u5316<\/p>\n \u5fae\u670d\u52a1\u67b6\u6784\uff0c\u5c06\u5404\u4e2a\u7ec4\u4ef6\u6216\u8005\u6a21\u5757\u5206\u6563\u5230\u5404\u4e2a\u670d\u52a1\u4e2d\uff0c\u5bf9\u6574\u4e2a\u7cfb\u7edf\u5b9e\u73b0\u89e3\u8026\u3002\u90a3\u5fae\u670d\u52a1\u67b6\u6784\u5f3a\u8c03\u7684\u91cd\u4e2d\u4e4b\u91cd\u5c31\u662f\u4e1a\u52a1\u7cfb\u7edf\u9700\u8981\u5b8c\u5584\u7684\u7ec4\u4ef6\u5316\u548c\u670d\u52a1\u5316\u3002\u4ec0\u4e48\u662f\u7ec4\u4ef6\u5316\uff1f<\/p>\n \u7ec4\u4ef6\u5316\uff0c\u5373\u5c06\u4e00\u4e2a\u5927\u7cfb\u7edf\uff0c\u6309\u7167\u4e00\u5b9a\u7684\u4e1a\u52a1\u6216\u8005\u6280\u672f\u7ef4\u5ea6\u5173\u6ce8\u5f62\u5f0f\uff0c\u62c6\u5206\u6210\u72ec\u7acb\u7684\u7ec4\u4ef6\u3002\u76ee\u7684\u662f\u4e3a\u4e86\u5206\u800c\u6cbb\u4e4b\uff0c\u4e3a\u4e86\u53ef\u91cd\u7528\uff0c\u4e3a\u4e86\u51cf\u5c11\u8026\u5408\u5ea6\u3002\u6bd4\u5982\u6309\u7167\u6280\u672f\u7ef4\u5ea6\uff1a\u641c\u7d22\u7ec4\u4ef6\u3001\u7f13\u5b58\u7ec4\u4ef6\uff1b\u6309\u7167\u4e1a\u52a1\u7ef4\u5ea6\uff1a\u7528\u6237\u4e2d\u5fc3\u3001\u652f\u4ed8\u4e2d\u5fc3\u7b49<\/p>\n <\/p>\n \u7ec4\u4ef6\u5316\u662f\u4e0d\u662f\u6709\u70b9\u4e2d\u53f0\u7684\u610f\u601d\uff1f\u963f\u91cc\u5df4\u5df4\u63d0\u51fa \u5927\u4e2d\u53f0\uff0c\u5c0f\u524d\u53f0\uff1b\u5c31\u662f\u628a\u7ec4\u4ef6\u5316\u3001\u63d2\u4ef6\u5316\u3001\u670d\u52a1\u5316\u89e3\u51b3\u65b9\u6848\u5230\u6781\u81f4\u3002\u901a\u8fc7\u4ea7\u54c1\u7ebf\u516c\u5171\u4e1a\u52a1\u6216\u8005\u6280\u672f\u4e0b\u6c89\uff0c\u5f62\u6210\u5404\u79cd\u6280\u672f\u6216\u8005\u4e1a\u52a1\u4e2d\u53f0<\/p>\n <\/p>\n \u670d\u52a1\u5316\u524d\u7684\u95ee\u9898<\/strong><\/div>\n \u6ca1\u6709\u670d\u52a1\u5316\uff0c\u4e0d\u4ee3\u8868\u4e0d\u662f\u5206\u5e03\u5f0f\u6216\u96c6\u7fa4<\/strong><\/span><\/div>\n \u5206\u5e03\u5f0f\uff0c\u5c31\u662f\u591a\u4e2a\u5b9e\u4f8b\u63d0\u4f9b\u76f8\u540c\u7684\u670d\u52a1\u3002\u6bd4\u5982\u591a\u4e2a\u5730\u65b9\u52a8\u8f66\u7ad9\u91cc\u9762\uff0c\u591a\u4e2a\u673a\u5668\u63d0\u4f9b\u53d6\u7968\u670d\u52a1\u3002\u591a\u4e2a\u5730\u65b9\uff0c\u5317\u4eac\u4e0a\u6d77\u7b49\uff0c\u5c31\u662f\u591a\u673a\u623f\uff0c\u591a\u4e2a\u53d6\u7968\u670d\u52a1\u4e00\u8d77\u7ec4\u6210\u4e86\u96c6\u7fa4\uff0c\u5f62\u6210\u5206\u5e03\u5f0f\u670d\u52a1\u3002\u90a3\u5565\u662f\u670d\u52a1\u5316\uff1f<\/p>\n \u670d\u52a1\u5316\uff0c\u5f3a\u8c03 \u201c\u5316\u201d\uff01\u6838\u5fc3\u5c31\u662f\u4e0d\u540c\u670d\u52a1\u4e4b\u95f4\u7684\u901a\u4fe1\u3002\u662f\u4e00\u79cd\u4ee5\u670d\u52a1\u4e3a\u4e2d\u5fc3\u7684\u89e3\u51b3\u65b9\u6848\uff1a<\/p>\n \u670d\u52a1\u6ce8\u518c<\/p>\n \u670d\u52a1\u53d1\u5e03<\/p>\n \u670d\u52a1\u8c03\u7528<\/p>\n \u670d\u52a1\u76d1\u63a7<\/p>\n \u670d\u52a1\u8d1f\u8f7d\u5747\u8861<\/p>\n <\/p>\n \u6ca1\u6709\u670d\u52a1\u5316\u7684\u67b6\u6784\u95ee\u9898<\/strong><\/span><\/div>\n \u6ca1\u6709\u670d\u52a1\u5316\u524d\uff0c\u4e3e\u4e2a\u4f8b\u5b50\uff0c\u4f1a\u66f4\u5f62\u8c61\uff1a<\/p>\n \u5047\u8bbe\u6709\u4e2a\u53d6\u7968\u670d\u52a1\u3001\u4e70\u7968\u670d\u52a1\u3001\u6539\u5ea7\u670d\u52a1\u90fd\u9700\u8981\u9a8c\u8bc1\u4e0b\u7528\u6237\u8eab\u4efd\u771f\u5b9e\u6027\uff0c\u90a3\u4e48\u4f1a\u5b58\u5728\u4e0b\u9762\u7684\u95ee\u9898\uff1a<\/p>\n \u53d6\u7968\u670d\u52a1 -> \u8c03\u7528\u7528\u6237DB\u4ee3\u7801 -> \u7528\u6237DB<\/p>\n \u4e70\u7968\u670d\u52a1 -> \u8c03\u7528\u7528\u6237DB\u4ee3\u7801 -> \u7528\u6237DB<\/p>\n \u6539\u5ea7\u670d\u52a1 -> \u8c03\u7528\u7528\u6237DB\u4ee3\u7801 -> \u7528\u6237DB<\/p>\n <\/p>\n \u660e\u663e\u7684\u95ee\u9898\u662f\uff1a<\/p>\n \u4ee3\u7801\u91cd\u590d\uff1a\u4e0d\u540c\u4e1a\u52a1\u76f8\u540c\u8bbf\u95ee DB \u7684 userDAO \u4ee3\u7801\u903b\u8f91\u3002\u800c\u4e14\u6bcf\u4e2a\u670d\u52a1\u8fd9\u5757\u4ee3\u7801\u662f\u4e0d\u540c\u4eba\u7ef4\u62a4\u7684\u3002<\/p>\n \u53ef\u7ef4\u62a4\u6027\u4f4e\uff1a\u4e0d\u540c\u4eba\u7ef4\u62a4\uff1b\u4e0d\u540c\u5730\u65b9\u7ef4\u62a4\uff1b\u6bcf\u6b21 DB \u5b57\u6bb5\u6539\u53d8\u6216\u8005\u8fc1\u5e93\uff0c\u5168\u90e8\u4e1a\u52a1\u90fd\u6709\u4fee\u6539<\/p>\n DB \u8bbf\u95ee\u8026\u5408<\/p>\n \u81ea\u7136\u4e5f\u6709\u89e3\u51b3\u65b9\u6848\u662f\uff1alib\u3002\u7ef4\u62a4\u4e00\u4e2a user-DAO-lib 1.0.0 release \u5305\uff0c\u7ed9\u5404\u4e2a\u4e1a\u52a1\u65b9\u3002<\/p>\n \u89e3\u51b3\u4e86\u95ee\u9898\uff0c\u5f15\u5165\u4e86\u65b0\u7684\u95ee\u9898\uff0clib \u5347\u7ea7\u662f\u5de8\u5927\u800c\u53c8\u6f2b\u957f\u7684\u95ee\u9898\u3002\u6bd4\u5982\u5c0f\u674e\u662f\u7ef4\u62a4 user-DAO-lib \u7684\u4eba\uff0c\u6709\u4e00\u6b21\u5199\u4e86\u9690\u853d\u7684 bug \u3002user-lib \u5347\u7ea7\u5230\u4e86 1.0.1 release\uff0c\u82b1\u4e86 1 \u4e2a\u6708\u5de6\u53f3\u65f6\u95f4\uff0c\u63a8\u51e0\u5341\u4e2a\u4e1a\u52a1\u65b9\u5347\u7ea7\u5b8c\u6bd5\u3002\u7136\u540e\u8fd9\u4e2a bug \u8fd0\u884c\u4e86\u51e0\u5929\u51fa\u73b0\u4e86\uff0c\u8003\u8651\u5347\u7ea7fix\u6216\u8005\u56de\u6eda\u90fd\u662f\u5de8\u5927\u7684\u6210\u672c<\/p>\n \u57fa\u4e8e\u670d\u52a1\u5316\uff0c\u5c31\u53ef\u4ee5\u5b8c\u7f8e\u89e3\u51b3\u95ee\u9898\u3002<\/p>\n \u670d\u52a1\u5316\u540e\u7684\u597d\u5904<\/strong><\/div>\n <\/p>\n \u5982\u56fe Post \u6587\u7ae0\u670d\u52a1\u8c03\u7528 Video \u89c6\u9891\u670d\u52a1\uff0c\u9700\u8981\u901a\u8fc7\u6700\u4e0a\u5c42\u7684 Service \u4e4b\u95f4\u76f8\u4e92\u8c03\u7528\u3002\u670d\u52a1\u5316\u660e\u663e\u6539\u53d8\uff1a<\/p>\n DB \u9694\u79bb\uff1a\u8fd9\u6837\u5e95\u5c42\u7ec6\u8282\u8bbe\u8ba1\u53ef\u4ee5\u5c4f\u853d\uff0c\u540e\u7eed\u52a0\u4e0a\u5176\u4ed6\u5b58\u50a8 Cache \u7b49\u5bf9\u4e1a\u52a1\u8c03\u7528\u65b9\u65e0\u611f\u77e5\u3002<\/p>\n \u901a\u8fc7 Service \u4e4b\u95f4\u901a\u4fe1\uff1a\u5177\u4f53\u534f\u8bae\u53ef\u4ee5 RPC \/ HTTP \u7b49<\/p>\n \u670d\u52a1\u5316\u540e\u7684\u597d\u5904\uff1a<\/p>\n \u8c03\u7528\u7b80\u5355\uff1a\u4e0d\u7528\u5199\u76f8\u540c\u7684\u8bbf\u95ee\u7528\u6237\u670d\u52a1\u4ee3\u7801\uff0c\u8c03\u7528\u4e00\u4e2a\u670d\u52a1\u5373\u53ef<\/p>\n \u4ee3\u7801\u590d\u7528\uff1a\u8ddf lib \u5f62\u5f0f\u7684\u4ee3\u7801\u590d\u7528\u6709\u6240\u533a\u522b\u5728\u4e8e\uff0c\u670d\u52a1\u5316\u901a\u8fc7\u901a\u4fe1\u7684\u65b9\u5f0f\u89e3\u51b3<\/p>\n \u4e1a\u52a1\u9694\u79bb<\/p>\n \u6570\u636e\u5e93\u89e3\u8026<\/p>\n \u4e0d\u53ef\u5426\u8ba4\u7684\u5fae\u670d\u52a1\u67b6\u6784\u6216\u8005\u670d\u52a1\u5316\u5e26\u6765\u65b0\u7684\u95ee\u9898<\/strong><\/div>\n 1\u3001\u672c\u8eab\u4e0d\u5927\u7684\u7cfb\u7edf\uff0c\u4e1a\u52a1\u4e0d\u590d\u6742\u7684\u7cfb\u7edf\u4e5f\u4e0d\u9700\u8981\u5fae\u670d\u52a1\u67b6\u6784\u3002\u5fae\u670d\u52a1\u67b6\u6784\u4f1a\u5e26\u6765\u4e00\u5b9a\u7684\u590d\u6742\u6027\uff0c\u662f\u4e00\u5957\u5b8c\u6574\u7684\u670d\u52a1\u6cbb\u7406\u65b9\u6848<\/p>\n 2\u3001\u591a\u4e2a\u6a21\u5757\u6570\u636e\u5e93\uff0c\u5206\u5e03\u5f0f\u4e8b\u52a1\u662f\u4e00\u4e2a\u6311\u6218<\/p>\n 3\u3001\u5f00\u53d1\u8fc7\u7a0b\uff0c\u589e\u52a0\u4e86\u6d4b\u8bd5\u7b49\u4e00\u5b9a\u7684\u590d\u6742\u6027<\/p>\n \u6709\u5229\u5fc5\u6709\u5f0a\uff0c\u5177\u4f53\u573a\u666f\u5177\u4f53\u9009\u62e9<\/p>\n \u5c0f\u7ed3<\/strong><\/div>\n \u672c\u5c0f\u7ed3\uff0c\u4e0d\u662f\u8bb2how\uff0c\u8bb2\u7684\u662f why\u3002\u53ea\u6709\u61c2 why \uff0c\u624d\u80fd\u66f4\u597d\u5730 do\u3002\u4ece\u4e3a\u5565\u670d\u52a1\u5316\uff1f\u5230\u4e3a\u5565\u5fae\u670d\u52a1\u67b6\u6784\u8fd9\u4e48\u6d41\u884c\uff1a<\/p>\n \u5fae\u670d\u52a1\u6269\u5c55\u6027\u9ad8<\/p>\n \u5fae\u670d\u52a1\u53ef\u9760\u6027\u9ad8<\/p>\n \u5fae\u670d\u52a1 \u7ef4\u62a4\u6210\u672c\u5c0f<\/p>\n \u5fae\u670d\u52a1\u51e0\u4e4e\u6ca1\u6709\u91cd\u590d\u8f6e\u5b50<\/p>\n \u5fae\u670d\u52a1\u76f4\u63a5\u8c03\u7528\u8c03\u7528\u7b80\u5355<\/p>\n \u5fae\u670d\u52a1\u4e1a\u52a1\u9694\u79bb<\/p>\n \u5fae\u670d\u52a1\u6570\u636e\u5e93\u89e3\u8026<\/p>\n","protected":false},"excerpt":{"rendered":" \u5fae\u670d\u52a1\u67b6\u6784\uff0c\u4e3b\u8981\u662f\u591a\u4e86\u4e2a \u201c\u5fae\u201d\u3002\u4e9a\u9a6c\u900a\u6709\u4e2a\u7c97\u7c97\u7684\u5b9a\u4e49\uff1a\u4e00\u4e2a\u5fae\u670d\u52a1\u5e94\u7528\u5de5\u7a0b\u7684\u6240\u6709\u5f00\u53d1\u3001\u6d4b\u8bd5\u3001\u8fd0\u7ef4\u52a0\u8d77\u6765\u5927\u7ea6 6 […]<\/p>\n","protected":false},"author":668,"featured_media":198711,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-198666","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\/198666","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\/668"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=198666"}],"version-history":[{"count":2,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/198666\/revisions"}],"predecessor-version":[{"id":198712,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/198666\/revisions\/198712"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/198711"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=198666"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=198666"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=198666"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}} |