{"id":27,"date":"2022-11-08T00:39:32","date_gmt":"2022-11-07T16:39:32","guid":{"rendered":"http:\/\/codermr.com\/?p=27"},"modified":"2023-03-25T23:26:05","modified_gmt":"2023-03-25T15:26:05","slug":"data_consistence","status":"publish","type":"post","link":"http:\/\/codermr.com\/index.php\/2022\/11\/08\/data_consistence\/","title":{"rendered":"\u5173\u4e8e\u300c\u6570\u636e\u4e00\u81f4\u6027\u300d"},"content":{"rendered":"\n<p>\u9605\u8bfb\u672c\u6587\u524d\uff0c\u8bf7\u5148\u9605\u8bfb <a href=\"http:\/\/codermr.com\/index.php\/2022\/11\/07\/talk_distribute\/\" data-type=\"URL\" data-id=\"http:\/\/codermr.com\/index.php\/2022\/11\/07\/talk_distribute\/\">\u804a\u804a\u300c\u5206\u5e03\u5f0f\u7cfb\u7edf\u300d<\/a>\u8fd9\u7bc7\u6587\u7ae0\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>\u6570\u636e\u4e00\u81f4\u6027\uff0c\u65e2\u7136\u8c08\u5230\u300c\u4e00\u81f4\u300d\u4e86\uff0c\u5fc5\u7136\u662f &gt;= 2 \u4e2a\u5ba2\u4f53\u4e4b\u95f4\u8fdb\u884c\u6bd4\u8f83\uff0c\u6bd4\u5982\u7f13\u5b58\u548c MySQL \u6570\u636e\u5e93\u7684\u6570\u636e\u4e00\u81f4\u6027\uff0c\u6bd4\u5982 ZooKeeper \u4e2d\u5404\u4e2a\u8282\u70b9\u6570\u636e\u7684\u4e00\u81f4\u6027\uff0c\u6bd4\u5982\u4e0d\u540c\u5ba2\u6237\u7aef\u8bfb\u53d6\u540c\u4e00\u4efd\u6570\u636e\u7684\u4e00\u81f4\u6027\u7b49\u7b49\u3002<\/p>\n\n\n\n<p>\u4e3e\u4e2a\u4f8b\u5b50\uff0c\u4f60\u5728 12306 \u4e0a\u9762\u4e70\u7968\uff0c\u5728\u6625\u8fd0\u62a2\u7968\u9ad8\u5cf0\u671f\uff0c\u540c\u4e00\u4e2a\u5ea7\u4f4d\u53ef\u80fd\u591a\u4e2a\u4e58\u5ba2\u90fd\u770b\u5230\u4e86\u5e76\u70b9\u51fb\u201c\u8d2d\u7968\u201d\u4e86\uff0c\u4f46\u662f\u53ea\u80fd\u6709\u4e00\u4e2a\u4eba\u8d2d\u7968\u6210\u529f\uff0c\u5982\u679c\u540c\u4e00\u4e2a\u5ea7\u4f4d &gt;= 2\u4e2a\u4eba\u8d2d\u7968\u6210\u529f\uff0c\u8fd9\u5c31\u51fa\u95ee\u9898\u4e86\u300212306 \u5c31\u5fc5\u987b\u8981\u4fdd\u8bc1\u4f59\u7968\u6570\u636e\u7684\u4e00\u81f4\u6027\u3002<\/p>\n\n\n\n<p>\u518d\u6bd4\u5982\uff0c\u4f60\u4ece\u5efa\u884c\u5f80\u5de5\u884c\u8f6c\u8d26\uff0c\u5fc5\u987b\u786e\u4fdd\u4f60\u5efa\u884c\u8d26\u6237\u4e0a\u7684\u94b1\u51cf\u5c11\u4e86 N \u5143\uff0c\u5de5\u884c\u8d26\u6237\u4e0a\u5f97\u591a\u51fa\u6765 N \u5143\uff0c\u4e0d\u80fd\u5efa\u884c\u8fd9\u8fb9\u8d26\u6237\u4f59\u989d\u51cf\u5c11\u4e86\uff0c\u5de5\u884c\u90a3\u8fb9\u8d26\u6237\u4f59\u989d\u6ca1\u53d8\u5316\uff0c\u8fd9\u5c31\u51fa\u5927\u95ee\u9898\u4e86\u3002\u4f46\u6211\u4eec\u77e5\u9053\uff0c\u5efa\u884c\u548c\u5de5\u884c\u80af\u5b9a\u662f\u4f4d\u4e8e\u4e0d\u540c\u7269\u7406\u4f4d\u7f6e\u4e0d\u540c\u670d\u52a1\u5668\u4e0a\u7684\u4e24\u4e2a\u7cfb\u7edf\uff0c\u4f60\u65e0\u6cd5\u7528\u5355\u673a ACID \u4e8b\u52a1\u4fdd\u8bc1\u6570\u636e\u7684\u4e00\u81f4\u6027\uff0c\u90a3\u5e94\u8be5\u600e\u4e48\u505a\u5462\uff1f\u8fd9\u91cc\u8ba8\u8bba\u7684\u5c31\u662f\u4e0d\u540c\u7cfb\u7edf\u4e4b\u95f4\u6570\u636e\u4e00\u81f4\u6027\u7684\u95ee\u9898\u3002<\/p>\n\n\n\n<p>\u518d\u4e3e\u4e2a\u4f8b\u5b50\uff0c\u6570\u636e\u5e93\u4e3b\u4ece\u590d\u5236\uff0c\u600e\u4e48\u4fdd\u8bc1\u4e3b\u5e93\u548c\u4ece\u5e93\u4e4b\u95f4\u6570\u636e\u7684\u4e00\u81f4\u6027\uff1f<\/p>\n\n\n\n<p>\u5728\u6211\u7684\u8fd9\u7bc7\u6587\u7ae0 <a href=\"http:\/\/codermr.com\/index.php\/2022\/11\/07\/talkzk1\/\" data-type=\"URL\" data-id=\"http:\/\/codermr.com\/index.php\/2022\/11\/07\/talkzk1\/\">\u804a\u804a\u300cZooKeeper\u300d<\/a>\u4e2d\u6211\u4e3e\u4e86\u4e2a\u201c\u591a\u4e2a\u6570\u636e\u8282\u70b9\u4fdd\u8bc1\u6570\u636e\u4e00\u81f4\u6027\u201d\u7684\u4f8b\u5b50\uff0c\u4ece\u4e2d\u53ef\u4ee5\u770b\u5230\uff0c\u5728\u5206\u5e03\u5f0f\u7cfb\u7edf\u4e2d\uff0c\u5982\u4f55\u65e2\u4fdd\u8bc1\u6570\u636e\u7684\u4e00\u81f4\u6027\u3001\u53c8\u4e0d\u5f71\u54cd\u7cfb\u7edf\u6027\u80fd\uff0c\u662f\u6bcf\u4e2a\u5206\u5e03\u5f0f\u7cfb\u7edf\u90fd\u8981\u91cd\u70b9\u8003\u8651\u548c\u6743\u8861\u7684\u3002\u9274\u4e8e\u6b64\uff0c\u6211\u4eec\u6765\u8ba8\u8bba\u4e00\u4e0b\u4e00\u81f4\u6027\u7684\u7ea7\u522b\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\uff08\u4e00\uff09\u5f3a\u4e00\u81f4\u6027<\/h3>\n\n\n\n<p>\u8fd9\u79cd\u4e00\u81f4\u6027\u6700\u7b26\u5408\u7528\u6237\u76f4\u89c9\uff0c\u5728\u7528\u6237\u770b\u6765\uff0c\u6211\u5199\u5165\u4ec0\u4e48\uff0c\u7136\u540e\u8bfb\u51fa\u6765\u5c31\u662f\u4ec0\u4e48\u3002\u4e0d\u7ba1\u4f60\u7cfb\u7edf\u5185\u90e8\u662f\u5982\u4f55\u5b9e\u73b0\u7684\uff0c\u6709\u591a\u5c11\u4e3b\u5e93\u4ece\u5e93\u7684\uff0c\u4ece\u54ea\u4e2a\u4ece\u5e93\u4e3b\u5e93\u8bfb\u51fa\u6765\u7684\u6570\u636e\u3002\u53cd\u6b63\u5728\u7528\u6237\u770b\u6765\u5c31\u662f\u201c\u6211\u5199\u5165\u4ec0\u4e48\uff0c\u7136\u540e\u8bfb\u51fa\u6765\u5c31\u662f\u4ec0\u4e48\u201d\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\uff08\u4e8c\uff09\u5f31\u4e00\u81f4\u6027<\/h3>\n\n\n\n<p>\u5f31\u4e00\u81f4\u6027\uff0c\u987e\u540d\u601d\u4e49\uff0c\u5c31\u662f\u80fd\u591f\u5bb9\u5fcd\u300c\u4e00\u5b9a\u7a0b\u5ea6\u300d\u7684\u6570\u636e\u4e0d\u4e00\u81f4\u3002\u4f46\u8fd9\u4e2a\u300c\u4e00\u5b9a\u7a0b\u5ea6\u300d\u600e\u4e48\u754c\u5b9a\u5462\uff1f\u8fd9\u4e2a\u662f\u8ddf\u4f60\u7684\u5177\u4f53\u4e1a\u52a1\u6709\u5173\u7684\u3002\u5f31\u4e00\u81f4\u6027\u5927\u4f53\u8fd8\u53ef\u4ee5\u5206\u4e3a\uff1a<\/p>\n\n\n\n<ul>\n<li>\u4f1a\u8bdd\u4e00\u81f4\u6027\uff1a\u4fdd\u8bc1\u5bf9\u4e8e\u5199\u5165\u7684\u503c\uff0c\u5728\u540c\u4e00\u6b21\u5ba2\u6237\u7aef\u4f1a\u8bdd\u4e2d\uff0c\u53ef\u4ee5\u8bfb\u5230\u4e00\u81f4\u7684\u503c\u3002<\/li>\n<\/ul>\n\n\n\n<ul>\n<li>\u7528\u6237\u4e00\u81f4\u6027\uff1a\u4fdd\u8bc1\u5bf9\u4e8e\u5199\u5165\u7684\u503c\uff0c\u5728\u540c\u4e00\u4e2a\u7528\u6237\u4e2d\uff0c\u53ef\u4ee5\u8bfb\u5230\u4e00\u81f4\u7684\u503c\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\uff08\u4e09\uff09\u6700\u7ec8\u4e00\u81f4\u6027<\/h3>\n\n\n\n<p>\u987e\u540d\u601d\u4e49\uff0c\u53ef\u4ee5\u5bb9\u5fcd\u77ed\u65f6\u95f4\u6570\u636e\u4e0d\u4e00\u81f4\u7684\u60c5\u51b5\uff0c\u4f46\u662f\u6700\u7ec8\u6570\u636e\u8fd8\u662f\u8981\u4fdd\u8bc1\u4e00\u81f4\u6027\u3002\u5177\u4f53\u5b9e\u73b0\u8981\u770b\u4e1a\u52a1\u60c5\u51b5\uff0c\u770b\u80fd\u627f\u53d7\u54ea\u79cd\u7a0b\u5ea6\u7684\u6700\u7ec8\u4e00\u81f4\u6027\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u518d\u8c08\u6570\u636e\u5e93\u4e8b\u52a1<\/h2>\n\n\n\n<p>ACID \u5373 A\uff08\u539f\u5b50\u6027\uff09\u3001C\uff08\u4e00\u81f4\u6027\uff09\u3001I\uff08\u9694\u79bb\u6027\uff09\u3001D\uff08\u6301\u4e45\u6027\uff09<\/p>\n\n\n\n<p><strong>\u4e8b\u52a1\u7684\u9694\u79bb\u7ea7\u522b<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>\u8bfb\u672a\u63d0\u4ea4<\/strong>\uff1a\u5373\u4e00\u4e2a\u4e8b\u52a1\u80fd\u591f\u8bfb\u53d6\u53e6\u4e00\u4e2a\u4e8b\u52a1\u4e2d\u8fd8\u6ca1\u6709\u63d0\u4ea4\u7684\u6570\u636e\u3002\uff08\u8fd9\u79cd\u4e8b\u52a1\u9694\u79bb\u7ea7\u522b\u51e0\u4e4e\u6ca1\u4eba\u7528\uff0c\u5b58\u5728\u810f\u8bfb\u95ee\u9898\uff0c\u9694\u79bb\u7ea7\u522b\u6700\u4f4e\uff09<\/p>\n\n\n\n<p><strong>\u8bfb\u5df2\u63d0\u4ea4<\/strong>\uff1a\u5373\u4e00\u4e2a\u4e8b\u52a1\u53ef\u4ee5\u8bfb\u53d6\u5230\u53e6\u4e00\u4e2a\u4e8b\u52a1\u4e2d\u5df2\u7ecf\u63d0\u4ea4\u7684\u6570\u636e\u3002\uff08\u5b58\u5728\u4e0d\u53ef\u91cd\u590d\u5ea6\u7684\u95ee\u9898\u3002=\u300b\u5176\u5b9e\u6211\u89c9\u5f97\u8fd9\u4e0d\u80fd\u7b97\u201c\u95ee\u9898\u201d\uff0c\u8981\u770b\u5177\u4f53\u4e1a\u52a1\u573a\u666f\uff0c\u4f60\u7684\u4e1a\u52a1\u573a\u666f\u662f\u5426\u8981\u6c42\u5728\u4e8b\u52a1 A \u91cc\u9762\u591a\u6b21\u8bfb\u53d6\u4e8b\u52a1 B \u91cc\u7684\u6570\u636e\uff0c\u6bcf\u6b21\u90fd\u8981\u8bfb\u53d6\u6700\u65b0\u7684\uff09<\/p>\n\n\n\n<p><strong>\u53ef\u91cd\u590d\u8bfb<\/strong>\uff1a\u5728\u4e8b\u52a1 A \u91cc\uff0c\u591a\u6b21\u8bfb\u53d6\u4e8b\u52a1 B \u91cc\u7684\u6570\u636e\uff0c\u6bcf\u6b21\u8bfb\u5230\u7684\u503c\uff0c\u90fd\u548c\u4e8b\u52a1\u5f00\u59cb\u65f6\u8bfb\u5230\u7684\u503c\u662f\u4e00\u81f4\u7684\uff09<\/p>\n\n\n\n<p><strong>\u4e32\u884c\u5316<\/strong>\uff1a\u5373\u6240\u6709\u4e8b\u52a1\u4e32\u884c\u6267\u884c\u3002\uff08\u6548\u7387\u6700\u4f4e\uff09<\/p>\n<\/blockquote>\n\n\n\n<p><\/p>\n\n\n\n<p>\u4ee5\u4e0a\u662f\u5355\u673a\u6570\u636e\u5e93\u4e2d\u4e8b\u52a1\u7684\u9694\u79bb\u7ea7\u522b\u3002\u5355\u673a\u6570\u636e\u5e93\u5f88\u5bb9\u6613\u5b9e\u73b0\u4e00\u5957\u6ee1\u8db3 ACID \u7684\u4e8b\u52a1\u7cfb\u7edf\uff0c\u4f46\u662f\u5728\u5206\u5e03\u5f0f\u7cfb\u7edf\u4e2d\uff0c\u8981\u5b9e\u73b0\u6ee1\u8db3 ACID \u7279\u6027\u7684\u4e8b\u52a1\u662f\u975e\u5e38\u590d\u6742\u7684\u3002\u4f46\u73b0\u5b9e\u4e2d\u786e\u5b9e\u53c8\u5b58\u5728\u8fd9\u6837\u7684\u8981\u6c42\uff08\u6bd4\u5982\u8de8\u884c\u8f6c\u8d26\uff09\u3002<\/p>\n\n\n\n<p>CAP \u7406\u8bba\uff08\u89c1\u6211\u7684\u6587\u7ae0 <a href=\"http:\/\/codermr.com\/index.php\/2022\/11\/09\/whatiscap\/\" data-type=\"URL\" data-id=\"http:\/\/codermr.com\/index.php\/2022\/11\/09\/whatiscap\/\">\u4ec0\u4e48\u662f\u300cCAP\u300d\uff1f<\/a> \uff09\u544a\u8bc9\u6211\u4eec\uff1a<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u5206\u5e03\u5f0f\u7cfb\u7edf\u4e2d\uff0c\u5728\u300c\u53ef\u7528\u6027\u300d\u548c\u300c\u4e00\u81f4\u6027\u300d\u4e4b\u95f4\u6c38\u8fdc\u65e0\u6cd5\u5b58\u5728\u4e00\u4e2a\u4e24\u5168\u5176\u7f8e\u7684\u65b9\u6848\u3002<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">BASE \u7406\u8bba\uff08\u57fa\u672c\u53ef\u7528\uff09<\/h2>\n\n\n\n<p>BASE \u7406\u8bba\u662f\u5bf9 CAP \u4e2d\u300c\u53ef\u7528\u6027\u300d\u548c\u300c\u4e00\u81f4\u6027\u300d\u8fdb\u884c\u6743\u8861\u7684\u7ed3\u679c\u3002\u5176\u6838\u5fc3\u601d\u60f3\u662f\u5373\u4f7f\u65e0\u6cd5\u505a\u5230\u5f3a\u4e00\u81f4\u6027\uff0c\u4e5f\u8981\u5c3d\u91cf\u505a\u5230\u6700\u7ec8\u4e00\u81f4\u6027\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u4ec0\u4e48\u662f\u57fa\u672c\u53ef\u7528\uff1f<\/h4>\n\n\n\n<p>\u8981\u770b\u5177\u4f53\u4e1a\u52a1\u5177\u4f53\u573a\u666f\u3002\u4f46\u8981\u6ce8\u610f\uff0c\u300c\u57fa\u672c\u53ef\u7528\u300d\u4e0d\u7b49\u4e8e\u300c\u4e0d\u53ef\u7528\u300d\uff0c\u300c\u57fa\u672c\u53ef\u7528\u300d\u4e5f\u4e0d\u4ee3\u8868\u300c\u4e0d\u7a33\u5b9a\u300d\u3002\u57fa\u672c\u53ef\u7528\uff0c\u662f\u6307\u5728\u5206\u5e03\u5f0f\u7cfb\u7edf\u4e2d\u51fa\u73b0\u300c\u4e0d\u53ef\u9884\u77e5\u6545\u969c\u300d\u7684\u65f6\u5019\uff0c\u5141\u8bb8\u635f\u5931\u4e00\u90e8\u5206\u53ef\u7528\u6027\u3002=\u300b\u5176\u5b9e\u6211\u89c9\u5f97 BASE \u7684\u66f4\u51c6\u786e\u63cf\u8ff0\u5e94\u8be5\u662f\u300c\u57fa\u7840\u6838\u5fc3\u529f\u80fd\u53ef\u7528\u300d\u3002\u6bd4\u5982\uff1a<\/p>\n\n\n\n<ul>\n<li><strong>\u54cd\u5e94\u65f6\u95f4\u4e0a\u7684\u635f\u5931<\/strong>\uff1a\u5728\u5206\u5e03\u5f0f\u7cfb\u7edf\u51fa\u73b0\u6545\u969c\u7684\u60c5\u51b5\u4e0b\uff0c\u5141\u8bb8\u54cd\u5e94\u65f6\u95f4\u589e\u52a0\u3002<\/li>\n\n\n\n<li><strong>\u529f\u80fd\u4e0a\u7684\u635f\u5931<\/strong>\uff1a\u5728\u5206\u5e03\u5f0f\u7cfb\u7edf\u51fa\u73b0\u6545\u969c\u7684\u60c5\u51b5\u4e0b\uff0c\u5141\u8bb8\u90e8\u5206\u7cfb\u7edf\u964d\u7ea7\uff0c\u4f46\u6838\u5fc3\u529f\u80fd\u53ef\u7528\uff08\u6bd4\u5982\u7535\u5546\u7cfb\u7edf\u5141\u8bb8\u4e0b\u5355\u652f\u4ed8\uff0c\u4f46\u7269\u6d41\u7cfb\u7edf\u6682\u65f6\u4e0d\u53ef\u7528\uff09\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u300c\u6700\u7ec8\u4e00\u81f4\u6027\u300d\u7684\u51e0\u79cd\u53d8\u79cd<\/h3>\n\n\n\n<ul>\n<li><strong>\u8bfb\u81ea\u5df1\u6240\u5199\uff08Read your writes)<\/strong><\/li>\n<\/ul>\n\n\n\n<p>\u5373\u201c\u5ba2\u6237\u7aefA\u201d\u66f4\u65b0\u7684\u6570\u636e\uff0c\u201c\u5ba2\u6237\u7aefA\u201d\u81ea\u5df1\u603b\u662f\u80fd\u8bfb\u5230\u6700\u65b0\u6570\u636e\uff0c\u4e0d\u4f1a\u8bfb\u5230\u65e7\u503c\u3002\u4f46\u5bf9\u4e8e\u5176\u4ed6\u201c\u5ba2\u6237\u7aef\u201d\u6765\u8bf4\u4e0d\u4e00\u5b9a\u80fd\u83b7\u53d6\u5230\u6700\u65b0\u7684\u6570\u636e\u3002<\/p>\n\n\n\n<ul>\n<li><strong>\u4f1a\u8bdd\u4e00\u81f4\u6027\uff08Sessions consistency\uff09<\/strong><\/li>\n<\/ul>\n\n\n\n<p>\u5728\u201c\u5ba2\u6237\u7aef\u201d\u548c\u670d\u52a1\u7aef\u7684\u4e00\u6b21\u4f1a\u8bdd\u4e2d\uff0c\u80fd\u5b9e\u73b0\u300c\u8bfb\u81ea\u5df1\u6240\u5199\u300d\u7684\u4e00\u81f4\u6027\u3002<\/p>\n\n\n\n<ul>\n<li><strong>\u5355\u8c03\u8bfb\u4e00\u81f4\u6027<\/strong><\/li>\n<\/ul>\n\n\n\n<p>\u6307\u5982\u679c\u201c\u5ba2\u6237\u7aef\u201d\u4ece\u670d\u52a1\u7aef\u8bfb\u53d6\u4e00\u4e2a\u6570\u636e\u9879\u7684\u67d0\u503c\u4e4b\u540e\uff0c\u540e\u7eed\u4e0d\u80fd\u518d\u4ece\u670d\u52a1\u7aef\u8bfb\u53d6\u5230\u66f4\u65e7\u7684\u503c\u3002\u5373\u670d\u52a1\u7aef\u4f1a\u4fdd\u8bc1\u6bcf\u4e2a\u201c\u5ba2\u6237\u7aef\u201d\u7684\u5199\u64cd\u4f5c\u662f\u987a\u5e8f\u6267\u884c\u7684\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\"><strong>\u5b8c\u3002<\/strong><\/h1>\n","protected":false},"excerpt":{"rendered":"<p>\u9605\u8bfb\u672c\u6587\u524d\uff0c\u8bf7\u5148\u9605\u8bfb \u804a\u804a\u300c\u5206\u5e03\u5f0f\u7cfb\u7edf\u300d\u8fd9\u7bc7\u6587\u7ae0\u3002 \u6570\u636e\u4e00\u81f4\u6027\uff0c\u65e2\u7136\u8c08\u5230\u300c\u4e00\u81f4\u300d\u4e86\uff0c\u5fc5\u7136\u662f &gt;= 2 \u4e2a&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[10],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5173\u4e8e\u300c\u6570\u636e\u4e00\u81f4\u6027\u300d - \u7801\u5148\u751f\u7684\u535a\u5ba2<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/codermr.com\/index.php\/2022\/11\/08\/data_consistence\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5173\u4e8e\u300c\u6570\u636e\u4e00\u81f4\u6027\u300d - \u7801\u5148\u751f\u7684\u535a\u5ba2\" \/>\n<meta property=\"og:description\" content=\"\u9605\u8bfb\u672c\u6587\u524d\uff0c\u8bf7\u5148\u9605\u8bfb \u804a\u804a\u300c\u5206\u5e03\u5f0f\u7cfb\u7edf\u300d\u8fd9\u7bc7\u6587\u7ae0\u3002 \u6570\u636e\u4e00\u81f4\u6027\uff0c\u65e2\u7136\u8c08\u5230\u300c\u4e00\u81f4\u300d\u4e86\uff0c\u5fc5\u7136\u662f &gt;= 2 \u4e2a...\" \/>\n<meta property=\"og:url\" content=\"http:\/\/codermr.com\/index.php\/2022\/11\/08\/data_consistence\/\" \/>\n<meta property=\"og:site_name\" content=\"\u7801\u5148\u751f\u7684\u535a\u5ba2\" \/>\n<meta property=\"article:published_time\" content=\"2022-11-07T16:39:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-03-25T15:26:05+00:00\" \/>\n<meta name=\"author\" content=\"\u7801\u5148\u751f\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/mrcode2021\" \/>\n<meta name=\"twitter:site\" content=\"@mrcode2021\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u7801\u5148\u751f\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\/\/codermr.com\/index.php\/2022\/11\/08\/data_consistence\/#article\",\"isPartOf\":{\"@id\":\"http:\/\/codermr.com\/index.php\/2022\/11\/08\/data_consistence\/\"},\"author\":{\"name\":\"\u7801\u5148\u751f\",\"@id\":\"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf\"},\"headline\":\"\u5173\u4e8e\u300c\u6570\u636e\u4e00\u81f4\u6027\u300d\",\"datePublished\":\"2022-11-07T16:39:32+00:00\",\"dateModified\":\"2023-03-25T15:26:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/codermr.com\/index.php\/2022\/11\/08\/data_consistence\/\"},\"wordCount\":32,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf\"},\"keywords\":[\"\u5206\u5e03\u5f0f\"],\"articleSection\":[\"JAVA\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/codermr.com\/index.php\/2022\/11\/08\/data_consistence\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/codermr.com\/index.php\/2022\/11\/08\/data_consistence\/\",\"url\":\"http:\/\/codermr.com\/index.php\/2022\/11\/08\/data_consistence\/\",\"name\":\"\u5173\u4e8e\u300c\u6570\u636e\u4e00\u81f4\u6027\u300d - \u7801\u5148\u751f\u7684\u535a\u5ba2\",\"isPartOf\":{\"@id\":\"http:\/\/codermr.com\/#website\"},\"datePublished\":\"2022-11-07T16:39:32+00:00\",\"dateModified\":\"2023-03-25T15:26:05+00:00\",\"breadcrumb\":{\"@id\":\"http:\/\/codermr.com\/index.php\/2022\/11\/08\/data_consistence\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/codermr.com\/index.php\/2022\/11\/08\/data_consistence\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/codermr.com\/index.php\/2022\/11\/08\/data_consistence\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"http:\/\/codermr.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5173\u4e8e\u300c\u6570\u636e\u4e00\u81f4\u6027\u300d\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/codermr.com\/#website\",\"url\":\"http:\/\/codermr.com\/\",\"name\":\"\u7801\u5148\u751f\u7684\u535a\u5ba2\",\"description\":\"\u6b22 \u8fce \u4e0b \u8f7d \u6211 \u5f00 \u53d1 \u7684 \u5404 \u7aef \u8f6f \u4ef6 \u548c APP\",\"publisher\":{\"@id\":\"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/codermr.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf\",\"name\":\"\u7801\u5148\u751f\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"http:\/\/codermr.com\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/codermr.com\/wp-content\/uploads\/2023\/02\/wukong.jpg\",\"contentUrl\":\"http:\/\/codermr.com\/wp-content\/uploads\/2023\/02\/wukong.jpg\",\"width\":400,\"height\":400,\"caption\":\"\u7801\u5148\u751f\"},\"logo\":{\"@id\":\"http:\/\/codermr.com\/#\/schema\/person\/image\/\"},\"sameAs\":[\"http:\/\/codermr.com\",\"https:\/\/twitter.com\/https:\/\/twitter.com\/mrcode2021\"],\"url\":\"http:\/\/codermr.com\/index.php\/author\/coderma\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5173\u4e8e\u300c\u6570\u636e\u4e00\u81f4\u6027\u300d - \u7801\u5148\u751f\u7684\u535a\u5ba2","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/codermr.com\/index.php\/2022\/11\/08\/data_consistence\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5173\u4e8e\u300c\u6570\u636e\u4e00\u81f4\u6027\u300d - \u7801\u5148\u751f\u7684\u535a\u5ba2","og_description":"\u9605\u8bfb\u672c\u6587\u524d\uff0c\u8bf7\u5148\u9605\u8bfb \u804a\u804a\u300c\u5206\u5e03\u5f0f\u7cfb\u7edf\u300d\u8fd9\u7bc7\u6587\u7ae0\u3002 \u6570\u636e\u4e00\u81f4\u6027\uff0c\u65e2\u7136\u8c08\u5230\u300c\u4e00\u81f4\u300d\u4e86\uff0c\u5fc5\u7136\u662f &gt;= 2 \u4e2a...","og_url":"http:\/\/codermr.com\/index.php\/2022\/11\/08\/data_consistence\/","og_site_name":"\u7801\u5148\u751f\u7684\u535a\u5ba2","article_published_time":"2022-11-07T16:39:32+00:00","article_modified_time":"2023-03-25T15:26:05+00:00","author":"\u7801\u5148\u751f","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/mrcode2021","twitter_site":"@mrcode2021","twitter_misc":{"\u4f5c\u8005":"\u7801\u5148\u751f","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/codermr.com\/index.php\/2022\/11\/08\/data_consistence\/#article","isPartOf":{"@id":"http:\/\/codermr.com\/index.php\/2022\/11\/08\/data_consistence\/"},"author":{"name":"\u7801\u5148\u751f","@id":"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf"},"headline":"\u5173\u4e8e\u300c\u6570\u636e\u4e00\u81f4\u6027\u300d","datePublished":"2022-11-07T16:39:32+00:00","dateModified":"2023-03-25T15:26:05+00:00","mainEntityOfPage":{"@id":"http:\/\/codermr.com\/index.php\/2022\/11\/08\/data_consistence\/"},"wordCount":32,"commentCount":0,"publisher":{"@id":"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf"},"keywords":["\u5206\u5e03\u5f0f"],"articleSection":["JAVA"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/codermr.com\/index.php\/2022\/11\/08\/data_consistence\/#respond"]}]},{"@type":"WebPage","@id":"http:\/\/codermr.com\/index.php\/2022\/11\/08\/data_consistence\/","url":"http:\/\/codermr.com\/index.php\/2022\/11\/08\/data_consistence\/","name":"\u5173\u4e8e\u300c\u6570\u636e\u4e00\u81f4\u6027\u300d - \u7801\u5148\u751f\u7684\u535a\u5ba2","isPartOf":{"@id":"http:\/\/codermr.com\/#website"},"datePublished":"2022-11-07T16:39:32+00:00","dateModified":"2023-03-25T15:26:05+00:00","breadcrumb":{"@id":"http:\/\/codermr.com\/index.php\/2022\/11\/08\/data_consistence\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["http:\/\/codermr.com\/index.php\/2022\/11\/08\/data_consistence\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/codermr.com\/index.php\/2022\/11\/08\/data_consistence\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"http:\/\/codermr.com\/"},{"@type":"ListItem","position":2,"name":"\u5173\u4e8e\u300c\u6570\u636e\u4e00\u81f4\u6027\u300d"}]},{"@type":"WebSite","@id":"http:\/\/codermr.com\/#website","url":"http:\/\/codermr.com\/","name":"\u7801\u5148\u751f\u7684\u535a\u5ba2","description":"\u6b22 \u8fce \u4e0b \u8f7d \u6211 \u5f00 \u53d1 \u7684 \u5404 \u7aef \u8f6f \u4ef6 \u548c APP","publisher":{"@id":"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/codermr.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":["Person","Organization"],"@id":"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf","name":"\u7801\u5148\u751f","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"http:\/\/codermr.com\/#\/schema\/person\/image\/","url":"http:\/\/codermr.com\/wp-content\/uploads\/2023\/02\/wukong.jpg","contentUrl":"http:\/\/codermr.com\/wp-content\/uploads\/2023\/02\/wukong.jpg","width":400,"height":400,"caption":"\u7801\u5148\u751f"},"logo":{"@id":"http:\/\/codermr.com\/#\/schema\/person\/image\/"},"sameAs":["http:\/\/codermr.com","https:\/\/twitter.com\/https:\/\/twitter.com\/mrcode2021"],"url":"http:\/\/codermr.com\/index.php\/author\/coderma\/"}]}},"_links":{"self":[{"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/posts\/27"}],"collection":[{"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/comments?post=27"}],"version-history":[{"count":9,"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/posts\/27\/revisions"}],"predecessor-version":[{"id":847,"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/posts\/27\/revisions\/847"}],"wp:attachment":[{"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/media?parent=27"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/categories?post=27"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/tags?post=27"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}