{"id":89,"date":"2026-09-01T01:24:04","date_gmt":"2026-08-31T17:24:04","guid":{"rendered":"https:\/\/www.ziliaochi.cn\/index.php\/2026\/09\/01\/interview-distributed-transaction\/"},"modified":"2026-09-06T01:30:06","modified_gmt":"2026-09-05T17:30:06","slug":"interview-distributed-transaction","status":"publish","type":"post","link":"https:\/\/www.ziliaochi.cn\/index.php\/2026\/09\/01\/interview-distributed-transaction\/","title":{"rendered":"\u540e\u7aef\u9762\u8bd5\u771f\u9898\uff1a\u5206\u5e03\u5f0f\u4e8b\u52a1\u4e0e\u4e00\u81f4\u6027\uff0c\u9762\u8bd5\u5b98\u7684 12 \u4e2a\u8ffd\u95ee"},"content":{"rendered":"<div style=\"font-family:-apple-system,BlinkMacSystemFont,\"Segoe UI\",\"PingFang SC\",\"Hiragino Sans GB\",\"Microsoft YaHei\",sans-serif;font-size:16.5px;line-height:1.9;color:#35435c;letter-spacing:.2px\">\n<div style=\"background:linear-gradient(135deg,#f5f9ff,#eef5ff);border:1px solid #dce8f8;border-left:4px solid #e09a2b;border-radius:12px;padding:16px 20px;margin:0 0 24px;font-size:14.5px;color:#3d5570;line-height:2\"><span style=\"display:inline-block;background:#e09a2b;color:#fff;font-size:12.5px;font-weight:700;padding:3px 10px;border-radius:6px;margin-right:12px;letter-spacing:1px;vertical-align:1px\">\u5173\u952e\u8bcd<\/span>\u5206\u5e03\u5f0f\u4e8b\u52a1\u30012PC\u3001TCC\u3001Saga\u3001\u5e42\u7b49\u3001\u6700\u7ec8\u4e00\u81f4\u6027\u3001CAP<\/div>\n<div style=\"background:#fafbfd;border:1px solid #e8edf5;border-radius:12px;padding:18px 22px;margin:0 0 30px\">\n<div style=\"font-size:13.5px;font-weight:700;color:#8a99ae;letter-spacing:2px;margin-bottom:12px\">\u76ee\u5f55<\/div>\n<ol style=\"margin:0;padding-left:20px\">\n<li style=\"margin:8px 0;font-size:15px;line-height:1.6\"><a href=\"#sec-1\" style=\"color:#42546e;text-decoration:none;border:none\">\u4e00\u3001\u5148\u95ee\u6e05\u695a\uff1a\u4e3a\u4ec0\u4e48\u8981\u5206\u5e03\u5f0f\u4e8b\u52a1<\/a><\/li>\n<li style=\"margin:8px 0;font-size:15px;line-height:1.6\"><a href=\"#sec-2\" style=\"color:#42546e;text-decoration:none;border:none\">\u4e8c\u3001\u65b9\u6848\u5bf9\u6bd4\uff1a\u56db\u9009\u4e00<\/a><\/li>\n<li style=\"margin:8px 0;font-size:15px;line-height:1.6\"><a href=\"#sec-3\" style=\"color:#42546e;text-decoration:none;border:none\">\u4e09\u3001\u8ffd\u95ee\u533a\uff1a\u8fd9\u91cc\u624d\u662f\u5206\u6c34\u5cad<\/a><\/li>\n<li style=\"margin:8px 0;font-size:15px;line-height:1.6\"><a href=\"#sec-4\" style=\"color:#42546e;text-decoration:none;border:none\">\u56db\u3001\u4e00\u4e2a\u5b8c\u6574\u7684\u7b54\u9898\u6846\u67b6<\/a><\/li>\n<li style=\"margin:8px 0;font-size:15px;line-height:1.6\"><a href=\"#sec-5\" style=\"color:#42546e;text-decoration:none;border:none\">\u4e94\u3001\u5c0f\u7ed3<\/a><\/li>\n<\/ol>\n<\/div>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\"><span style=\"font-size:17px;color:#1e2f47\">&#8220;\u5206\u5e03\u5f0f\u4e8b\u52a1\u600e\u4e48\u4fdd\u8bc1\u4e00\u81f4\u6027\uff1f&#8221;\u2014\u2014\u8fd9\u9053\u9898\u7684\u96be\u70b9\u4e0d\u5728\u4e8e\u8bf4\u51fa\u51e0\u79cd\u65b9\u6848\uff0c\u800c\u5728\u4e8e<strong style=\"color:#0f1c2e;font-weight:600\">\u80fd\u625b\u4f4f\u9762\u8bd5\u5b98\u4e00\u8fde\u4e32\u7684\u8ffd\u95ee<\/strong>\uff1a\u4f60\u7684\u65b9\u6848\u5728\u90e8\u5206\u5931\u8d25\u65f6\u600e\u4e48\u529e\uff1f\u8865\u507f\u5931\u8d25\u4e86\u600e\u4e48\u529e\uff1f\u600e\u4e48\u4fdd\u8bc1\u5e42\u7b49\uff1f<\/p>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">\u672c\u6587\u6309\u771f\u5b9e\u8ffd\u95ee\u94fe\u7ec4\u7ec7\uff0c12 \u4e2a\u95ee\u9898\u5c42\u5c42\u9012\u8fdb\uff0c\u8986\u76d6\u4ece\u7406\u8bba\u5230\u843d\u5730\u7684\u5b8c\u6574\u8def\u5f84\u3002<\/p>\n<h2 style=\"font-size:23px;line-height:1.45;font-weight:700;color:#0f1c2e;margin:46px 0 18px;padding:0 0 12px 14px;border-left:5px solid #e09a2b;border-bottom:1px solid #eef2f7;letter-spacing:.3px\" id=\"sec-1\">\u4e00\u3001\u5148\u95ee\u6e05\u695a\uff1a\u4e3a\u4ec0\u4e48\u8981\u5206\u5e03\u5f0f\u4e8b\u52a1<\/h2>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">Q1\uff1a\u4e3a\u4ec0\u4e48\u5355\u4f53\u4e8b\u52a1\uff08\u672c\u5730\u4e8b\u52a1\uff09\u4e0d\u80fd\u76f4\u63a5\u7528\u4e8e\u5fae\u670d\u52a1\uff1f<\/strong><br \/>\n\u672c\u5730\u4e8b\u52a1\u4f9d\u8d56\u5355\u4e2a\u6570\u636e\u5e93\u8fde\u63a5\u7684 ACID\u3002\u5fae\u670d\u52a1\u4e0b<strong style=\"color:#0f1c2e;font-weight:600\">\u6570\u636e\u5206\u6563\u5728\u4e0d\u540c\u5e93\u3001\u4e0d\u540c\u670d\u52a1<\/strong>\uff0c\u4e00\u6b21\u4e1a\u52a1\u64cd\u4f5c\u53ef\u80fd\u8981\u6539\u591a\u4e2a\u5e93\uff0c\u672c\u5730\u4e8b\u52a1\u7ba1\u4e0d\u5230\u522b\u4eba\u7684\u5e93\u3002<\/p>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">Q2\uff1aCAP \u5230\u5e95\u5728\u8bf4\u4ec0\u4e48\uff1f<\/strong><br \/>\n\u5728\u7f51\u7edc\u5206\u533a\uff08P\uff09\u4e0d\u53ef\u907f\u514d\u7684\u524d\u63d0\u4e0b\uff0c\u53ea\u80fd\u5728<strong style=\"color:#0f1c2e;font-weight:600\">\u4e00\u81f4\u6027\uff08C\uff09\u4e0e\u53ef\u7528\u6027\uff08A\uff09\u4e4b\u95f4\u53d6\u820d<\/strong>\u3002\u6ce8\u610f\u5e38\u89c1\u8bef\u533a\uff1aCAP \u4e0d\u662f&#8221;\u4e09\u9009\u4e8c&#8221;\u7684\u7b80\u5355\u5f00\u5173\uff0c\u800c\u662f\u5728<strong style=\"color:#0f1c2e;font-weight:600\">\u5206\u533a\u53d1\u751f\u65f6<\/strong>\u7684\u53d6\u820d\uff0c\u6b63\u5e38\u72b6\u6001\u4e0b\u7cfb\u7edf\u53ef\u4ee5\u540c\u65f6\u4fdd\u8bc1 CA\u3002<\/p>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">Q3\uff1aBASE \u7406\u8bba\u600e\u4e48\u7406\u89e3\uff1f<\/strong><br \/>\n\u57fa\u672c\u53ef\u7528\uff08Basically Available\uff09\u3001\u8f6f\u72b6\u6001\uff08Soft state\uff09\u3001\u6700\u7ec8\u4e00\u81f4\u6027\uff08Eventually consistent\uff09\u3002\u5b83\u7684\u5de5\u7a0b\u542b\u4e49\u662f\uff1a<strong style=\"color:#0f1c2e;font-weight:600\">\u63a5\u53d7\u77ed\u6682\u4e0d\u4e00\u81f4\uff0c\u7528\u8865\u507f\u4e0e\u5bf9\u8d26\u6362\u53d6\u53ef\u7528\u6027<\/strong>\u2014\u2014\u8fd9\u662f\u7edd\u5927\u591a\u6570\u4e92\u8054\u7f51\u4e1a\u52a1\u7684\u5b9e\u9645\u9009\u62e9\u3002<\/p>\n<h2 style=\"font-size:23px;line-height:1.45;font-weight:700;color:#0f1c2e;margin:46px 0 18px;padding:0 0 12px 14px;border-left:5px solid #e09a2b;border-bottom:1px solid #eef2f7;letter-spacing:.3px\" id=\"sec-2\">\u4e8c\u3001\u65b9\u6848\u5bf9\u6bd4\uff1a\u56db\u9009\u4e00<\/h2>\n<figure style=\"margin:30px 0;text-align:center\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"900\" src=\"https:\/\/www.ziliaochi.cn\/wp-content\/uploads\/2026\/09\/interview-distributed-transaction-fig-1.png\" alt=\"\u56db\u79cd\u5206\u5e03\u5f0f\u4e8b\u52a1\u65b9\u6848\u5bf9\u6bd4\" class=\"wp-image-154\" style=\"max-width:100%;height:auto;border-radius:12px;border:1px solid #e6ecf4;box-shadow:0 8px 24px rgba(15,30,60,.07)\" srcset=\"https:\/\/www.ziliaochi.cn\/wp-content\/uploads\/2026\/09\/interview-distributed-transaction-fig-1.png 1200w, https:\/\/www.ziliaochi.cn\/wp-content\/uploads\/2026\/09\/interview-distributed-transaction-fig-1-300x225.png 300w, https:\/\/www.ziliaochi.cn\/wp-content\/uploads\/2026\/09\/interview-distributed-transaction-fig-1-1024x768.png 1024w, https:\/\/www.ziliaochi.cn\/wp-content\/uploads\/2026\/09\/interview-distributed-transaction-fig-1-768x576.png 768w, https:\/\/www.ziliaochi.cn\/wp-content\/uploads\/2026\/09\/interview-distributed-transaction-fig-1-800x600.png 800w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><figcaption style=\"margin-top:12px;font-size:13.5px;color:#7b8aa0;text-align:center;line-height:1.75\">\u56db\u79cd\u5206\u5e03\u5f0f\u4e8b\u52a1\u65b9\u6848\u5bf9\u6bd4\uff1a\u4e00\u81f4\u6027\u4e0e\u4fb5\u5165\u6027\u3001\u6027\u80fd\u7684\u53d6\u820d<\/figcaption><\/figure>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">Q4\uff1a2PC\uff08\u4e24\u9636\u6bb5\u63d0\u4ea4\uff09\u6709\u4ec0\u4e48\u95ee\u9898\uff1f<\/strong><br \/>\n\u534f\u8c03\u8005\u6545\u969c\u4f1a\u5bfc\u81f4<strong style=\"color:#0f1c2e;font-weight:600\">\u53c2\u4e0e\u8005\u4e00\u76f4\u9501\u5b9a\u8d44\u6e90<\/strong>\uff08\u963b\u585e\uff09\uff1b\u7b2c\u4e8c\u9636\u6bb5\u534f\u8c03\u8005\u5b95\u673a\u53ef\u80fd\u51fa\u73b0<strong style=\"color:#0f1c2e;font-weight:600\">\u90e8\u5206\u63d0\u4ea4<\/strong>\u7684\u6570\u636e\u4e0d\u4e00\u81f4\u3002\u5b83\u7684\u4f18\u70b9\u662f<strong style=\"color:#0f1c2e;font-weight:600\">\u5f3a\u4e00\u81f4\u3001\u5b9e\u73b0\u7b80\u5355<\/strong>\uff08\u5982 XA \u4e8b\u52a1\uff09\uff0c\u7f3a\u70b9\u662f\u6027\u80fd\u5dee\u3001\u53ef\u7528\u6027\u4f4e\u3002<\/p>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">Q5\uff1aTCC \u662f\u4ec0\u4e48\uff1f\u548c 2PC \u7684\u533a\u522b\uff1f<\/strong><br \/>\nTCC \u662f<strong style=\"color:#0f1c2e;font-weight:600\">\u4e1a\u52a1\u5c42\u9762\u7684\u4e24\u9636\u6bb5<\/strong>\uff1aTry\uff08\u9884\u7559\u8d44\u6e90\uff09\u2192 Confirm\uff08\u786e\u8ba4\uff09\u6216 Cancel\uff08\u91ca\u653e\uff09\u3002\u533a\u522b\u5728\u4e8e\uff1a2PC \u5728\u6570\u636e\u5e93\u5c42\u9501\u8d44\u6e90\uff0cTCC \u5728<strong style=\"color:#0f1c2e;font-weight:600\">\u4e1a\u52a1\u5c42<\/strong>\u505a\u9884\u7559\uff0c\u9501\u7c92\u5ea6\u66f4\u7ec6\u3001\u6027\u80fd\u66f4\u597d\uff0c\u4f46<strong style=\"color:#0f1c2e;font-weight:600\">\u9700\u8981\u4e3a\u6bcf\u4e2a\u64cd\u4f5c\u5199\u4e09\u5957\u4ee3\u7801<\/strong>\uff0c\u4fb5\u5165\u6027\u6781\u5f3a\u3002<\/p>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">Q6\uff1aSaga \u6a21\u5f0f\u600e\u4e48\u5de5\u4f5c\uff1f<\/strong><br \/>\n\u628a\u957f\u4e8b\u52a1\u62c6\u6210\u4e00\u7cfb\u5217\u672c\u5730\u4e8b\u52a1\uff0c\u6bcf\u4e2a\u6b65\u9aa4\u90fd\u6709<strong style=\"color:#0f1c2e;font-weight:600\">\u5bf9\u5e94\u7684\u8865\u507f\u64cd\u4f5c<\/strong>\u3002\u4efb\u4e00\u5931\u8d25\u65f6\uff0c<strong style=\"color:#0f1c2e;font-weight:600\">\u53cd\u5411\u6267\u884c\u5df2\u5b8c\u6210\u6b65\u9aa4\u7684\u8865\u507f<\/strong>\u3002\u4f18\u70b9\u662f\u4e0d\u957f\u671f\u5360\u9501\u3001\u9002\u5408\u957f\u6d41\u7a0b\uff1b\u7f3a\u70b9\u662f<strong style=\"color:#0f1c2e;font-weight:600\">\u7f3a\u4e4f\u9694\u79bb\u6027<\/strong>\uff0c\u53ef\u80fd\u51fa\u73b0&#8221;\u810f\u8bfb&#8221;\uff08\u770b\u5230\u4e2d\u95f4\u72b6\u6001\uff09\u3002<\/p>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">Q7\uff1a\u672c\u5730\u6d88\u606f\u8868 \/ \u6d88\u606f\u961f\u5217\u4e8b\u52a1\u6d88\u606f\u600e\u4e48\u505a\uff1f<\/strong><br \/>\n\u6838\u5fc3\u662f<strong style=\"color:#0f1c2e;font-weight:600\">\u628a&#8221;\u4e1a\u52a1\u64cd\u4f5c&#8221;\u4e0e&#8221;\u6d88\u606f\u53d1\u9001&#8221;\u653e\u5728\u540c\u4e00\u4e2a\u672c\u5730\u4e8b\u52a1\u91cc<\/strong>\uff1a\u5148\u5199\u4e1a\u52a1\u6570\u636e + \u6d88\u606f\u8868\uff0c\u518d\u7531\u6295\u9012\u4efb\u52a1\u628a\u6d88\u606f\u53d1\u51fa\u53bb\uff0c\u6d88\u8d39\u65b9\u4fdd\u8bc1\u5e42\u7b49\u3002\u8fd9\u662f\u843d\u5730\u6210\u672c\u6700\u4f4e\u3001\u4f7f\u7528\u6700\u5e7f\u7684\u6700\u7ec8\u4e00\u81f4\u65b9\u6848\u3002<\/p>\n<pre style=\"background:#0f1a2b;color:#dbe6f5;border-radius:12px;padding:18px 20px;overflow-x:auto;font-size:13.6px;line-height:1.78;margin:22px 0;border:1px solid #1e2c42;font-family:\"JetBrains Mono\",Consolas,Monaco,\"Courier New\",monospace\"><code style=\"background:none;border:none;color:inherit;padding:0;font-size:inherit;font-family:inherit\">-- \u540c\u4e00\u4e2a\u672c\u5730\u4e8b\u52a1\u91cc\u5199\u4e1a\u52a1\u6570\u636e\u4e0e\u6d88\u606f\u8bb0\u5f55\nBEGIN;\nUPDATE account SET balance = balance - 100 WHERE id = 1;\nINSERT INTO local_message(id, topic, payload, state)\nVALUES (uuid(), \"topic-transfer\", '{\"from\":1,\"to\":2,\"amt\":100}', \"INIT\");\nCOMMIT;\n\n-- \u5f02\u6b65\u6295\u9012\u4efb\u52a1\uff1a\u53ea\u6295\u9012 INIT \u72b6\u6001\u4e14\u8fbe\u5230\u91cd\u8bd5\u95f4\u9694\u7684\u6d88\u606f\nSELECT id, payload FROM local_message\n WHERE state = \"INIT\" AND next_retry &lt;= now()\n LIMIT 100 FOR UPDATE SKIP LOCKED;  -- \u591a\u5b9e\u4f8b\u9632\u91cd\u590d\u6295\u9012\n-- \u6295\u9012\u6210\u529f\u7f6e SENT\uff0c\u5931\u8d25\u7d2f\u52a0 retry_count \u5e76\u6309\u9000\u907f\u63a8\u540e next_retry<\/code><\/pre>\n<figure class=\"wp-block-table\">\n<table style=\"width:100%;border-collapse:collapse;margin:24px 0;font-size:15px;border:1px solid #e3eaf3;border-radius:10px;overflow:hidden\">\n<thead>\n<tr>\n<th style=\"background:#f2f6fb;color:#12233a;font-weight:700;padding:12px 14px;text-align:left;border-bottom:1px solid #e3eaf3;font-size:15px\">\u65b9\u6848<\/th>\n<th style=\"background:#f2f6fb;color:#12233a;font-weight:700;padding:12px 14px;text-align:left;border-bottom:1px solid #e3eaf3;font-size:15px\">\u4e00\u81f4\u6027<\/th>\n<th style=\"background:#f2f6fb;color:#12233a;font-weight:700;padding:12px 14px;text-align:left;border-bottom:1px solid #e3eaf3;font-size:15px\">\u4fb5\u5165\u6027<\/th>\n<th style=\"background:#f2f6fb;color:#12233a;font-weight:700;padding:12px 14px;text-align:left;border-bottom:1px solid #e3eaf3;font-size:15px\">\u6027\u80fd<\/th>\n<th style=\"background:#f2f6fb;color:#12233a;font-weight:700;padding:12px 14px;text-align:left;border-bottom:1px solid #e3eaf3;font-size:15px\">\u5178\u578b\u573a\u666f<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:12px 14px;border-bottom:1px solid #eff4fa;color:#3a4a63;line-height:1.75\">2PC \/ XA<\/td>\n<td style=\"padding:12px 14px;border-bottom:1px solid #eff4fa;color:#3a4a63;line-height:1.75\">\u5f3a\u4e00\u81f4<\/td>\n<td style=\"padding:12px 14px;border-bottom:1px solid #eff4fa;color:#3a4a63;line-height:1.75\">\u4f4e\uff08\u4e2d\u95f4\u4ef6\u505a\uff09<\/td>\n<td style=\"padding:12px 14px;border-bottom:1px solid #eff4fa;color:#3a4a63;line-height:1.75\">\u5dee<\/td>\n<td style=\"padding:12px 14px;border-bottom:1px solid #eff4fa;color:#3a4a63;line-height:1.75\">\u91d1\u878d\u6838\u5fc3\u3001\u77ed\u4e8b\u52a1<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 14px;border-bottom:1px solid #eff4fa;color:#3a4a63;line-height:1.75\">TCC<\/td>\n<td style=\"padding:12px 14px;border-bottom:1px solid #eff4fa;color:#3a4a63;line-height:1.75\">\u6700\u7ec8\u4e00\u81f4<\/td>\n<td style=\"padding:12px 14px;border-bottom:1px solid #eff4fa;color:#3a4a63;line-height:1.75\">\u9ad8\uff08\u5199\u4e09\u4e2a\u65b9\u6cd5\uff09<\/td>\n<td style=\"padding:12px 14px;border-bottom:1px solid #eff4fa;color:#3a4a63;line-height:1.75\">\u8f83\u597d<\/td>\n<td style=\"padding:12px 14px;border-bottom:1px solid #eff4fa;color:#3a4a63;line-height:1.75\">\u652f\u4ed8\u3001\u4ea4\u6613\u6838\u5fc3\u94fe\u8def<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 14px;border-bottom:1px solid #eff4fa;color:#3a4a63;line-height:1.75\">Saga<\/td>\n<td style=\"padding:12px 14px;border-bottom:1px solid #eff4fa;color:#3a4a63;line-height:1.75\">\u6700\u7ec8\u4e00\u81f4<\/td>\n<td style=\"padding:12px 14px;border-bottom:1px solid #eff4fa;color:#3a4a63;line-height:1.75\">\u4e2d\uff08\u5199\u8865\u507f\uff09<\/td>\n<td style=\"padding:12px 14px;border-bottom:1px solid #eff4fa;color:#3a4a63;line-height:1.75\">\u597d<\/td>\n<td style=\"padding:12px 14px;border-bottom:1px solid #eff4fa;color:#3a4a63;line-height:1.75\">\u957f\u6d41\u7a0b\u3001\u8de8\u591a\u670d\u52a1<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:12px 14px;border-bottom:1px solid #eff4fa;color:#3a4a63;line-height:1.75\">\u4e8b\u52a1\u6d88\u606f<\/td>\n<td style=\"padding:12px 14px;border-bottom:1px solid #eff4fa;color:#3a4a63;line-height:1.75\">\u6700\u7ec8\u4e00\u81f4<\/td>\n<td style=\"padding:12px 14px;border-bottom:1px solid #eff4fa;color:#3a4a63;line-height:1.75\">\u4f4e<\/td>\n<td style=\"padding:12px 14px;border-bottom:1px solid #eff4fa;color:#3a4a63;line-height:1.75\">\u597d<\/td>\n<td style=\"padding:12px 14px;border-bottom:1px solid #eff4fa;color:#3a4a63;line-height:1.75\">\u5927\u591a\u6570\u4e1a\u52a1\u573a\u666f<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<h2 style=\"font-size:23px;line-height:1.45;font-weight:700;color:#0f1c2e;margin:46px 0 18px;padding:0 0 12px 14px;border-left:5px solid #e09a2b;border-bottom:1px solid #eef2f7;letter-spacing:.3px\" id=\"sec-3\">\u4e09\u3001\u8ffd\u95ee\u533a\uff1a\u8fd9\u91cc\u624d\u662f\u5206\u6c34\u5cad<\/h2>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">Q8\uff1a\u8865\u507f\u5931\u8d25\u4e86\u600e\u4e48\u529e\uff1f<\/strong><br \/>\n\u4e09\u5c42\u9632\u7ebf\uff1a<strong style=\"color:#0f1c2e;font-weight:600\">\u2460 \u8865\u507f\u64cd\u4f5c\u5fc5\u987b\u53ef\u91cd\u8bd5\uff08\u5e42\u7b49\uff09\uff1b\u2461 \u91cd\u8bd5\u8981\u6709\u6700\u5927\u6b21\u6570\u4e0e\u9000\u907f\u7b56\u7565\uff1b\u2462 \u8d85\u8fc7\u9608\u503c\u8fdb\u5165\u4eba\u5de5\u5e72\u9884\u961f\u5217\u5e76\u544a\u8b66<\/strong>\u3002\u4efb\u4f55\u5206\u5e03\u5f0f\u4e8b\u52a1\u65b9\u6848\u90fd\u5fc5\u987b\u8bbe\u8ba1&#8221;\u6700\u7ec8\u515c\u5e95&#8221;\uff0c\u5426\u5219\u5c31\u662f\u5b9a\u65f6\u70b8\u5f39\u3002<\/p>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">Q9\uff1a\u600e\u4e48\u4fdd\u8bc1\u5e42\u7b49\uff1f<\/strong><br \/>\n\u5e38\u89c1\u56db\u79cd\u624b\u6bb5\uff1a<\/p>\n<ul style=\"padding-left:26px;margin:16px 0\">\n<li style=\"font-size:16.2px;line-height:1.92;color:#35435c;margin:10px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">\u552f\u4e00\u952e\/\u552f\u4e00\u7d22\u5f15<\/strong>\uff1a\u6570\u636e\u5e93\u5c42\u515c\u5e95\uff0c\u6700\u53ef\u9760\uff1b<\/li>\n<li style=\"font-size:16.2px;line-height:1.92;color:#35435c;margin:10px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">\u53bb\u91cd\u8868<\/strong>\uff1a\u7528\u4e1a\u52a1\u552f\u4e00 ID \u8bb0\u5f55\u5df2\u5904\u7406\u7684\u8bf7\u6c42\uff1b<\/li>\n<li style=\"font-size:16.2px;line-height:1.92;color:#35435c;margin:10px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">\u72b6\u6001\u673a<\/strong>\uff1a\u53ea\u5141\u8bb8\u7279\u5b9a\u72b6\u6001\u8fc1\u79fb\uff08\u5982&#8221;\u5f85\u652f\u4ed8 \u2192 \u5df2\u652f\u4ed8&#8221;\uff09\uff0c\u91cd\u590d\u8bf7\u6c42\u56e0\u72b6\u6001\u4e0d\u7b26\u88ab\u62d2\u7edd\uff1b<\/li>\n<li style=\"font-size:16.2px;line-height:1.92;color:#35435c;margin:10px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">Token \u673a\u5236<\/strong>\uff1a\u524d\u7f6e\u7533\u8bf7\u4e00\u6b21\u6027\u4ee4\u724c\uff0c\u670d\u52a1\u7aef\u6821\u9a8c\u540e\u5220\u9664\u3002<\/li>\n<\/ul>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">Q10\uff1a\u6d88\u606f\u4f1a\u4e22\u5931\u5417\uff1f\u600e\u4e48\u4fdd\u8bc1\u4e0d\u4e22\uff1f<\/strong><br \/>\n\u4e09\u4e2a\u73af\u8282\u90fd\u8981\u9632\uff1a<br \/>\n<strong style=\"color:#0f1c2e;font-weight:600\">\u751f\u4ea7\u7aef<\/strong>\u2014\u2014\u4e8b\u52a1\u6d88\u606f\u6216\u672c\u5730\u6d88\u606f\u8868 + \u786e\u8ba4\u673a\u5236\uff1b<br \/>\n<strong style=\"color:#0f1c2e;font-weight:600\"> broker \u7aef<\/strong>\u2014\u2014\u6301\u4e45\u5316 + \u591a\u526f\u672c\uff1b<br \/>\n<strong style=\"color:#0f1c2e;font-weight:600\">\u6d88\u8d39\u7aef<\/strong>\u2014\u2014<strong style=\"color:#0f1c2e;font-weight:600\">\u5148\u6267\u884c\u4e1a\u52a1\u518d\u63d0\u4ea4\u4f4d\u70b9<\/strong>\uff08\u6ce8\u610f\u8fd9\u6837\u4f1a\u4ea7\u751f\u91cd\u590d\u6d88\u8d39\uff0c\u6240\u4ee5\u5e42\u7b49\u662f\u5fc5\u987b\u7684\uff09\u3002<\/p>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">Q11\uff1a\u600e\u4e48\u4fdd\u8bc1\u6d88\u606f\u987a\u5e8f\uff1f<\/strong><br \/>\n\u53ea\u5728<strong style=\"color:#0f1c2e;font-weight:600\">\u9700\u8981\u4fdd\u8bc1\u987a\u5e8f\u7684\u4e1a\u52a1\u952e\u4e0a\u8def\u7531\u5230\u540c\u4e00\u5206\u533a<\/strong>\uff08\u5982\u540c\u4e00\u8ba2\u5355 ID \u7684\u6d88\u606f\u8fdb\u540c\u4e00\u5206\u533a\uff09\uff0c\u540c\u65f6\u6d88\u8d39\u7aef<strong style=\"color:#0f1c2e;font-weight:600\">\u4e32\u884c\u5904\u7406\u8be5\u5206\u533a<\/strong>\u3002\u5168\u5c40\u6709\u5e8f\u4ee3\u4ef7\u6781\u9ad8\uff0c\u4e1a\u52a1\u4e0a\u51e0\u4e4e\u4e0d\u9700\u8981\u3002<\/p>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">Q12\uff1a\u6700\u7ec8\u4e00\u81f4\u600e\u4e48\u9a8c\u8bc1\u4e00\u81f4\u6027\u6ca1\u88ab\u7834\u574f\uff1f<\/strong><br \/>\n<strong style=\"color:#0f1c2e;font-weight:600\">\u5bf9\u8d26\u662f\u6700\u540e\u4e00\u9053\u9632\u7ebf<\/strong>\uff1a\u5b9a\u65f6\u6bd4\u5bf9\u4e0a\u4e0b\u6e38\u6570\u636e\uff08\u5982\u8ba2\u5355\u4e0e\u8d26\u5355\uff09\uff0c\u53d1\u73b0\u5dee\u5f02\u81ea\u52a8\u4fee\u590d\u6216\u544a\u8b66\u3002\u540c\u65f6\u5efa\u7acb<strong style=\"color:#0f1c2e;font-weight:600\">\u4e00\u81f4\u6027\u76d1\u63a7\u6307\u6807<\/strong>\uff08\u5982\u60ac\u505c\u4e8b\u52a1\u6570\u91cf\u3001\u8865\u507f\u5931\u8d25\u7387\uff09\uff0c\u7eb3\u5165\u544a\u8b66\u3002<\/p>\n<blockquote style=\"margin:24px 0;padding:16px 22px;background:#f7fafd;border-left:4px solid #e09a2b;border-radius:0 10px 10px 0;color:#4a5b73;font-size:15.6px;line-height:1.88\">\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">\u52a0\u5206\u7b54\u6cd5\uff1a<\/strong>\u4e3b\u52a8\u8bf4\u51fa&#8221;\u6211\u4eec\u4f18\u5148\u7528<strong style=\"color:#0f1c2e;font-weight:600\">\u4e8b\u52a1\u6d88\u606f + \u5e42\u7b49 + \u5bf9\u8d26<\/strong>\u8fd9\u5957\u7ec4\u5408\uff0c\u53ea\u6709\u5728\u8d44\u91d1\u6838\u5fc3\u94fe\u8def\u624d\u4e0a TCC&#8221;\u3002\u8fd9\u8bf4\u660e\u4f60\u5728\u6743\u8861\uff0c\u800c\u4e0d\u662f\u5806\u780c\u540d\u8bcd\u3002<\/p>\n<\/blockquote>\n<h2 style=\"font-size:23px;line-height:1.45;font-weight:700;color:#0f1c2e;margin:46px 0 18px;padding:0 0 12px 14px;border-left:5px solid #e09a2b;border-bottom:1px solid #eef2f7;letter-spacing:.3px\" id=\"sec-4\">\u56db\u3001\u4e00\u4e2a\u5b8c\u6574\u7684\u7b54\u9898\u6846\u67b6<\/h2>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">\u88ab\u95ee\u5230&#8221;\u5982\u4f55\u8bbe\u8ba1 X \u573a\u666f\u7684\u4e8b\u52a1&#8221;\u65f6\uff0c\u6309\u8fd9\u4e2a\u987a\u5e8f\u7b54\uff1a<\/p>\n<ol style=\"padding-left:26px;margin:16px 0\">\n<li style=\"font-size:16.2px;line-height:1.92;color:#35435c;margin:10px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">\u5148\u786e\u8ba4\u4e00\u81f4\u6027\u8981\u6c42<\/strong>\uff1a\u662f\u5426\u5fc5\u987b\u5f3a\u4e00\u81f4\uff1f\u80fd\u5426\u63a5\u53d7\u79d2\u7ea7\/\u5206\u949f\u7ea7\u5ef6\u8fdf\uff1f\u8fd9\u4e00\u6b65\u51b3\u5b9a\u65b9\u6848\u533a\u95f4\uff1b<\/li>\n<li style=\"font-size:16.2px;line-height:1.92;color:#35435c;margin:10px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">\u7ed9\u51fa\u65b9\u6848\u53ca\u7406\u7531<\/strong>\uff1a\u8bf4\u660e\u4e3a\u4ec0\u4e48\u9009\u5b83\u3001\u653e\u5f03\u4e86\u4ec0\u4e48\uff1b<\/li>\n<li style=\"font-size:16.2px;line-height:1.92;color:#35435c;margin:10px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">\u8bf4\u660e\u5931\u8d25\u5904\u7406<\/strong>\uff1a\u91cd\u8bd5\u3001\u5e42\u7b49\u3001\u8865\u507f\u3001\u515c\u5e95\uff1b<\/li>\n<li style=\"font-size:16.2px;line-height:1.92;color:#35435c;margin:10px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">\u8865\u5145\u9a8c\u8bc1\u673a\u5236<\/strong>\uff1a\u5bf9\u8d26\u4e0e\u76d1\u63a7\u6307\u6807\uff1b<\/li>\n<li style=\"font-size:16.2px;line-height:1.92;color:#35435c;margin:10px 0;letter-spacing:.2px\"><strong style=\"color:#0f1c2e;font-weight:600\">\u63d0\u4e00\u53e5\u964d\u7ea7<\/strong>\uff1a\u6781\u7aef\u60c5\u51b5\u4e0b\u80fd\u5426\u8d70\u4eba\u5de5\u6d41\u7a0b\u3002<\/li>\n<\/ol>\n<h2 style=\"font-size:23px;line-height:1.45;font-weight:700;color:#0f1c2e;margin:46px 0 18px;padding:0 0 12px 14px;border-left:5px solid #e09a2b;border-bottom:1px solid #eef2f7;letter-spacing:.3px\" id=\"sec-5\">\u4e94\u3001\u5c0f\u7ed3<\/h2>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">\u5206\u5e03\u5f0f\u4e8b\u52a1\u6ca1\u6709\u94f6\u5f39\uff0c\u53ea\u6709<strong style=\"color:#0f1c2e;font-weight:600\">\u6743\u8861<\/strong>\u3002\u9762\u8bd5\u4e2d\u771f\u6b63\u62c9\u5f00\u5dee\u8ddd\u7684\uff0c\u4e0d\u662f\u77e5\u9053\u591a\u5c11\u79cd\u534f\u8bae\uff0c\u800c\u662f\u80fd\u5426\u8bf4\u6e05&#8221;<strong style=\"color:#0f1c2e;font-weight:600\">\u4e3a\u4ec0\u4e48\u5728\u8fd9\u4e2a\u573a\u666f\u9009\u8fd9\u4e2a\u65b9\u6848\uff0c\u4ee5\u53ca\u5b83\u5931\u8d25\u65f6\u4f1a\u600e\u6837<\/strong>&#8220;\u3002<\/p>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">\u8bb0\u4f4f\u4e00\u53e5\u8bdd\uff1a<strong style=\"color:#0f1c2e;font-weight:600\">\u80fd\u7528\u6700\u7ec8\u4e00\u81f4\u89e3\u51b3\u7684\uff0c\u522b\u4e0a\u5f3a\u4e00\u81f4\uff1b\u5fc5\u987b\u5f3a\u4e00\u81f4\u7684\uff0c\u628a\u8303\u56f4\u7f29\u5230\u6700\u5c0f\u3002<\/strong><\/p>\n<hr style=\"border:none;border-top:1px solid #eaeef4;margin:34px 0\">\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\"><em style=\"color:#5a6b85;font-style:normal;background:#e09a2b1f;padding:1px 4px;border-radius:4px\">\u5ef6\u4f38\u9605\u8bfb\uff1a<a href=\"https:\/\/microservices.io\/patterns\/data\/saga.html\" target=\"_blank\" rel=\"noopener\" style=\"color:#e09a2b;text-decoration:none;border-bottom:1px solid #e09a2b66;transition:opacity .15s\"> microservices.io \u00b7 Saga \u6a21\u5f0f<\/a>\u3002\u65b9\u6848\u5b9e\u73b0\u7ec6\u8282\u8bf7\u4ee5\u6240\u4f7f\u7528\u7684\u6d88\u606f\u961f\u5217\u4e0e\u6846\u67b6\u5b98\u65b9\u6587\u6863\u4e3a\u51c6\u3002<\/em><\/p>\n<div style=\"margin:42px 0 0;padding:22px 0 0;border-top:1px solid #eaeef4\">\n<div style=\"font-size:13px;color:#93a1b5;letter-spacing:1px;margin-bottom:12px\">\u6807\u7b7e<\/div>\n<p><span style=\"display:inline-block;background:#f3f6fa;border:1px solid #e4eaf2;color:#5b6c85;font-size:13px;padding:5px 12px;border-radius:999px;margin:0 8px 8px 0\">#\u5206\u5e03\u5f0f<\/span><span style=\"display:inline-block;background:#f3f6fa;border:1px solid #e4eaf2;color:#5b6c85;font-size:13px;padding:5px 12px;border-radius:999px;margin:0 8px 8px 0\">#\u540e\u7aef\u9762\u8bd5\u9898<\/span><span style=\"display:inline-block;background:#f3f6fa;border:1px solid #e4eaf2;color:#5b6c85;font-size:13px;padding:5px 12px;border-radius:999px;margin:0 8px 8px 0\">#\u4e8b\u52a1<\/span><span style=\"display:inline-block;background:#f3f6fa;border:1px solid #e4eaf2;color:#5b6c85;font-size:13px;padding:5px 12px;border-radius:999px;margin:0 8px 8px 0\">#\u9762\u8bd5<\/span><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u5206\u5e03\u5f0f\u4e8b\u52a1\u9762\u8bd5\u7684 12 \u4e2a\u8ffd\u95ee\uff1aCAP \u4e0e BASE\u30012PC\/TCC\/Saga\/\u4e8b\u52a1\u6d88\u606f\u56db\u65b9\u6848\u5bf9\u6bd4\uff0c\u4ee5\u53ca\u8865\u507f\u5931\u8d25\u3001\u5e42\u7b49\u8bbe\u8ba1\u3001\u6d88\u606f\u4e0d\u4e22\u3001\u987a\u5e8f\u4fdd\u8bc1\u4e0e\u5bf9\u8d26\u9a8c\u8bc1\u7b49\u5206\u6c34\u5cad\u95ee\u9898\u3002<\/p>\n","protected":false},"author":1,"featured_media":153,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,11],"tags":[70,68,69,66],"class_list":["post-89","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-backend-question-bank","category-question-bank","tag-70","tag-68","tag-69","tag-66"],"_links":{"self":[{"href":"https:\/\/www.ziliaochi.cn\/index.php\/wp-json\/wp\/v2\/posts\/89","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ziliaochi.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ziliaochi.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ziliaochi.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ziliaochi.cn\/index.php\/wp-json\/wp\/v2\/comments?post=89"}],"version-history":[{"count":2,"href":"https:\/\/www.ziliaochi.cn\/index.php\/wp-json\/wp\/v2\/posts\/89\/revisions"}],"predecessor-version":[{"id":329,"href":"https:\/\/www.ziliaochi.cn\/index.php\/wp-json\/wp\/v2\/posts\/89\/revisions\/329"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ziliaochi.cn\/index.php\/wp-json\/wp\/v2\/media\/153"}],"wp:attachment":[{"href":"https:\/\/www.ziliaochi.cn\/index.php\/wp-json\/wp\/v2\/media?parent=89"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ziliaochi.cn\/index.php\/wp-json\/wp\/v2\/categories?post=89"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ziliaochi.cn\/index.php\/wp-json\/wp\/v2\/tags?post=89"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}