{"id":150894,"date":"2019-07-18T09:20:47","date_gmt":"2019-07-18T01:20:47","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=150894"},"modified":"2019-07-08T09:21:04","modified_gmt":"2019-07-08T01:21:04","slug":"evolution-of-data-architecture","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/evolution-of-data-architecture.html","title":{"rendered":"\u6570\u636e\u67b6\u6784\u7684\u6f14\u53d8"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | \u5927\u6570\u636e\u6280\u672f\u7684\u5174\u8d77\uff0c\u8ba9\u4f01\u4e1a\u80fd\u591f\u66f4\u52a0\u7075\u6d3b\u9ad8\u6548\u5730\u4f7f\u7528\u81ea\u5df1\u7684\u4e1a\u52a1\u6570\u636e\uff0c\u4ece\u6570\u636e\u4e2d\u63d0\u53d6\u51fa\u66f4\u591a\u91cd\u8981\u7684\u4ef7\u503c\uff0c\u5e76\u5c06\u6570\u636e\u5206\u6790\u548c\u6316\u6398\u51fa\u6765\u7684\u7ed3\u679c\u5e94\u7528\u5728\u4f01\u4e1a\u7684\u51b3\u7b56\u3001\u8425\u9500\u3001\u7ba1\u7406\u7b49\u5e94\u7528\u9886\u57df\u3002\u4f46\u4e0d\u53ef\u907f\u514d\u7684\u662f\uff0c\u968f\u7740\u8d8a\u6765\u8d8a\u591a\u65b0\u6280\u672f\u7684\u5f15\u5165\u4e0e\u4f7f\u7528\uff0c\u4f01\u4e1a\u5185\u90e8\u4e00\u5957\u5927\u6570\u636e\u7ba1\u7406\u5e73\u53f0\u53ef\u80fd\u4f1a\u501f\u52a9\u4f17\u591a\u5f00\u6e90\u6280\u672f\u7ec4\u4ef6\u5b9e\u73b0\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n 01 \u4f20\u7edf\u6570\u636e\u57fa\u7840\u67b6\u6784<\/strong><\/div>\n \u5982\u56fe1-1\u6240\u793a\uff0c\u4f20\u7edf\u5355\u4f53\u6570\u636e\u67b6\u6784(Monolithic Architecture)\u6700\u5927\u7684\u7279\u70b9\u4fbf\u662f\u96c6\u4e2d\u5f0f\u6570\u636e\u5b58\u50a8\uff0c\u4f01\u4e1a\u5185\u90e8\u53ef\u80fd\u6709\u8bf8\u591a\u7684\u7cfb\u7edf\uff0c\u4f8b\u5982Web\u4e1a\u52a1\u7cfb\u7edf\u3001\u8ba2\u5355\u7cfb\u7edf\u3001CRM\u7cfb\u7edf\u3001ERP\u7cfb\u7edf\u3001\u76d1\u63a7\u7cfb\u7edf\u7b49\uff0c\u8fd9\u4e9b\u7cfb\u7edf\u7684\u4e8b\u52a1\u6027\u6570\u636e\u4e3b\u8981\u57fa\u4e8e\u96c6\u4e2d\u5f0f\u7684\u5173\u7cfb\u6027\u6570\u636e\u5e93(DBMS)\u5b9e\u73b0\u5b58\u50a8\uff0c\u5927\u591a\u6570\u5c06\u67b6\u6784\u5206\u4e3a\u8ba1\u7b97\u5c42\u548c\u5b58\u50a8\u5c42\u3002 02 \u5927\u6570\u636e\u6570\u636e\u67b6\u6784<\/strong><\/div>\n \u8d77\u521d\u6570\u636e\u4ed3\u5e93\u4e3b\u8981\u8fd8\u662f\u6784\u5efa\u5728\u5173\u7cfb\u578b\u6570\u636e\u5e93\u4e4b\u4e0a\uff0c\u4f8b\u5982Oracle\u3001Mysql\u7b49\u6570\u636e\u5e93\uff0c\u4f46\u662f\u968f\u7740\u4f01\u4e1a\u6570\u636e\u91cf\u7684\u589e\u957f\uff0c\u5173\u7cfb\u578b\u6570\u636e\u5e93\u5df2\u7ecf\u65e0\u6cd5\u652f\u6491\u5927\u89c4\u6a21\u6570\u636e\u96c6\u7684\u5b58\u50a8\u548c\u5206\u6790\uff0c\u56e0\u6b64\u8d8a\u6765\u8d8a\u591a\u7684\u4f01\u4e1a\u5f00\u59cb\u9009\u62e9\u57fa\u4e8eHadoop\u6784\u5efa\u4f01\u4e1a\u7ea7\u5927\u6570\u636e\u5e73\u53f0\u3002 03 \u6709\u72b6\u6001\u6d41\u8ba1\u7b97\u67b6\u6784<\/strong><\/div>\n \u6570\u636e\u4ea7\u751f\u7684\u672c\u8d28\uff0c\u5176\u5b9e\u662f\u4e00\u6761\u6761\u771f\u5b9e\u5b58\u5728\u7684\u4e8b\u4ef6\uff0c\u524d\u9762\u63d0\u5230\u7684\u4e0d\u540c\u7684\u67b6\u6784\u5176\u5b9e\u90fd\u662f\u5728\u4e00\u5b9a\u7a0b\u5ea6\u8fdd\u80cc\u4e86\u8fd9\u79cd\u672c\u8d28\uff0c\u9700\u8981\u901a\u8fc7\u5728\u4e00\u5b9a\u65f6\u5ef6\u7684\u60c5\u51b5\u4e0b\u5bf9\u4e1a\u52a1\u6570\u636e\u8fdb\u884c\u5904\u7406\uff0c\u7136\u540e\u5f97\u5230\u57fa\u4e8e\u4e1a\u52a1\u6570\u636e\u7edf\u8ba1\u7684\u51c6\u786e\u7ed3\u679c\u3002 04 \u4e3a\u4ec0\u4e48\u4f1a\u662fFlink<\/strong><\/div>\n \u53ef\u4ee5\u770b\u51fa\u6709\u72b6\u6001\u6d41\u8ba1\u7b97\u5c06\u4f1a\u9010\u6b65\u6210\u4e3a\u4f01\u4e1a\u4f5c\u4e3a\u6784\u5efa\u6570\u636e\u5e73\u53f0\u7684\u67b6\u6784\u6a21\u5f0f\uff0c\u800c\u76ee\u524d\u4ece\u793e\u533a\u6765\u770b\uff0c\u80fd\u591f\u6ee1\u8db3\u7684\u53ea\u6709Apache Flink\u3002Flink\u901a\u8fc7\u5b9e\u73b0Google Dataflow\u6d41\u5f0f\u8ba1\u7b97\u6a21\u578b\u5b9e\u73b0\u4e86\u9ad8\u541e\u5410\u3001\u4f4e\u5ef6\u8fdf\u3001\u9ad8\u6027\u80fd\u517c\u5177\u5b9e\u65f6\u6d41\u5f0f\u8ba1\u7b97\u6846\u67b6\u3002 1. \u540c\u65f6\u652f\u6301\u9ad8\u541e\u5410\u3001\u4f4e\u5ef6\u8fdf\u3001\u9ad8\u6027\u80fd<\/strong><\/span><\/div>\n Flink\u662f\u76ee\u524d\u5f00\u6e90\u793e\u533a\u4e2d\u552f\u4e00\u4e00\u5957\u96c6\u9ad8\u541e\u5410\u3001\u4f4e\u5ef6\u8fdf\u3001\u9ad8\u6027\u80fd\u4e09\u8005\u4e8e\u4e00\u8eab\u7684\u5206\u5e03\u5f0f\u6d41\u5f0f\u6570\u636e\u5904\u7406\u6846\u67b6\u3002\u50cfApache Spark\u4e5f\u53ea\u80fd\u517c\u987e\u9ad8\u541e\u5410\u548c\u9ad8\u6027\u80fd\u7279\u6027\uff0c\u4e3b\u8981\u56e0\u4e3a\u5728Spark Streaming\u6d41\u5f0f\u8ba1\u7b97\u4e2d\u65e0\u6cd5\u505a\u5230\u4f4e\u5ef6\u8fdf\u4fdd\u969c;\u800c\u6d41\u5f0f\u8ba1\u7b97\u6846\u67b6Apache Storm\u53ea\u80fd\u652f\u6301\u4f4e\u5ef6\u8fdf\u548c\u9ad8\u6027\u80fd\u7279\u6027\uff0c\u4f46\u662f\u65e0\u6cd5\u6ee1\u8db3\u9ad8\u541e\u5410\u7684\u8981\u6c42\u3002\u800c\u6ee1\u8db3\u9ad8\u541e\u5410\u3001\u4f4e\u5ef6\u8fdf\u3001\u9ad8\u6027\u80fd\u8fd9\u4e09\u4e2a\u76ee\u6807\u5bf9\u5206\u5e03\u5f0f\u6d41\u5f0f\u8ba1\u7b97\u6846\u67b6\u6765\u8bf4\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002<\/p>\n 2. \u652f\u6301\u4e8b\u4ef6\u65f6\u95f4(Event Time)\u6982\u5ff5<\/strong><\/span><\/div>\n \u5728\u6d41\u5f0f\u8ba1\u7b97\u9886\u57df\u4e2d\uff0c\u7a97\u53e3\u8ba1\u7b97\u7684\u5730\u4f4d\u4e3e\u8db3\u8f7b\u91cd\uff0c\u4f46\u76ee\u524d\u5927\u591a\u6570\u6846\u67b6\u7a97\u53e3\u8ba1\u7b97\u91c7\u7528\u7684\u90fd\u662f\u7cfb\u7edf\u65f6\u95f4(Process Time)\uff0c\u4e5f\u662f\u4e8b\u4ef6\u4f20\u8f93\u5230\u8ba1\u7b97\u6846\u67b6\u5904\u7406\u65f6\uff0c\u7cfb\u7edf\u4e3b\u673a\u7684\u5f53\u524d\u65f6\u95f4\u3002 3. \u652f\u6301\u6709\u72b6\u6001\u8ba1\u7b97<\/strong><\/span><\/div>\n Flink\u57281.4\u7248\u672c\u4e2d\u5b9e\u73b0\u4e86\u72b6\u6001\u7ba1\u7406\uff0c\u6240\u8c13\u72b6\u6001\u5c31\u662f\u5728\u6d41\u5f0f\u8ba1\u7b97\u8fc7\u7a0b\u4e2d\u5c06\u7b97\u5b50\u7684\u4e2d\u95f4\u7ed3\u679c\u6570\u636e\u4fdd\u5b58\u5728\u5185\u5b58\u6216\u8005\u6587\u4ef6\u7cfb\u7edf\u4e2d\uff0c\u7b49\u4e0b\u4e00\u4e2a\u4e8b\u4ef6\u8fdb\u5165\u7b97\u5b50\u540e\u53ef\u4ee5\u4ece\u4e4b\u524d\u7684\u72b6\u6001\u4e2d\u83b7\u53d6\u4e2d\u95f4\u7ed3\u679c\u4e2d\u8ba1\u7b97\u5f53\u524d\u7684\u7ed3\u679c\uff0c\u4ece\u800c\u65e0\u987b\u6bcf\u6b21\u90fd\u57fa\u4e8e\u5168\u90e8\u7684\u539f\u59cb\u6570\u636e\u6765\u7edf\u8ba1\u7ed3\u679c\uff0c\u8fd9\u79cd\u65b9\u5f0f\u6781\u5927\u5730\u63d0\u5347\u4e86\u7cfb\u7edf\u7684\u6027\u80fd\uff0c\u5e76\u964d\u4f4e\u4e86\u6570\u636e\u8ba1\u7b97\u8fc7\u7a0b\u7684\u8d44\u6e90\u6d88\u8017\u3002 4. \u652f\u6301\u9ad8\u5ea6\u7075\u6d3b\u7684\u7a97\u53e3(Window)\u64cd\u4f5c<\/strong><\/span><\/div>\n \u5728\u6d41\u5904\u7406\u5e94\u7528\u4e2d\uff0c\u6570\u636e\u662f\u8fde\u7eed\u4e0d\u65ad\u7684\uff0c\u9700\u8981\u901a\u8fc7\u7a97\u53e3\u7684\u65b9\u5f0f\u5bf9\u6d41\u6570\u636e\u8fdb\u884c\u4e00\u5b9a\u8303\u56f4\u7684\u805a\u5408\u8ba1\u7b97\uff0c\u4f8b\u5982\u7edf\u8ba1\u5728\u8fc7\u53bb\u76841\u5206\u949f\u5185\u6709\u591a\u5c11\u7528\u6237\u70b9\u51fb\u67d0\u4e00\u7f51\u9875\uff0c\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u5fc5\u987b\u5b9a\u4e49\u4e00\u4e2a\u7a97\u53e3\uff0c\u7528\u6765\u6536\u96c6\u6700\u8fd1\u4e00\u5206\u949f\u5185\u7684\u6570\u636e\uff0c\u5e76\u5bf9\u8fd9\u4e2a\u7a97\u53e3\u5185\u7684\u6570\u636e\u8fdb\u884c\u518d\u8ba1\u7b97\u3002 5. \u57fa\u4e8e\u8f7b\u91cf\u7ea7\u5206\u5e03\u5f0f\u5feb\u7167(Snapshot)\u5b9e\u73b0\u7684\u5bb9\u9519<\/strong><\/span><\/div>\n Flink\u80fd\u591f\u5206\u5e03\u5f0f\u8fd0\u884c\u5728\u4e0a\u5343\u4e2a\u8282\u70b9\u4e0a\uff0c\u5c06\u4e00\u4e2a\u5927\u578b\u8ba1\u7b97\u4efb\u52a1\u7684\u6d41\u7a0b\u62c6\u89e3\u6210\u5c0f\u7684\u8ba1\u7b97\u8fc7\u7a0b\uff0c\u7136\u540e\u5c06tesk\u5206\u5e03\u5230\u5e76\u884c\u8282\u70b9\u4e0a\u8fdb\u884c\u5904\u7406\u3002\u5728\u4efb\u52a1\u6267\u884c\u8fc7\u7a0b\u4e2d\uff0c\u80fd\u591f\u81ea\u52a8\u53d1\u73b0\u4e8b\u4ef6\u5904\u7406\u8fc7\u7a0b\u4e2d\u7684\u9519\u8bef\u800c\u5bfc\u81f4\u6570\u636e\u4e0d\u4e00\u81f4\u7684\u95ee\u9898\uff0c\u6bd4\u5982\uff1a\u8282\u70b9\u5b95\u673a\u3001\u7f51\u8def\u4f20\u8f93\u95ee\u9898\uff0c\u6216\u662f\u7531\u4e8e\u7528\u6237\u56e0\u4e3a\u5347\u7ea7\u6216\u4fee\u590d\u95ee\u9898\u800c\u5bfc\u81f4\u8ba1\u7b97\u670d\u52a1\u91cd\u542f\u7b49\u3002 6. \u57fa\u4e8eJVM\u5b9e\u73b0\u72ec\u7acb\u7684\u5185\u5b58\u7ba1\u7406<\/strong><\/span><\/div>\n \u5185\u5b58\u7ba1\u7406\u662f\u6240\u6709\u8ba1\u7b97\u6846\u67b6\u9700\u8981\u91cd\u70b9\u8003\u8651\u7684\u90e8\u5206\uff0c\u5c24\u5176\u5bf9\u4e8e\u8ba1\u7b97\u91cf\u6bd4\u8f83\u5927\u7684\u8ba1\u7b97\u573a\u666f\uff0c\u6570\u636e\u5728\u5185\u5b58\u4e2d\u8be5\u5982\u4f55\u8fdb\u884c\u7ba1\u7406\u663e\u5f97\u81f3\u5173\u91cd\u8981\u3002\u9488\u5bf9\u5185\u5b58\u7ba1\u7406\uff0cFlink\u5b9e\u73b0\u4e86\u81ea\u8eab\u7ba1\u7406\u5185\u5b58\u7684\u673a\u5236\uff0c\u5c3d\u53ef\u80fd\u51cf\u5c11JVM GC\u5bf9\u7cfb\u7edf\u7684\u5f71\u54cd\u3002 7. Save Points(\u4fdd\u5b58\u70b9)<\/strong><\/span><\/div>\n \u5bf9\u4e8e7*24\u5c0f\u65f6\u8fd0\u884c\u7684\u6d41\u5f0f\u5e94\u7528\uff0c\u6570\u636e\u6e90\u6e90\u4e0d\u65ad\u5730\u63a5\u5165\uff0c\u5728\u4e00\u6bb5\u65f6\u95f4\u5185\u5e94\u7528\u7684\u7ec8\u6b62\u6709\u53ef\u80fd\u5bfc\u81f4\u6570\u636e\u7684\u4e22\u5931\u6216\u8005\u8ba1\u7b97\u7ed3\u679c\u7684\u4e0d\u51c6\u786e\uff0c\u4f8b\u5982\u8fdb\u884c\u96c6\u7fa4\u7248\u672c\u7684\u5347\u7ea7\u3001\u505c\u673a\u8fd0\u7ef4\u64cd\u4f5c\u7b49\u64cd\u4f5c\u3002 \u5982\u56fe1-1\u6240\u793a\uff0c\u4f20\u7edf\u5355\u4f53\u6570\u636e\u67b6\u6784(Monolithic Architecture)\u6700\u5927\u7684\u7279\u70b9\u4fbf\u662f\u96c6\u4e2d\u5f0f\u6570\u636e\u5b58\u50a8 […]<\/p>\n","protected":false},"author":1329,"featured_media":150900,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-150894","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\/150894","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\/1329"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=150894"}],"version-history":[{"count":2,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/150894\/revisions"}],"predecessor-version":[{"id":150902,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/150894\/revisions\/150902"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/150900"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=150894"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=150894"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=150894"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}} |