{"id":205,"date":"2026-09-06T00:41:24","date_gmt":"2026-09-05T16:41:24","guid":{"rendered":"https:\/\/www.ziliaochi.cn\/index.php\/2026\/09\/06\/message-queue-selection-2026\/"},"modified":"2026-09-06T01:30:19","modified_gmt":"2026-09-05T17:30:19","slug":"message-queue-selection-2026","status":"publish","type":"post","link":"https:\/\/www.ziliaochi.cn\/index.php\/2026\/09\/06\/message-queue-selection-2026\/","title":{"rendered":"\u6d88\u606f\u961f\u5217\u600e\u4e48\u9009\uff1a\u56db\u79cd\u67b6\u6784\u8303\u5f0f\u7684\u6839\u672c\u5dee\u5f02\u4e0e\u4e00\u68f5\u51b3\u7b56\u6811"},"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 #d97b29;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:#d97b29;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>\u6d88\u606f\u961f\u5217\u9009\u578b\u3001Kafka\u3001RocketMQ\u3001Pulsar\u3001Redis Streams\u3001\u67b6\u6784\u8bbe\u8ba1<\/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\u7248\u672c\u5750\u6807<\/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\u5148\u5206\u6e05\u4e24\u7c7b\u6839\u672c\u4e0d\u540c\u7684\u67b6\u6784<\/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\u51b3\u7b56\u6811\uff1a\u6309\u8fd9\u56db\u4e2a\u95ee\u9898\u4f9d\u6b21\u6392\u9664<\/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\u56db\u4e2a\u9ad8\u9891\u8e29\u5751\u70b9<\/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\u4e00\u5f20\u8868\u603b\u7ed3<\/a><\/li>\n<li style=\"margin:8px 0;font-size:15px;line-height:1.6\"><a href=\"#sec-6\" style=\"color:#42546e;text-decoration:none;border:none\">\u516d\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;\u6211\u4eec\u8be5\u7528\u54ea\u4e2a MQ\uff1f&#8221;\u8fd9\u4e2a\u95ee\u9898\u5728 2026 \u5e74\u5e76\u6ca1\u6709\u53d8\u5f97\u66f4\u5bb9\u6613\u2014\u2014\u56e0\u4e3a\u53ef\u9009\u65b9\u6848\u53d8\u591a\u4e86\uff0c\u800c\u5b83\u4eec\u7684<strong style=\"color:#0f1c2e;font-weight:600\">\u67b6\u6784\u5dee\u5f02\u662f\u6839\u672c\u6027\u7684\uff0c\u4e0d\u662f\u53c2\u6570\u8c03\u4f18\u80fd\u62b9\u5e73\u7684<\/strong>\u3002<\/p>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">\u672c\u6587\u4e0d\u6253\u7b97\u7ed9\u51fa&#8221;XX \u6700\u597d&#8221;\u7684\u7ed3\u8bba\uff0c\u800c\u662f\u628a\u56db\u4e2a\u4e3b\u6d41\u65b9\u6848\u7684\u5e95\u5c42\u53d6\u820d\u8bb2\u6e05\u695a\uff0c\u518d\u7ed9\u4e00\u68f5\u53ef\u4ee5\u76f4\u63a5\u7528\u7684\u51b3\u7b56\u6811\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 #d97b29;border-bottom:1px solid #eef2f7;letter-spacing:.3px\" id=\"sec-1\">\u4e00\u3001\u7248\u672c\u5750\u6807<\/h2>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">\u622a\u81f3 2026 \u5e74 9 \u6708\uff0c\u4ece Maven Central \u5143\u6570\u636e\u6838\u5bf9\u5230\u7684\u6b63\u5f0f\u7248\u672c\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\">Apache Kafka<\/strong>\uff1a<code style=\"background:#eef4fb;color:#0b6bcb;padding:2px 7px;border-radius:5px;font-size:14px;font-family:\"JetBrains Mono\",Consolas,Monaco,\"Courier New\",monospace;border:1px solid #dce8f6;white-space:nowrap\">kafka-clients 4.3.1<\/code>\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\">Apache Pulsar<\/strong>\uff1a<code style=\"background:#eef4fb;color:#0b6bcb;padding:2px 7px;border-radius:5px;font-size:14px;font-family:\"JetBrains Mono\",Consolas,Monaco,\"Courier New\",monospace;border:1px solid #dce8f6;white-space:nowrap\">pulsar-client 4.2.4<\/code>\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\">Apache RocketMQ<\/strong>\uff1a<code style=\"background:#eef4fb;color:#0b6bcb;padding:2px 7px;border-radius:5px;font-size:14px;font-family:\"JetBrains Mono\",Consolas,Monaco,\"Courier New\",monospace;border:1px solid #dce8f6;white-space:nowrap\">rocketmq-client-java 5.2.2<\/code>\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\">Redis<\/strong>\uff08Streams\uff09\uff1a\u670d\u52a1\u7aef\u6700\u65b0\u7a33\u5b9a\u4e3a <code style=\"background:#eef4fb;color:#0b6bcb;padding:2px 7px;border-radius:5px;font-size:14px;font-family:\"JetBrains Mono\",Consolas,Monaco,\"Courier New\",monospace;border:1px solid #dce8f6;white-space:nowrap\">8.10.1<\/code>\u3002<\/li>\n<\/ul>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">\u6ce8\u610f\u5ba2\u6237\u7aef\u7248\u672c\u548c\u670d\u52a1\u7aef\u7248\u672c\u662f\u4e24\u56de\u4e8b\uff0c<strong style=\"color:#0f1c2e;font-weight:600\">\u8de8\u5927\u7248\u672c\u7684\u5ba2\u6237\u7aef\/\u670d\u52a1\u7aef\u6df7\u7528\u8981\u67e5\u517c\u5bb9\u77e9\u9635<\/strong>\uff0c\u522b\u53ea\u770b\u5ba2\u6237\u7aef\u7248\u672c\u53f7\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 #d97b29;border-bottom:1px solid #eef2f7;letter-spacing:.3px\" id=\"sec-2\">\u4e8c\u3001\u5148\u5206\u6e05\u4e24\u7c7b\u6839\u672c\u4e0d\u540c\u7684\u67b6\u6784<\/h2>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">\u5f88\u591a\u4eba\u628a MQ \u9009\u578b\u7406\u89e3\u6210&#8221;\u6bd4\u541e\u5410\u91cf&#8221;\uff0c\u8fd9\u662f\u4e2a\u8bef\u533a\u3002\u771f\u6b63\u7684\u5206\u6c34\u5cad\u5728\u7b2c\u4e00\u5c42\uff1a<\/p>\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\/message-queue-selection-2026-fig.png\" alt=\"MQ \u9009\u578b\u51b3\u7b56\u6811\" class=\"wp-image-204\" 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\/message-queue-selection-2026-fig.png 1200w, https:\/\/www.ziliaochi.cn\/wp-content\/uploads\/2026\/09\/message-queue-selection-2026-fig-300x225.png 300w, https:\/\/www.ziliaochi.cn\/wp-content\/uploads\/2026\/09\/message-queue-selection-2026-fig-1024x768.png 1024w, https:\/\/www.ziliaochi.cn\/wp-content\/uploads\/2026\/09\/message-queue-selection-2026-fig-768x576.png 768w, https:\/\/www.ziliaochi.cn\/wp-content\/uploads\/2026\/09\/message-queue-selection-2026-fig-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\">\u6d88\u606f\u961f\u5217\u51b3\u7b56\u6811\uff1a\u91cd\u653e \u2192 \u9ad8\u7ea7\u7279\u6027 \u2192 \u8fd0\u7ef4\u4eba\u529b \u2192 \u771f\u5b9e\u541e\u5410<\/figcaption><\/figure>\n<h3 style=\"font-size:18.5px;line-height:1.55;font-weight:700;color:#18283e;margin:30px 0 12px;padding-left:12px;border-left:3px solid #d97b2940\">1. \u65e5\u5fd7\u578b\uff08Kafka \u4e3a\u4ee3\u8868\uff09<\/h3>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">\u672c\u8d28\u662f<strong style=\"color:#0f1c2e;font-weight:600\">append-only \u7684\u5206\u5e03\u5f0f\u65e5\u5fd7<\/strong>\u3002\u6d88\u606f\u5199\u5165\u540e\u6309\u504f\u79fb\u91cf\u987a\u5e8f\u5806\u79ef\uff0c\u6d88\u8d39\u7aef\u81ea\u5df1\u7ef4\u62a4\u8bfb\u5230\u54ea\u513f\u3002\u8fd9\u4e2a\u8bbe\u8ba1\u5e26\u6765\u4e09\u4e2a\u76f4\u63a5\u540e\u679c\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\">\u6d88\u606f\u53ef\u91cd\u653e<\/strong>\uff1a\u51fa\u95ee\u9898\u53ef\u4ee5\u56de\u5230\u4efb\u610f\u504f\u79fb\u91cf\u91cd\u8dd1\uff0c\u8fd9\u662f\u6d41\u5f0f\u5904\u7406\u548c\u4e8b\u4ef6\u6eaf\u6e90\u7684\u57fa\u77f3\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\">\u591a\u6d88\u8d39\u8005\u4e92\u4e0d\u5f71\u54cd<\/strong>\uff1a\u4e0d\u540c\u6d88\u8d39\u7ec4\u5404\u8bfb\u5404\u7684\uff0c\u65b0\u589e\u4e00\u4e2a\u6d88\u8d39\u8005\u4e0d\u4f1a\u5f71\u54cd\u5df2\u6709\u7684\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\">\u541e\u5410\u91cf\u6781\u9ad8<\/strong>\uff1a\u987a\u5e8f\u5199\u76d8 + \u96f6\u62f7\u8d1d\uff0c\u786c\u4ef6\u80fd\u8dd1\u591a\u5feb\u5b83\u5c31\u80fd\u63a5\u8fd1\u591a\u5feb\u3002<\/li>\n<\/ul>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">\u4ee3\u4ef7\u662f\uff1a<strong style=\"color:#0f1c2e;font-weight:600\">\u5355\u6761\u6d88\u606f\u7684\u786e\u8ba4\u3001\u91cd\u8bd5\u3001\u5ef6\u8fdf\u6295\u9012\u8fd9\u4e9b&#8221;\u4e1a\u52a1\u53cb\u597d&#8221;\u7684\u80fd\u529b\uff0c\u90fd\u8981\u81ea\u5df1\u5728\u5e94\u7528\u5c42\u642d<\/strong>\u3002<\/p>\n<h3 style=\"font-size:18.5px;line-height:1.55;font-weight:700;color:#18283e;margin:30px 0 12px;padding-left:12px;border-left:3px solid #d97b2940\">2. \u961f\u5217\u578b\uff08RocketMQ\u3001RabbitMQ \u4e3a\u4ee3\u8868\uff09<\/h3>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">\u672c\u8d28\u662f<strong style=\"color:#0f1c2e;font-weight:600\">\u5e26\u72b6\u6001\u7684\u6d88\u606f\u670d\u52a1<\/strong>\u3002\u670d\u52a1\u7aef\u7ef4\u62a4\u6bcf\u6761\u6d88\u606f\u7684\u72b6\u6001\uff08\u5df2\u53d1\u9001\/\u5df2\u6d88\u8d39\/\u9700\u91cd\u8bd5\uff09\uff0c\u63d0\u4f9b\u5ef6\u8fdf\u6d88\u606f\u3001\u4e8b\u52a1\u6d88\u606f\u3001\u6d88\u8d39\u91cd\u8bd5\u3001\u6b7b\u4fe1\u961f\u5217\u8fd9\u4e9b\u5f00\u7bb1\u5373\u7528\u7684\u8bed\u4e49\u3002<\/p>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">\u4ee3\u4ef7\u662f\uff1a<strong style=\"color:#0f1c2e;font-weight:600\">\u670d\u52a1\u7aef\u8981\u7ef4\u62a4\u72b6\u6001\uff0c\u6a2a\u5411\u6269\u5c55\u548c\u91cd\u653e\u80fd\u529b\u5c31\u4e0d\u5982\u7eaf\u65e5\u5fd7\u578b\u7075\u6d3b<\/strong>\uff0c\u91cd\u653e\u4e00\u6761\u5386\u53f2\u6d88\u606f\u901a\u5e38\u6ca1\u90a3\u4e48\u987a\u624b\u3002<\/p>\n<h3 style=\"font-size:18.5px;line-height:1.55;font-weight:700;color:#18283e;margin:30px 0 12px;padding-left:12px;border-left:3px solid #d97b2940\">3. \u8ba1\u7b97\u5b58\u50a8\u5206\u79bb\u578b\uff08Pulsar\uff09<\/h3>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">Pulsar \u7684\u67b6\u6784\u662f<strong style=\"color:#0f1c2e;font-weight:600\">Broker \u65e0\u72b6\u6001 + \u5b58\u50a8\u72ec\u7acb\uff08BookKeeper\uff09<\/strong>\u3002\u5b83\u60f3\u540c\u65f6\u62ff\u5230\u65e5\u5fd7\u578b\u7684\u91cd\u653e\u80fd\u529b\u548c\u961f\u5217\u578b\u7684\u6269\u5c55\u5f39\u6027\uff1a\u6269 Broker \u4e0d\u7528\u642c\u6570\u636e\uff0c\u6269\u5b58\u50a8\u4e0d\u7528\u52a8 Broker\u3002<\/p>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">\u4ee3\u4ef7\u662f<strong style=\"color:#0f1c2e;font-weight:600\">\u8fd0\u7ef4\u590d\u6742\u5ea6\u4e0a\u5347<\/strong>\u2014\u2014\u4f60\u8981\u540c\u65f6\u7406\u89e3\u5e76\u7ef4\u62a4\u4e24\u5957\u7ec4\u4ef6\u3002\u56e2\u961f\u89c4\u6a21\u4e0d\u591f\u65f6\uff0c\u8fd9\u4e2a\u590d\u6742\u5ea6\u4f1a\u53d8\u6210\u8d1f\u62c5\u3002<\/p>\n<h3 style=\"font-size:18.5px;line-height:1.55;font-weight:700;color:#18283e;margin:30px 0 12px;padding-left:12px;border-left:3px solid #d97b2940\">4. \u8f7b\u91cf\u578b\uff08Redis Streams\uff09<\/h3>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">\u5982\u679c\u6d88\u606f\u91cf\u4e0d\u5927\u3001\u5141\u8bb8\u4e00\u5b9a\u4e22\u5931\u3001\u4e14<strong style=\"color:#0f1c2e;font-weight:600\">\u5df2\u7ecf\u91cd\u5ea6\u4f7f\u7528 Redis<\/strong>\uff0cStreams \u662f\u6210\u672c\u6700\u4f4e\u7684\u9009\u62e9\u2014\u2014\u4e0d\u5f15\u5165\u65b0\u7ec4\u4ef6\uff0c\u8fd0\u7ef4\u6210\u672c\u51e0\u4e4e\u4e3a\u96f6\u3002<\/p>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">\u4f46\u5b83\u4e0d\u662f\u4e3a&#8221;\u5173\u952e\u4e1a\u52a1\u6d88\u606f&#8221;\u8bbe\u8ba1\u7684\uff1a<strong style=\"color:#0f1c2e;font-weight:600\">\u6301\u4e45\u5316\u7b56\u7565\u3001\u5bb9\u91cf\u89c4\u5212\u3001\u79ef\u538b\u5904\u7406\u90fd\u8981\u81ea\u5df1\u515c\u5e95<\/strong>\uff0c\u6570\u636e\u91cf\u4e00\u5927\u5c31\u4f1a\u8ddf\u4e3b Redis \u62a2\u8d44\u6e90\u3002\u9002\u5408\u901a\u77e5\u3001\u8f7b\u91cf\u7ea7\u5f02\u6b65\u4efb\u52a1\u8fd9\u7c7b\u573a\u666f\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 #d97b29;border-bottom:1px solid #eef2f7;letter-spacing:.3px\" id=\"sec-3\">\u4e09\u3001\u51b3\u7b56\u6811\uff1a\u6309\u8fd9\u56db\u4e2a\u95ee\u9898\u4f9d\u6b21\u6392\u9664<\/h2>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">\u6309\u987a\u5e8f\u95ee\u81ea\u5df1\uff0c\u524d\u4e00\u4e2a\u95ee\u9898\u5f80\u5f80\u5c31\u80fd\u76f4\u63a5\u6392\u9664\u6389\u4e00\u534a\u9009\u9879\u3002<\/p>\n<h3 style=\"font-size:18.5px;line-height:1.55;font-weight:700;color:#18283e;margin:30px 0 12px;padding-left:12px;border-left:3px solid #d97b2940\">\u95ee\u9898 1\uff1a\u9700\u8981\u91cd\u653e\u5386\u53f2\u6d88\u606f\u5417\uff1f<\/h3>\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\">\u9700\u8981<\/strong>\uff08\u4e8b\u4ef6\u6eaf\u6e90\u3001\u6d41\u5904\u7406\u3001\u4e0b\u6e38\u91cd\u5efa\u7f13\u5b58\uff09\u2192 \u6392\u9664 Redis Streams\uff0cKafka \/ Pulsar \u4f18\u5148\u3002<br \/>\n<strong style=\"color:#0f1c2e;font-weight:600\">\u4e0d\u9700\u8981<\/strong>\uff08\u7eaf\u4efb\u52a1\u5206\u53d1\uff09\u2192 \u56db\u4e2a\u90fd\u80fd\u9009\uff0c\u7ee7\u7eed\u4e0b\u4e00\u95ee\u3002<\/p>\n<h3 style=\"font-size:18.5px;line-height:1.55;font-weight:700;color:#18283e;margin:30px 0 12px;padding-left:12px;border-left:3px solid #d97b2940\">\u95ee\u9898 2\uff1a\u9700\u8981\u5ef6\u8fdf\u6d88\u606f \/ \u4e8b\u52a1\u6d88\u606f \/ \u6b7b\u4fe1\u961f\u5217\u5417\uff1f<\/h3>\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\">\u9700\u8981\uff0c\u4e14\u5e0c\u671b\u5f00\u7bb1\u5373\u7528<\/strong>\u2192 RocketMQ \u662f\u8fd9\u4e00\u5c42\u7684\u5f3a\u9879\uff0cKafka \u9700\u8981\u81ea\u5df1\u5728\u5e94\u7528\u5c42\u642d\u5ef6\u8fdf\u961f\u5217\uff08\u901a\u5e38\u9760\u65f6\u95f4\u8f6e + \u5206\u7ea7 topic\uff09\u3002<br \/>\n<strong style=\"color:#0f1c2e;font-weight:600\">\u4e0d\u9700\u8981\uff0c\u6216\u613f\u610f\u81ea\u5df1\u5b9e\u73b0<\/strong>\u2192 \u7ee7\u7eed\u3002<\/p>\n<h3 style=\"font-size:18.5px;line-height:1.55;font-weight:700;color:#18283e;margin:30px 0 12px;padding-left:12px;border-left:3px solid #d97b2940\">\u95ee\u9898 3\uff1a\u8fd0\u7ef4\u4eba\u529b\u6709\u591a\u5c11\uff1f<\/h3>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">\u8fd9\u662f\u6700\u8bda\u5b9e\u7684\u4e00\u4e2a\u95ee\u9898\u3002<strong style=\"color:#0f1c2e;font-weight:600\">\u6ca1\u6709\u4e13\u804c\u8fd0\u7ef4\u3001\u56e2\u961f\u89c4\u6a21\u5c0f<\/strong>\u2192 \u4f18\u5148\u8003\u8651<strong style=\"color:#0f1c2e;font-weight:600\">\u4e91\u5382\u5546\u6258\u7ba1\u7248<\/strong>\uff0c\u6216\u76f4\u63a5\u7528 Redis Streams\u3002\u81ea\u5efa Kafka \u96c6\u7fa4\u80fd\u8dd1\u8d77\u6765\u548c\u80fd\u7a33\u5b9a\u8dd1\u4e09\u5e74\uff0c\u662f\u4e24\u4ef6\u5b8c\u5168\u4e0d\u540c\u7684\u4e8b\u3002<br \/>\n<strong style=\"color:#0f1c2e;font-weight:600\">\u6709\u4e13\u804c SRE<\/strong>\u2192 Kafka\u3001Pulsar \u90fd\u80fd\u8003\u8651\u3002<\/p>\n<h3 style=\"font-size:18.5px;line-height:1.55;font-weight:700;color:#18283e;margin:30px 0 12px;padding-left:12px;border-left:3px solid #d97b2940\">\u95ee\u9898 4\uff1a\u541e\u5410\u91cf\u7684\u771f\u5b9e\u91cf\u7ea7\u662f\u591a\u5c11\uff1f<\/h3>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">\u5f88\u591a\u56e2\u961f\u9ad8\u4f30\u4e86\u81ea\u5df1\u7684\u91cf\u7ea7\u3002<strong style=\"color:#0f1c2e;font-weight:600\">\u65e5\u5747\u767e\u4e07\u7ea7\u4ee5\u4e0b<\/strong>\u7684\uff0c\u56db\u4e2a\u65b9\u6848\u5728\u6027\u80fd\u4e0a\u90fd\u4e0d\u6784\u6210\u74f6\u9888\uff0c\u9009\u578b\u5e94\u8be5\u5b8c\u5168\u7531&#8221;\u8bed\u4e49\u9700\u6c42 + \u8fd0\u7ef4\u6210\u672c&#8221;\u51b3\u5b9a\u3002<br \/>\n<strong style=\"color:#0f1c2e;font-weight:600\">\u65e5\u5747\u4ebf\u7ea7\u4ee5\u4e0a<\/strong>\uff0c\u6216\u8005\u9700\u8981\u5bf9\u63a5 Flink \u7b49\u6d41\u8ba1\u7b97\u751f\u6001 \u2192 Kafka \u7684\u751f\u6001\u4f18\u52bf\u96be\u4ee5\u66ff\u4ee3\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 #d97b29;border-bottom:1px solid #eef2f7;letter-spacing:.3px\" id=\"sec-4\">\u56db\u3001\u56db\u4e2a\u9ad8\u9891\u8e29\u5751\u70b9<\/h2>\n<h3 style=\"font-size:18.5px;line-height:1.55;font-weight:700;color:#18283e;margin:30px 0 12px;padding-left:12px;border-left:3px solid #d97b2940\">1. \u4ee5\u4e3a&#8221;\u6d88\u606f\u53d1\u51fa\u53bb\u4e86&#8221;\u5c31\u7b49\u4e8e&#8221;\u4e0d\u4f1a\u4e22&#8221;<\/h3>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">\u9ed8\u8ba4\u914d\u7f6e\u4e0b\uff0c\u751f\u4ea7\u8005\u53d1\u9001\u6210\u529f\u53ea\u4ee3\u8868<strong style=\"color:#0f1c2e;font-weight:600\">\u6d88\u606f\u5230\u4e86 Broker \u5185\u5b58<\/strong>\uff0c\u672a\u5fc5\u843d\u76d8\u3002\u8981\u771f\u7684\u4e0d\u4e22\uff0c\u751f\u4ea7\u7aef\u8981\u914d acks \u7b56\u7565\u3001\u670d\u52a1\u7aef\u8981\u914d\u591a\u526f\u672c\u540c\u6b65\u3001\u6d88\u8d39\u7aef\u8981<strong style=\"color:#0f1c2e;font-weight:600\">\u5148\u5904\u7406\u4e1a\u52a1\u518d\u63d0\u4ea4\u4f4d\u70b9<\/strong>\u2014\u2014\u4e09\u5904\u90fd\u5f97\u5bf9\uff1a<\/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\"># Kafka \u751f\u4ea7\u7aef\uff1aall \u8868\u793a\u7b49\u6240\u6709 ISR \u526f\u672c\u786e\u8ba4\u624d\u7b97\u53d1\u9001\u6210\u529f\nacks=all\nenable.idempotence=true          # \u5e42\u7b49\u751f\u4ea7\u8005\uff0c\u9632\u91cd\u8bd5\u5bfc\u81f4\u7684\u4e71\u5e8f\u91cd\u590d\nretries=2147483647\n\n# \u670d\u52a1\u7aef\uff1atopic \u526f\u672c\u4e0e\u6700\u5c0f\u540c\u6b65\u526f\u672c\nreplication.factor=3\nmin.insync.replicas=2            # \u4e0e acks=all \u914d\u5408\uff0c\u5bb9\u5fcd\u4e00\u53f0\u526f\u672c\u6545\u969c\n\n\/\/ \u6d88\u8d39\u7aef\uff1a\u5148\u843d\u5e93\u518d\u63d0\u4ea4\u4f4d\u70b9\uff0c\u914d\u5408\u5e42\u7b49\u952e\u9632\u91cd\u590d\nwhile (records := consumer.poll()) {\n    db.tx { saveAll(records) }   \/\/ \u4e1a\u52a1\u4e0e\u5e42\u7b49\u952e\u540c\u4e00\u4e8b\u52a1\n    consumer.commitSync()        \/\/ \u5904\u7406\u5b8c\u624d\u63d0\u4ea4\n}<\/code><\/pre>\n<h3 style=\"font-size:18.5px;line-height:1.55;font-weight:700;color:#18283e;margin:30px 0 12px;padding-left:12px;border-left:3px solid #d97b2940\">2. \u6d88\u8d39\u7aef\u6ca1\u6709\u505a\u5e42\u7b49<\/h3>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">\u5206\u5e03\u5f0f\u6d88\u606f\u7cfb\u7edf\u63d0\u4f9b\u7684\u662f&#8221;<strong style=\"color:#0f1c2e;font-weight:600\">\u81f3\u5c11\u4e00\u6b21<\/strong>&#8220;\u8bed\u4e49\uff0c\u91cd\u590d\u6295\u9012\u662f\u5e38\u6001\u800c\u975e\u5f02\u5e38\u3002\u6d88\u8d39\u7aef\u5fc5\u987b\u80fd\u5bb9\u5fcd\u91cd\u590d\uff1a\u552f\u4e00\u952e\u53bb\u91cd\u3001\u72b6\u6001\u673a\u6821\u9a8c\u3001\u6216\u8005\u4e1a\u52a1\u672c\u8eab\u5e42\u7b49\u3002<strong style=\"color:#0f1c2e;font-weight:600\">\u8fd9\u4e00\u6761\u51e0\u4e4e\u662f\u6240\u6709\u7ebf\u4e0a\u6d88\u606f\u4e8b\u6545\u7684\u6839\u6e90\u3002<\/strong><\/p>\n<h3 style=\"font-size:18.5px;line-height:1.55;font-weight:700;color:#18283e;margin:30px 0 12px;padding-left:12px;border-left:3px solid #d97b2940\">3. \u79ef\u538b\u540e\u76f2\u76ee\u6269\u5bb9\u6d88\u8d39\u8005<\/h3>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">Kafka \u8fd9\u7c7b\u5206\u533a\u6a21\u578b\u4e0b\uff0c<strong style=\"color:#0f1c2e;font-weight:600\">\u6d88\u8d39\u8005\u6570\u91cf\u8d85\u8fc7\u5206\u533a\u6570\u5c31\u4e0d\u4f1a\u518d\u63d0\u5347\u5e76\u884c\u5ea6<\/strong>\u3002\u6269\u5bb9\u524d\u5148\u770b\u5206\u533a\u6570\uff0c\u5426\u5219\u52a0\u591a\u5c11\u5b9e\u4f8b\u90fd\u662f\u767d\u52a0\u3002<\/p>\n<h3 style=\"font-size:18.5px;line-height:1.55;font-weight:700;color:#18283e;margin:30px 0 12px;padding-left:12px;border-left:3px solid #d97b2940\">4. \u628a MQ \u5f53\u6570\u636e\u5e93\u7528<\/h3>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">\u6d88\u606f\u5806\u79ef\u51e0\u5343\u4e07\u6761\u8fd8\u6307\u671b\u5feb\u901f\u56de\u6eaf\u67e5\u8be2\u3001\u6216\u8005\u628a\u4e1a\u52a1\u72b6\u6001\u53ea\u5b58\u5728\u6d88\u606f\u91cc\u2014\u2014\u8fd9\u7c7b\u7528\u6cd5\u4f1a\u5728\u67d0\u4e2a\u51cc\u6668\u53cd\u566c\u3002MQ \u662f<strong style=\"color:#0f1c2e;font-weight:600\">\u4f20\u8f93\u901a\u9053<\/strong>\uff0c\u4e0d\u662f\u5b58\u50a8\u7cfb\u7edf\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 #d97b29;border-bottom:1px solid #eef2f7;letter-spacing:.3px\" id=\"sec-5\">\u4e94\u3001\u4e00\u5f20\u8868\u603b\u7ed3<\/h2>\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\">Kafka<\/strong>\uff1a\u541e\u5410\u4e0e\u751f\u6001\u6700\u5f3a\uff0c\u91cd\u653e\u80fd\u529b\u539f\u751f\uff1b\u4e1a\u52a1\u8bed\u4e49\u8981\u81ea\u5df1\u642d\uff0c\u8fd0\u7ef4\u95e8\u69db\u9ad8\u3002\u9002\u5408\u65e5\u5fd7\u3001\u57cb\u70b9\u3001\u6d41\u5904\u7406\u3001\u4e8b\u4ef6\u6eaf\u6e90\u3002<\/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\">Pulsar<\/strong>\uff1a\u8ba1\u7b97\u5b58\u50a8\u5206\u79bb\uff0c\u5f39\u6027\u6700\u597d\uff0c\u591a\u79df\u6237\u539f\u751f\uff1b\u7ec4\u4ef6\u591a\u3001\u8fd0\u7ef4\u590d\u6742\u3002\u9002\u5408\u591a\u79df\u6237\u5e73\u53f0\u3001\u9700\u8981\u5f39\u6027\u7684\u4e2d\u5927\u578b\u573a\u666f\u3002<\/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\">RocketMQ<\/strong>\uff1a\u4e1a\u52a1\u8bed\u4e49\u6700\u5168\uff08\u4e8b\u52a1\u3001\u5ef6\u8fdf\u3001\u6b7b\u4fe1\uff09\uff0cJava \u751f\u6001\u4eb2\u548c\uff1b\u56fd\u9645\u751f\u6001\u76f8\u5bf9\u5f31\u3002\u9002\u5408\u4ea4\u6613\u3001\u8ba2\u5355\u7b49\u5f3a\u8bed\u4e49\u4e1a\u52a1\u3002<\/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\">Redis Streams<\/strong>\uff1a\u96f6\u65b0\u589e\u7ec4\u4ef6\uff0c\u6210\u672c\u6700\u4f4e\uff1b\u53ef\u9760\u6027\u4e0e\u5bb9\u91cf\u6709\u9650\u3002\u9002\u5408\u8f7b\u91cf\u7ea7\u5f02\u6b65\u3001\u901a\u77e5\u3001\u5df2\u6709 Redis \u7684\u5c0f\u56e2\u961f\u3002<\/li>\n<\/ul>\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 #d97b29;border-bottom:1px solid #eef2f7;letter-spacing:.3px\" id=\"sec-6\">\u516d\u3001\u5c0f\u7ed3<\/h2>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">\u9009\u578b\u7684\u672c\u8d28\u4e0d\u662f\u6bd4\u53c2\u6570\uff0c\u800c\u662f<strong style=\"color:#0f1c2e;font-weight:600\">\u5339\u914d\u67b6\u6784\u5047\u8bbe<\/strong>\uff1a\u4f60\u9700\u8981\u91cd\u653e\u5417\uff1f\u9700\u8981\u670d\u52a1\u7aef\u7ef4\u62a4\u6d88\u606f\u72b6\u6001\u5417\uff1f\u8fd0\u7ef4\u80fd\u625b\u51e0\u5957\u7ec4\u4ef6\uff1f\u771f\u5b9e\u91cf\u7ea7\u662f\u591a\u5c11\uff1f<\/p>\n<p style=\"font-size:16.2px;line-height:1.95;color:#35435c;margin:16px 0;letter-spacing:.2px\">\u5bf9\u5927\u591a\u6570\u56e2\u961f\uff0c\u6211\u7684\u5b9e\u9645\u5efa\u8bae\u662f\uff1a<strong style=\"color:#0f1c2e;font-weight:600\">\u5148\u7528\u4e91\u5382\u5546\u6258\u7ba1\u7248\u8dd1\u8d77\u6765\uff0c\u628a\u4e1a\u52a1\u8bed\u4e49\u548c\u5e42\u7b49\u505a\u5bf9\uff0c\u7b49\u91cf\u548c\u590d\u6742\u5ea6\u771f\u7684\u4e0a\u6765\u4e86\uff0c\u518d\u8003\u8651\u81ea\u5efa\u548c\u8fc1\u79fb\u3002<\/strong>\u8fc7\u65e9\u4e3a&#8221;\u672a\u6765\u53ef\u80fd\u7684\u91cf\u7ea7&#8221;\u4ed8\u51fa\u67b6\u6784\u590d\u6742\u5ea6\uff0c\u662f\u8fd9\u4e00\u9886\u57df\u6700\u5e38\u89c1\u4e5f\u6700\u8d35\u7684\u6d6a\u8d39\u3002<\/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\">#\u6d88\u606f\u961f\u5217<\/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\">#Kafka<\/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\">#RocketMQ<\/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\u67b6\u6784<\/span><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u4eec\u8be5\u7528\u54ea\u4e2a MQ\uff1f\u8fd9\u4e2a\u95ee\u9898\u5728 2026 \u5e74\u5e76\u6ca1\u6709\u66f4\u5bb9\u6613\uff0c\u56e0\u4e3a\u53ef\u9009\u65b9\u6848\u53d8\u591a\u4e86\uff0c\u800c\u5b83\u4eec\u7684\u67b6\u6784\u5dee\u5f02\u662f\u6839\u672c\u6027\u7684\u3002\u672c\u6587\u628a\u56db\u7c7b\u4e3b\u6d41\u65b9\u6848\u7684\u5e95\u5c42\u53d6\u820d\u8bb2\u6e05\u695a\uff0c\u7ed9\u51fa\u4e00\u68f5\u53ef\u4ee5\u76f4\u63a5\u7528\u7684\u51b3\u7b56\u6811\uff0c\u5e76\u5217\u51fa\u56db\u4e2a\u9ad8\u9891\u8e29\u5751\u70b9\u3002<\/p>\n","protected":false},"author":1,"featured_media":203,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,1],"tags":[93,94,38,92],"class_list":["post-205","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-backend","category-technical","tag-kafka","tag-rocketmq","tag-38","tag-92"],"_links":{"self":[{"href":"https:\/\/www.ziliaochi.cn\/index.php\/wp-json\/wp\/v2\/posts\/205","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=205"}],"version-history":[{"count":1,"href":"https:\/\/www.ziliaochi.cn\/index.php\/wp-json\/wp\/v2\/posts\/205\/revisions"}],"predecessor-version":[{"id":332,"href":"https:\/\/www.ziliaochi.cn\/index.php\/wp-json\/wp\/v2\/posts\/205\/revisions\/332"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ziliaochi.cn\/index.php\/wp-json\/wp\/v2\/media\/203"}],"wp:attachment":[{"href":"https:\/\/www.ziliaochi.cn\/index.php\/wp-json\/wp\/v2\/media?parent=205"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ziliaochi.cn\/index.php\/wp-json\/wp\/v2\/categories?post=205"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ziliaochi.cn\/index.php\/wp-json\/wp\/v2\/tags?post=205"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}