{"id":543,"date":"2025-05-15T14:07:39","date_gmt":"2025-05-15T06:07:39","guid":{"rendered":"https:\/\/www.zackzzp.top\/?p=543"},"modified":"2025-05-15T14:07:39","modified_gmt":"2025-05-15T06:07:39","slug":"%e5%88%86%e5%b8%83%e5%bc%8f%e7%b3%bb%e7%bb%9f%e5%ad%a6%e4%b9%a0","status":"publish","type":"post","link":"http:\/\/www.zackzzp.top\/index.php\/2025\/05\/15\/%e5%88%86%e5%b8%83%e5%bc%8f%e7%b3%bb%e7%bb%9f%e5%ad%a6%e4%b9%a0\/","title":{"rendered":"\u5206\u5e03\u5f0f\u7cfb\u7edf\u5b66\u4e60"},"content":{"rendered":"<h1 id=\"\u5206\u5e03\u5f0f\u7cfb\u7edf\u5b66\u4e60\">\u5206\u5e03\u5f0f\u7cfb\u7edf\u5b66\u4e60<\/h1>\n<h2 id=\"\u5206\u5e03\u5f0f\u4e8b\u52a1seata\">\u5206\u5e03\u5f0f\u4e8b\u52a1\uff08Seata\uff09<\/h2>\n<h3 id=\"\u5206\u5e03\u5f0f\u4e8b\u52a1\u6982\u8ff0\">\u5206\u5e03\u5f0f\u4e8b\u52a1\u6982\u8ff0<\/h3>\n<h4 id=\"cap\u7406\u8bba\">CAP\u7406\u8bba<\/h4>\n<p><strong>CAP\u7406\u8bba<\/strong>\u7531\u8ba1\u7b97\u673a\u79d1\u5b66\u5bb6Eric Brewer\u63d0\u51fa\uff0c\u6307\u51fa\u5728\u5206\u5e03\u5f0f\u7cfb\u7edf\u4e2d\uff0c\u4e0d\u53ef\u80fd\u540c\u65f6\u6ee1\u8db3\u4ee5\u4e0b\u4e09\u4e2a\u7279\u6027\uff1a<\/p>\n<ol>\n<li><strong>\u4e00\u81f4\u6027\uff08Consistency\uff09<\/strong>\u00a0\u6240\u6709\u8282\u70b9\u5728\u540c\u4e00\u65f6\u95f4\u770b\u5230\u7684\u6570\u636e\u5b8c\u5168\u76f8\u540c\uff08\u5f3a\u4e00\u81f4\u6027\uff09\u3002<\/li>\n<li><strong>\u53ef\u7528\u6027\uff08Availability\uff09<\/strong>\u00a0\u6bcf\u4e2a\u8bf7\u6c42\u90fd\u80fd\u5728\u5408\u7406\u65f6\u95f4\u5185\u83b7\u5f97\u54cd\u5e94\uff08\u975e\u9519\u8bef\u6216\u8d85\u65f6\uff09\u3002<\/li>\n<li><strong>\u5206\u533a\u5bb9\u9519\u6027\uff08Partition Tolerance\uff09<\/strong>\u00a0\u7cfb\u7edf\u5728\u53d1\u751f\u7f51\u7edc\u5206\u533a\uff08\u8282\u70b9\u95f4\u901a\u4fe1\u4e2d\u65ad\uff09\u65f6\u4ecd\u80fd\u7ee7\u7eed\u5de5\u4f5c\u3002<\/li>\n<\/ol>\n<p><strong>\u6838\u5fc3\u7ed3\u8bba<\/strong>\uff1a \u5728\u5206\u5e03\u5f0f\u7cfb\u7edf\u4e2d\uff0c\u7f51\u7edc\u5206\u533a\uff08P\uff09\u662f\u4e0d\u53ef\u907f\u514d\u7684\uff08\u5982\u7f51\u7edc\u6545\u969c\uff09\uff0c\u56e0\u6b64\u5fc5\u987b\u5728\u200b<strong>\u200b\u4e00\u81f4\u6027\uff08C\uff09\u200b<\/strong>\u200b\u548c\u200b<strong>\u200b\u53ef\u7528\u6027\uff08A\uff09\u200b<\/strong>\u200b\u4e4b\u95f4\u505a\u51fa\u53d6\u820d\uff1a<\/p>\n<ul>\n<li><strong>CP\u7cfb\u7edf<\/strong>\uff1a\u727a\u7272\u53ef\u7528\u6027\uff08A\uff09\uff0c\u4fdd\u8bc1\u5f3a\u4e00\u81f4\u6027\uff08C\uff09\u3002\u4f8b\u5982\uff1a\u94f6\u884c\u7cfb\u7edf\u3001ZooKeeper\u3002<\/li>\n<li><strong>AP\u7cfb\u7edf<\/strong>\uff1a\u727a\u7272\u5f3a\u4e00\u81f4\u6027\uff08C\uff09\uff0c\u4fdd\u8bc1\u9ad8\u53ef\u7528\u6027\uff08A\uff09\u3002\u4f8b\u5982\uff1aCassandra\u3001DynamoDB\u3002<\/li>\n<\/ul>\n<hr \/>\n<h4 id=\"base\u7406\u8bba\">BASE\u7406\u8bba<\/h4>\n<p><strong>BASE\u7406\u8bba<\/strong>\u662f\u5bf9CAP\u7406\u8bba\u7684\u8865\u5145\uff0c\u5f3a\u8c03\u5728\u65e0\u6cd5\u5b9e\u73b0\u5f3a\u4e00\u81f4\u6027\u7684\u573a\u666f\u4e0b\uff0c\u901a\u8fc7\u653e\u5bbd\u4e00\u81f4\u6027\u8981\u6c42\uff0c\u5b9e\u73b0\u9ad8\u53ef\u7528\u6027\u548c\u67d4\u6027\u67b6\u6784\u3002\u5176\u6838\u5fc3\u601d\u60f3\u662f<strong>\u6700\u7ec8\u4e00\u81f4\u6027<\/strong>\u3002<\/p>\n<ol>\n<li><strong>\u57fa\u672c\u53ef\u7528\uff08Basically Available\uff09<\/strong>\u00a0\u7cfb\u7edf\u5728\u6545\u969c\u65f6\u4ecd\u80fd\u63d0\u4f9b\u6838\u5fc3\u529f\u80fd\uff08\u5982\u964d\u7ea7\u670d\u52a1\u6216\u9650\u6d41\uff09\u3002<\/li>\n<li><strong>\u8f6f\u72b6\u6001\uff08Soft State\uff09<\/strong>\u00a0\u5141\u8bb8\u7cfb\u7edf\u5728\u4e0d\u540c\u8282\u70b9\u95f4\u5b58\u5728\u4e2d\u95f4\u72b6\u6001\uff08\u6570\u636e\u53ef\u80fd\u6682\u65f6\u4e0d\u4e00\u81f4\uff09\u3002<\/li>\n<li><strong>\u6700\u7ec8\u4e00\u81f4\u6027\uff08Eventually Consistent\uff09<\/strong>\u00a0\u7ecf\u8fc7\u4e00\u6bb5\u65f6\u95f4\u540e\uff0c\u6240\u6709\u8282\u70b9\u6570\u636e\u4f1a\u8fbe\u6210\u4e00\u81f4\uff08\u65e0\u9700\u5b9e\u65f6\u5f3a\u4e00\u81f4\uff09\u3002<\/li>\n<\/ol>\n<p><strong>\u5e94\u7528\u573a\u666f<\/strong>\uff1a<\/p>\n<ul>\n<li>\u9002\u5408\u5bf9\u4e00\u81f4\u6027\u8981\u6c42\u4e0d\u9ad8\u7684\u573a\u666f\uff0c\u5982\u793e\u4ea4\u7f51\u7edc\u3001\u7535\u5546\u5e93\u5b58\u3001\u65e5\u5fd7\u7cfb\u7edf\u7b49\u3002<\/li>\n<li>\u5e38\u89c1\u6280\u672f\uff1a\u5f02\u6b65\u590d\u5236\u3001\u8865\u507f\u4e8b\u52a1\uff08Saga\u6a21\u5f0f\uff09\u3001\u7248\u672c\u51b2\u7a81\u89e3\u51b3\uff08\u5982\u5411\u91cf\u65f6\u949f\uff09\u3002<\/li>\n<\/ul>\n<hr \/>\n<h4 id=\"cap\u4e0ebase\u7684\u5173\u7cfb\">CAP\u4e0eBASE\u7684\u5173\u7cfb<\/h4>\n<figure class=\"table-figure\">\n<table>\n<thead>\n<tr>\n<th><strong>\u7ef4\u5ea6<\/strong><\/th>\n<th><strong>CAP\u7406\u8bba<\/strong><\/th>\n<th><strong>BASE\u7406\u8bba<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>\u6838\u5fc3\u76ee\u6807<\/strong><\/td>\n<td>\u7406\u8bba\u5c42\u9762\u7684\u6743\u8861\u6a21\u578b<\/td>\n<td>\u5b9e\u8df5\u5c42\u9762\u7684\u8bbe\u8ba1\u6307\u5bfc<\/td>\n<\/tr>\n<tr>\n<td><strong>\u4e00\u81f4\u6027\u8981\u6c42<\/strong><\/td>\n<td>\u5f3a\u4e00\u81f4\u6027\uff08C\uff09\u6216\u53ef\u7528\u6027\uff08A\uff09<\/td>\n<td>\u6700\u7ec8\u4e00\u81f4\u6027\uff08\u5f31\u4e00\u81f4\u6027\uff09<\/td>\n<\/tr>\n<tr>\n<td><strong>\u9002\u7528\u573a\u666f<\/strong><\/td>\n<td>\u5f3a\u8c03\u4e25\u683c\u53d6\u820d\uff08CP\u6216AP\uff09<\/td>\n<td>\u5728AP\u7684\u57fa\u7840\u4e0a\u5b9e\u73b0\u67d4\u6027\u4e00\u81f4\u6027<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<h3 id=\"seata\u7b80\u4ecb\">Seata\u7b80\u4ecb<\/h3>\n<h4 id=\"2pc\u4e8c\u9636\u6bb5\u63d0\u4ea4\u534f\u8bae\">2PC\uff08\u4e8c\u9636\u6bb5\u63d0\u4ea4\u534f\u8bae\uff09<\/h4>\n<p><strong>2PC\uff08Two-Phase Commit Protocol\uff09<\/strong>\u662f\u5206\u5e03\u5f0f\u7cfb\u7edf\u4e2d\u5b9e\u73b0<strong>\u4e8b\u52a1\u539f\u5b50\u6027<\/strong>\u7684\u6838\u5fc3\u534f\u8bae\uff0c\u786e\u4fdd\u8de8\u591a\u4e2a\u8282\u70b9\u7684\u4e8b\u52a1\u8981\u4e48\u5168\u90e8\u63d0\u4ea4\u6210\u529f\uff0c\u8981\u4e48\u5168\u90e8\u56de\u6eda\u5931\u8d25\u3002\u5176\u6838\u5fc3\u601d\u60f3\u662f\u5c06\u4e8b\u52a1\u63d0\u4ea4\u5206\u4e3a\u4e24\u4e2a\u9636\u6bb5\uff1a<strong>\u51c6\u5907\u9636\u6bb5<\/strong>\u548c<strong>\u63d0\u4ea4\u9636\u6bb5<\/strong>\u3002<\/p>\n<hr \/>\n<h5 id=\"1-\u6838\u5fc3\u6d41\u7a0b\"><strong>1. \u6838\u5fc3\u6d41\u7a0b<\/strong><\/h5>\n<figure class=\"table-figure\">\n<table>\n<thead>\n<tr>\n<th>\u9636\u6bb5<\/th>\n<th>\u63cf\u8ff0<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>\u51c6\u5907\u9636\u6bb5<\/strong><\/td>\n<td>\u534f\u8c03\u8005\u8be2\u95ee\u6240\u6709\u53c2\u4e0e\u8005\u662f\u5426\u51c6\u5907\u597d\u63d0\u4ea4\u4e8b\u52a1\uff0c\u53c2\u4e0e\u8005\u9501\u5b9a\u8d44\u6e90\u5e76\u8fd4\u56de\u786e\u8ba4\u3002<\/td>\n<\/tr>\n<tr>\n<td><strong>\u63d0\u4ea4\u9636\u6bb5<\/strong><\/td>\n<td>\u534f\u8c03\u8005\u6839\u636e\u53c2\u4e0e\u8005\u53cd\u9988\u51b3\u5b9a\u63d0\u4ea4\u6216\u56de\u6eda\uff0c\u5e76\u5411\u6240\u6709\u53c2\u4e0e\u8005\u5e7f\u64ad\u6700\u7ec8\u51b3\u5b9a\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p><strong>\u6b65\u9aa4\u8be6\u89e3<\/strong>\uff1a<\/p>\n<ol>\n<li><strong>\u534f\u8c03\u8005\uff08Coordinator\uff09<\/strong>\u5411\u6240\u6709<strong>\u53c2\u4e0e\u8005\uff08Participant\uff09<\/strong>\u53d1\u9001\u4e8b\u52a1\u5185\u5bb9\uff0c\u5e76\u8be2\u95ee\u662f\u5426\u53ef\u63d0\u4ea4\uff08<code>Prepare<\/code>\u8bf7\u6c42\uff09\u3002<\/li>\n<li><strong>\u53c2\u4e0e\u8005<\/strong>\u6267\u884c\u4e8b\u52a1\u64cd\u4f5c\uff08\u4f46\u4e0d\u63d0\u4ea4\uff09\uff0c\u8bb0\u5f55Undo\/Redo\u65e5\u5fd7\uff0c\u9501\u5b9a\u8d44\u6e90\uff0c\u5e76\u5411\u534f\u8c03\u8005\u8fd4\u56de<code>Yes<\/code>\uff08\u51c6\u5907\u5c31\u7eea\uff09\u6216<code>No<\/code>\uff08\u65e0\u6cd5\u63d0\u4ea4\uff09\u3002<\/li>\n<li>\n<p>\u534f\u8c03\u8005<\/p>\n<p>\u6536\u96c6\u6240\u6709\u53c2\u4e0e\u8005\u7684\u54cd\u5e94\uff1a<\/p>\n<ul>\n<li>\u82e5\u6240\u6709\u53c2\u4e0e\u8005\u8fd4\u56de<code>Yes<\/code>\uff0c\u534f\u8c03\u8005\u53d1\u9001<code>Commit<\/code>\u547d\u4ee4\u3002<\/li>\n<li>\u82e5\u6709\u4efb\u4e00\u53c2\u4e0e\u8005\u8fd4\u56de<code>No<\/code>\u6216\u8d85\u65f6\uff0c\u534f\u8c03\u8005\u53d1\u9001<code>Rollback<\/code>\u547d\u4ee4\u3002<\/li>\n<\/ul>\n<\/li>\n<li><strong>\u53c2\u4e0e\u8005<\/strong>\u6839\u636e\u534f\u8c03\u8005\u6307\u4ee4\u6267\u884c\u63d0\u4ea4\u6216\u56de\u6eda\uff0c\u5e76\u91ca\u653e\u8d44\u6e90\u9501\uff0c\u5411\u534f\u8c03\u8005\u53d1\u9001<code>Ack<\/code>\u786e\u8ba4\u3002<\/li>\n<li><strong>\u534f\u8c03\u8005<\/strong>\u6536\u5230\u6240\u6709\u53c2\u4e0e\u8005\u7684<code>Ack<\/code>\u540e\uff0c\u7ed3\u675f\u4e8b\u52a1\u3002<\/li>\n<\/ol>\n<hr \/>\n<h5 id=\"2-\u4f18\u70b9\u4e0e\u7f3a\u70b9\"><strong>2. \u4f18\u70b9\u4e0e\u7f3a\u70b9<\/strong><\/h5>\n<figure class=\"table-figure\">\n<table>\n<thead>\n<tr>\n<th><strong>\u4f18\u70b9<\/strong><\/th>\n<th><strong>\u7f3a\u70b9<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u2705 \u5f3a\u4e00\u81f4\u6027\uff1a\u4fdd\u8bc1\u6240\u6709\u8282\u70b9\u6570\u636e\u4e00\u81f4\u3002<\/td>\n<td>\u274c \u540c\u6b65\u963b\u585e\uff1a\u53c2\u4e0e\u8005\u5728\u7b49\u5f85\u534f\u8c03\u8005\u6307\u4ee4\u65f6\u8d44\u6e90\u88ab\u9501\u5b9a\uff0c\u5f71\u54cd\u5e76\u53d1\u6027\u80fd\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u2705 \u7b80\u5355\u6613\u5b9e\u73b0\u3002<\/td>\n<td>\u274c \u5355\u70b9\u6545\u969c\uff1a\u534f\u8c03\u8005\u5b95\u673a\u4f1a\u5bfc\u81f4\u53c2\u4e0e\u8005\u957f\u671f\u963b\u585e\u6216\u6570\u636e\u4e0d\u4e00\u81f4\u3002<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>\u274c \u6570\u636e\u4e0d\u4e00\u81f4\u98ce\u9669\uff1a\u82e5\u534f\u8c03\u8005\u53d1\u9001<code>Commit<\/code>\u540e\u90e8\u5206\u53c2\u4e0e\u8005\u5b95\u673a\uff0c\u9700\u4eba\u5de5\u5e72\u9884\u6062\u590d\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<hr \/>\n<h5 id=\"3-2pc\u4e0ecap\u7406\u8bba\u7684\u5173\u7cfb\"><strong>3. 2PC\u4e0eCAP\u7406\u8bba\u7684\u5173\u7cfb<\/strong><\/h5>\n<ul>\n<li><strong>\u4e00\u81f4\u6027\uff08C\uff09<\/strong>\uff1a2PC\u4f18\u5148\u4fdd\u8bc1\u5f3a\u4e00\u81f4\u6027\uff08\u6240\u6709\u8282\u70b9\u63d0\u4ea4\u6216\u56de\u6eda\uff09\u3002<\/li>\n<li><strong>\u53ef\u7528\u6027\uff08A\uff09<\/strong>\uff1a\u5728\u534f\u8c03\u8005\u6216\u53c2\u4e0e\u8005\u6545\u969c\u65f6\uff0c\u7cfb\u7edf\u53ef\u80fd\u4e0d\u53ef\u7528\uff08\u5982\u53c2\u4e0e\u8005\u7b49\u5f85\u8d85\u65f6\uff09\u3002<\/li>\n<li><strong>\u5206\u533a\u5bb9\u9519\u6027\uff08P\uff09<\/strong>\uff1a\u7f51\u7edc\u5206\u533a\u53ef\u80fd\u5bfc\u81f4\u4e8b\u52a1\u963b\u585e\u6216\u56de\u6eda\u3002<\/li>\n<\/ul>\n<p><strong>\u7ed3\u8bba<\/strong>\uff1a 2PC\u5c5e\u4e8e\u200b<strong>\u200bCP\u7cfb\u7edf\u200b<\/strong>\u200b\uff0c\u727a\u7272\u53ef\u7528\u6027\uff08A\uff09\u4ee5\u4fdd\u969c\u5f3a\u4e00\u81f4\u6027\uff08C\uff09\u548c\u539f\u5b50\u6027\uff0c\u4f46\u65e0\u6cd5\u5b8c\u5168\u89e3\u51b3\u5206\u533a\u5bb9\u9519\u6027\uff08P\uff09\u5e26\u6765\u7684\u95ee\u9898\u3002<\/p>\n<hr \/>\n<h5 id=\"4-\u9002\u7528\u573a\u666f\u4e0e\u66ff\u4ee3\u65b9\u6848\"><strong>4. \u9002\u7528\u573a\u666f\u4e0e\u66ff\u4ee3\u65b9\u6848<\/strong><\/h5>\n<figure class=\"table-figure\">\n<table>\n<thead>\n<tr>\n<th><strong>\u9002\u7528\u573a\u666f<\/strong><\/th>\n<th><strong>\u66ff\u4ee3\u65b9\u6848<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u4f20\u7edf\u6570\u636e\u5e93\uff08\u5982MySQL Cluster\uff09\u3002<\/td>\n<td><strong>3PC\uff08\u4e09\u9636\u6bb5\u63d0\u4ea4\uff09<\/strong>\uff1a\u5f15\u5165\u8d85\u65f6\u673a\u5236\u548c\u9884\u63d0\u4ea4\u9636\u6bb5\uff0c\u964d\u4f4e\u963b\u585e\u98ce\u9669\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u5c0f\u89c4\u6a21\u5206\u5e03\u5f0f\u7cfb\u7edf\u3002<\/td>\n<td><strong>TCC\uff08Try-Confirm-Cancel\uff09<\/strong>\uff1a\u901a\u8fc7\u4e1a\u52a1\u8865\u507f\u5b9e\u73b0\u67d4\u6027\u4e8b\u52a1\uff0c\u9002\u5408\u9ad8\u5e76\u53d1\u573a\u666f\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u5f3a\u4e00\u81f4\u6027\u8981\u6c42\u4e25\u683c\u7684\u573a\u666f\u3002<\/td>\n<td><strong>Saga\u6a21\u5f0f<\/strong>\uff1a\u957f\u4e8b\u52a1\u62c6\u5206\u4e3a\u591a\u4e2a\u672c\u5730\u4e8b\u52a1\uff0c\u901a\u8fc7\u8865\u507f\u64cd\u4f5c\u56de\u6eda\uff0c\u727a\u7272\u5f3a\u4e00\u81f4\u6027\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<hr \/>\n<h5 id=\"5-\u5178\u578b\u95ee\u9898\u4e0e\u89e3\u51b3\u65b9\u6848\"><strong>5. \u5178\u578b\u95ee\u9898\u4e0e\u89e3\u51b3\u65b9\u6848<\/strong><\/h5>\n<ol>\n<li><strong>\u534f\u8c03\u8005\u5355\u70b9\u6545\u969c<\/strong>\n<ul>\n<li>\u5f15\u5165<strong>\u534f\u8c03\u8005\u96c6\u7fa4<\/strong>\uff08\u5982ZooKeeper\u9009\u4e3e\u4e3b\u5907\u8282\u70b9\uff09\u3002<\/li>\n<li>\u8bb0\u5f55\u4e8b\u52a1\u65e5\u5fd7\uff0c\u6545\u969c\u6062\u590d\u540e\u7ee7\u7eed\u5904\u7406\u672a\u5b8c\u6210\u4e8b\u52a1\u3002<\/li>\n<\/ul>\n<\/li>\n<li><strong>\u53c2\u4e0e\u8005\u963b\u585e<\/strong>\n<ul>\n<li>\u8bbe\u7f6e\u8d85\u65f6\u673a\u5236\uff0c\u8d85\u65f6\u540e\u81ea\u52a8\u56de\u6eda\u3002<\/li>\n<\/ul>\n<\/li>\n<li><strong>\u6570\u636e\u4e0d\u4e00\u81f4<\/strong>\n<ul>\n<li>\u4eba\u5de5\u4ecb\u5165\uff1a\u6839\u636e\u65e5\u5fd7\u4fee\u590d\u672a\u63d0\u4ea4\u6216\u672a\u56de\u6eda\u7684\u4e8b\u52a1\uff08\u5982MySQL\u7684XA\u4e8b\u52a1\u6062\u590d\u673a\u5236\uff09\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<hr \/>\n<h4 id=\"\u57fa\u7840\u67b6\u6784\">\u57fa\u7840\u67b6\u6784<\/h4>\n<p><a href=\"https:\/\/www.picgo.net\/image\/image.XmEbj4\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/img.picgo.net\/2025\/05\/15\/image1dea1417071d64db.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/img.picgo.net\/2025\/05\/15\/image1dea1417071d64db.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"image\" \/><\/div><\/a><\/p>\n<ul>\n<li>TC(Transaction Co&amp;rdinator)-\u4e8b\u52a1\u534f\u8c03\u8005\u7ef4\u62a4\u5168\u5c40\u548c\u5206\u652f\u4e8b\u52a1\u7684\u72b6\u6001\uff0c\u9a71\u52a8\u5168\u5c40\u4e8b\u52a1\u63d0\u4ea4\u6216\u56de\u6eda\u3002<\/li>\n<li>TM(Transaction Manager)-\u4e8b\u52a1\u7ba1\u7406\u5668(\u53d1\u8d77\u8005\uff0c\u540c\u65f6\u4e5f\u662fRM\u7684\u4e00\u79cd)\u5b9a\u4e49\u5168\u5c40\u4e8b\u52a1\u7684\u8303\u56f4:\u5f00\u59cb\u5168\u5c40\u4e8b\u52a1\u3001\u63d0\u4ea4\u6216\u56de\u6eda\u5168\u5c40\u4e8b\u52a1\u3002<\/li>\n<li>RM(Resource Manager)-\u8d44\u6e90\u7ba1\u7406\u5668(\u6bcf\u4e2a\u53c2\u4e0e\u4e8b\u52a1\u7684\u5fae\u670d\u52a1)\u7ba1\u7406\u5206\u652f\u4e8b\u52a1\u5904\u7406\u7684\u8d44\u6e90\uff0c\u4e0eTC\u4ea4\u8c08\u4ee5\u6ce8\u518c\u5206\u652f\u4e8b\u52a1\u548c\u62a5\u544a\u5206\u652f\u4e8b\u52a1\u7684\u72b6\u6001\uff0c\u5e76\u9a71\u52a8\u5206\u652f\u4e8b\u52a1\u63d0\u4ea4\u6216\u56de\u6eda\u3002<\/li>\n<\/ul>\n<h4 id=\"seata\u9ad8\u53ef\u7528\u914d\u7f6e\">Seata\u9ad8\u53ef\u7528\u914d\u7f6e<\/h4>\n<p>\u4e0enacos\u7ed3\u5408\u914d\u7f6e\uff0c\u4f7f\u7528nacos\u505a\u6ce8\u518c\u4e2d\u5fc3\u548c\u914d\u7f6e\u4e2d\u5fc3<\/p>\n<p><a href=\"https:\/\/www.picgo.net\/image\/image.Xm6X7J\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/img.picgo.net\/2025\/05\/15\/image1def85ec92aac617.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/img.picgo.net\/2025\/05\/15\/image1def85ec92aac617.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"image\" \/><\/div><\/a><\/p>\n<p>\u4e8b\u52a1\u5206\u7ec4\u95ee\u9898\uff1a\u7b97\u662f\u4e00\u4e2a\u5bb9\u9519\u673a\u5236\uff0c\u9632\u62a4\u673a\u623f\u65ad\u7535\u95ee\u9898\uff0cclient\u548cserver\u7aef\u5206\u7ec4\u914d\u7f6e\u8981\u4e00\u81f4<\/p>\n<h4 id=\"seata-at\u6a21\u5f0f\">Seata-AT\u6a21\u5f0f<\/h4>\n<p>AT\u6a21\u5f0f\u662f\u4e8c\u9636\u6bb5\u63d0\u4ea4\u534f\u8bae\u7684\u6f14\u53d8<\/p>\n<ul>\n<li>\u4e00\u9636\u6bb5\uff1a\u62e6\u622a\u4e1a\u52a1sql\uff0c\u8bb0\u5f55undo\u548credo\u65e5\u5fd7\uff0c\u751f\u6210\u9501<\/li>\n<li>\u8d1f\u8d23\u6574\u4f53\u56de\u6eda\u548c\u63d0\u4ea4<\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.picgo.net\/image\/image.Xm6zww\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/img.picgo.net\/2025\/05\/15\/image1bc263ebf7d0ccf0.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"https:\/\/img.picgo.net\/2025\/05\/15\/image1bc263ebf7d0ccf0.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"image\" \/><\/div><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5206\u5e03\u5f0f\u7cfb\u7edf\u5b66\u4e60 \u5206\u5e03\u5f0f\u4e8b\u52a1\uff08Seata\uff09 \u5206\u5e03\u5f0f\u4e8b\u52a1\u6982\u8ff0 CAP\u7406\u8bba CAP\u7406\u8bba\u7531\u8ba1\u7b97\u673a\u79d1\u5b66\u5bb6Eric Bre [&hellip;]<\/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":[],"class_list":["post-543","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.zackzzp.top\/index.php\/wp-json\/wp\/v2\/posts\/543","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.zackzzp.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.zackzzp.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.zackzzp.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.zackzzp.top\/index.php\/wp-json\/wp\/v2\/comments?post=543"}],"version-history":[{"count":1,"href":"http:\/\/www.zackzzp.top\/index.php\/wp-json\/wp\/v2\/posts\/543\/revisions"}],"predecessor-version":[{"id":544,"href":"http:\/\/www.zackzzp.top\/index.php\/wp-json\/wp\/v2\/posts\/543\/revisions\/544"}],"wp:attachment":[{"href":"http:\/\/www.zackzzp.top\/index.php\/wp-json\/wp\/v2\/media?parent=543"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.zackzzp.top\/index.php\/wp-json\/wp\/v2\/categories?post=543"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.zackzzp.top\/index.php\/wp-json\/wp\/v2\/tags?post=543"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}