{"id":63129,"date":"2026-01-21T10:49:41","date_gmt":"2026-01-21T02:49:41","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/63129.html"},"modified":"2026-01-21T10:49:41","modified_gmt":"2026-01-21T02:49:41","slug":"%e3%80%8arocketmq%e7%a0%94%e8%af%bb%e3%80%8bday6%ef%bc%9a%e9%ab%98%e7%ba%a7%e7%89%b9%e6%80%a7%e4%b8%8e%e5%ae%9e%e6%88%98%e6%a1%88%e4%be%8b","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/63129.html","title":{"rendered":"\u300aRocketMQ\u7814\u8bfb\u300bDay6\uff1a\u9ad8\u7ea7\u7279\u6027\u4e0e\u5b9e\u6218\u6848\u4f8b"},"content":{"rendered":"<p>\u00a0\u4e0a\u4e00\u671f\u300a7\u5929\u5b66\u4f1aRedis\u300b\u5df2\u7ecf\u5b8c\u7ed3&#xff0c;\u672c\u5468\u5f00\u59cb\u6574\u7406RocketMQ&#xff0c;\u6b22\u8fce\u6307\u6b63&#xff0c;\u70b9\u8d5e\u5173\u6ce8\u54e6~<\/p>\n<p>\u300aRocketMQ\u7814\u8bfb\u300bDay1&#xff1a;RocketMQ \u57fa\u7840\u67b6\u6784\u4e0e\u6838\u5fc3\u6982\u5ff5<\/p>\n<p>\u300aRocketMQ\u7814\u8bfb\u300bDay2&#xff1a;\u751f\u4ea7\u8005\u7684\u8bbe\u8ba1\u4e0e\u5b9e\u8df5<\/p>\n<p>\u300aRocketMQ\u7814\u8bfb\u300bDay3&#xff1a;\u6d88\u8d39\u8005\u7684\u8bbe\u8ba1\u4e0e\u5b9e\u8df5<\/p>\n<p>\u300aRocketMQ\u7814\u8bfb\u300bDay4&#xff1a;\u6d88\u606f\u5b58\u50a8\u4e0e\u590d\u5236\u673a\u5236<\/p>\n<p>\u300aRocketMQ\u7814\u8bfb\u300bDay5&#xff1a;\u4e8b\u52a1\u673a\u5236\u4e0e\u987a\u5e8f\u6d88\u606f<\/p>\n<p>\u300aRocketMQ\u7814\u8bfb\u300bDay6&#xff1a;\u9ad8\u7ea7\u7279\u6027\u4e0e\u5b9e\u6218\u6848\u4f8b<\/p>\n<p>\u300aRocketMQ\u7814\u8bfb\u300bDay7&#xff1a;\u9ad8\u53ef\u7528\u4e0e\u96c6\u7fa4\u90e8\u7f72<\/p>\n<hr \/>\n<h2 style=\"background-color:transparent\">Day6&#xff1a;\u9ad8\u7ea7\u7279\u6027\u4e0e\u5b9e\u6218\u6848\u4f8b<\/h2>\n<h3 style=\"background-color:transparent\">\u4e00\u3001\u5ef6\u8fdf\u6d88\u606f<\/h3>\n<h4 style=\"background-color:transparent\">1.1 \u5ef6\u8fdf\u6d88\u606f\u7684\u5e94\u7528\u573a\u666f<\/h4>\n<p>\u5ef6\u8fdf\u6d88\u606f\u662f\u6307\u6d88\u606f\u53d1\u9001\u540e&#xff0c;\u5e76\u4e0d\u7acb\u5373\u88ab\u6d88\u8d39\u8005\u6d88\u8d39&#xff0c;\u800c\u662f\u5728\u6307\u5b9a\u7684\u5ef6\u8fdf\u65f6\u95f4\u4e4b\u540e\u624d\u53ef\u88ab\u6d88\u8d39\u3002\u5e38\u89c1\u7684\u5e94\u7528\u573a\u666f\u5305\u62ec&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u8ba2\u5355\u8d85\u65f6\u53d6\u6d88&#xff1a;\u4e0b\u5355\u540e30\u5206\u949f\u672a\u652f\u4ed8&#xff0c;\u81ea\u52a8\u53d6\u6d88\u8ba2\u5355<\/p>\n<\/li>\n<li>\n<p>\u4e1a\u52a1\u5ef6\u8fdf&#xff1a;\u65e0\u4eba\u673a\u5f00\u673a3s\u540e\u5f00\u59cb\u63a8\u6d41<\/p>\n<\/li>\n<li>\n<p>\u91cd\u8bd5\u7b56\u7565&#xff1a;\u6d88\u606f\u5904\u7406\u5931\u8d25\u540e&#xff0c;\u5ef6\u8fdf\u4e00\u6bb5\u65f6\u95f4\u518d\u91cd\u8bd5<\/p>\n<\/li>\n<\/ul>\n<h4>1.2 \u5ef6\u8fdf\u6d88\u606f\u7684\u5b9e\u73b0\u539f\u7406<\/h4>\n<p>RocketMQ\u7684\u5ef6\u8fdf\u6d88\u606f\u662f\u901a\u8fc7\u5185\u7f6e\u7684\u5ef6\u8fdf\u4e3b\u9898&#xff08;SCHEDULE_TOPIC_XXXX&#xff09;\u548c\u5ef6\u8fdf\u961f\u5217\u5b9e\u73b0\u7684\u3002\u652f\u630118\u4e2a\u5ef6\u8fdf\u7ea7\u522b&#xff08;1\u523018&#xff09;&#xff0c;\u5206\u522b\u5bf9\u5e94&#xff1a; 1s\u30015s\u300110s\u300130s\u30011m\u30012m\u30013m\u30014m\u30015m\u30016m\u30017m\u30018m\u30019m\u300110m\u300120m\u300130m\u30011h\u30012h<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1203\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260121024938-69703ec225760.png\" width=\"455\" \/><\/p>\n<p>\u8be6\u7ec6\u6d41\u7a0b&#xff1a;<\/p>\n<li>\n<p>\u751f\u4ea7\u8005\u53d1\u9001\u6d88\u606f\u65f6&#xff0c;\u8bbe\u7f6e\u5ef6\u8fdf\u7ea7\u522b&#xff08;message.setDelayTimeLevel(3)&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>Broker\u63a5\u6536\u5230\u6d88\u606f\u540e&#xff0c;\u53d1\u73b0\u662f\u5ef6\u8fdf\u6d88\u606f&#xff0c;\u5219\u5c06\u6d88\u606f\u7684\u539f\u4e3b\u9898\u548c\u961f\u5217ID\u5b58\u50a8\u5230\u6d88\u606f\u5c5e\u6027\u4e2d&#xff0c;\u7136\u540e\u6539\u53d8\u6d88\u606f\u7684\u4e3b\u9898\u4e3aSCHEDULE_TOPIC_XXXX&#xff0c;\u961f\u5217ID\u4e3a\u5ef6\u8fdf\u7ea7\u522b\u5bf9\u5e94\u7684ID\u3002<\/p>\n<\/li>\n<li>\n<p>\u5ef6\u8fdf\u670d\u52a1&#xff08;ScheduleMessageService&#xff09;\u4f1a\u5b9a\u65f6&#xff08;\u6bcf\u79d2\u949f&#xff09;\u626b\u63cf\u6bcf\u4e2a\u5ef6\u8fdf\u7ea7\u522b\u7684\u961f\u5217&#xff0c;\u68c0\u67e5\u6d88\u606f\u662f\u5426\u5230\u671f\u3002<\/p>\n<\/li>\n<li>\n<p>\u5230\u671f\u540e&#xff0c;\u5c06\u6d88\u606f\u7684\u4e3b\u9898\u548c\u961f\u5217ID\u6062\u590d\u4e3a\u539f\u59cb\u503c&#xff0c;\u7136\u540e\u91cd\u65b0\u6295\u9012\u5230CommitLog\u4e2d&#xff0c;\u4e4b\u540e\u6d88\u606f\u4f1a\u88ab\u5206\u53d1\u5230\u539f\u59cb\u4e3b\u9898\u7684\u961f\u5217\u4e2d&#xff0c;\u4f9b\u6d88\u8d39\u8005\u6d88\u8d39\u3002<\/p>\n<\/li>\n<p style=\"background-color:transparent\">\u5b9a\u65f6\u626b\u63cf<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1176\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260121024938-69703ec266876.png\" width=\"2066\" \/><\/p>\n<p>\u751f\u4ea7\u907f\u5751&#xff1a;\u5ef6\u8fdf\u6d88\u606f\u7684 3 \u5927\u9677\u9631<\/p>\n<table>\n<tr>\u9677\u9631\u6839\u672c\u539f\u56e0\u89e3\u51b3\u65b9\u6848<\/tr>\n<tbody>\n<tr>\n<td>\u5ef6\u8fdf\u7ea7\u522b\u8d85\u51fa\u8303\u56f4<\/td>\n<td>delayLevel&#061;0&#xff08;\u7acb\u5373\u53d1\u9001&#xff09;<\/td>\n<td>\u4e25\u683c\u4f7f\u7528 1-18&#xff08;delayLevel&#061;5\u00a0\u5bf9\u5e94 30\u5206\u949f&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u672a\u5904\u7406\u8d85\u65f6<\/td>\n<td>\u4e1a\u52a1\u903b\u8f91\u672a\u5904\u7406\u5ef6\u8fdf\u6d88\u606f<\/td>\n<td>\u6d88\u8d39\u7aef\u9700\u5224\u65ad\u00a0msg.getDelayLevel()<\/td>\n<\/tr>\n<tr>\n<td>\u65f6\u95f4\u8f6e\u672a\u9884\u70ed<\/td>\n<td>\u9996\u6b21\u4f7f\u7528\u65f6\u95f4\u8f6e\u5ef6\u8fdf 50ms<\/td>\n<td>\u542f\u52a8\u65f6\u9884\u70ed&#xff08;ScheduleMessageService.start()&#xff09;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 style=\"background-color:transparent\">\u4e8c\u3001\u8fc7\u6ee4\u6d88\u606f&#xff1a;\u7cbe\u51c6\u6295\u9012\u7684\u5229\u5668<\/h3>\n<h4 style=\"background-color:transparent\">2.1\u00a0Tag\u8fc7\u6ee4\u673a\u5236<\/h4>\n<p>Tag\u8fc7\u6ee4\u662fRocketMQ\u6700\u5e38\u7528\u7684\u8fc7\u6ee4\u65b9\u5f0f&#xff0c;\u57fa\u4e8e\u6d88\u606f\u7684Tag\u5c5e\u6027\u8fdb\u884c\u7b80\u5355\u9ad8\u6548\u7684\u8fc7\u6ee4\u3002<\/p>\n<p>\u5b9e\u73b0\u539f\u7406&#xff1a;<\/p>\n<li>\n<p>Tag\u7f16\u7801&#xff1a;\u6bcf\u4e2aTag\u88ab\u7f16\u7801\u4e3a\u6574\u6570hashCode<\/p>\n<\/li>\n<li>\n<p>\u8ba2\u9605\u5173\u7cfb&#xff1a;\u6d88\u8d39\u8005\u8ba2\u9605\u65f6\u6307\u5b9aTag\u6216Tag\u8868\u8fbe\u5f0f<\/p>\n<\/li>\n<li>\n<p>\u5feb\u901f\u5339\u914d&#xff1a;Broker\u901a\u8fc7hashCode\u5feb\u901f\u8fc7\u6ee4&#xff0c;\u65e0\u9700\u89e3\u6790\u6d88\u606f\u5185\u5bb9<\/p>\n<\/li>\n<p>Tag\u8868\u8fbe\u5f0f\u8bed\u6cd5&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u5355\u4e2aTag&#xff1a;&#034;TAG_A&#034;<\/p>\n<\/li>\n<li>\n<p>\u591a\u4e2aTag&#xff08;\u6216\u5173\u7cfb&#xff09;&#xff1a;&#034;TAG_A || TAG_B&#034;<\/p>\n<\/li>\n<li>\n<p>\u6240\u6709Tag&#xff1a;&#034;*&#034;&#xff08;\u9ed8\u8ba4&#xff09;<\/p>\n<\/li>\n<\/ul>\n<h4>2.2 SQL92\u8fc7\u6ee4\u673a\u5236<\/h4>\n<p>SQL92\u8fc7\u6ee4\u63d0\u4f9b\u66f4\u5f3a\u5927\u7684\u8fc7\u6ee4\u80fd\u529b&#xff0c;\u652f\u6301\u5bf9\u6d88\u606f\u7684\u7528\u6237\u5c5e\u6027\u8fdb\u884c\u590d\u6742\u6761\u4ef6\u8fc7\u6ee4\u3002<\/p>\n<p>\u652f\u6301\u7684\u64cd\u4f5c\u7b26&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u6570\u503c\u6bd4\u8f83&#xff1a;&#061;, &gt;, &gt;&#061;, &lt;, &lt;&#061;, BETWEEN<\/p>\n<\/li>\n<li>\n<p>\u903b\u8f91\u8fd0\u7b97&#xff1a;AND, OR, NOT<\/p>\n<\/li>\n<li>\n<p>\u7a7a\u503c\u5224\u65ad&#xff1a;IS NULL, IS NOT NULL<\/p>\n<\/li>\n<li>\n<p>\u6a21\u5f0f\u5339\u914d&#xff1a;LIKE<\/p>\n<\/li>\n<li>\n<p>\u96c6\u5408\u64cd\u4f5c&#xff1a;IN<\/p>\n<\/li>\n<\/ul>\n<h4 style=\"background-color:transparent\">2.3 \u5e94\u7528\u793a\u4f8b<\/h4>\n<p>   &#064;RocketMQMessageListener(<br \/>\n        topic &#061; &#034;MULTI_TENANT_TOPIC&#034;,<br \/>\n        consumerGroup &#061; &#034;tenant-a-consumer&#034;,<br \/>\n        selectorType &#061; SelectorType.SQL92,<br \/>\n        selectorExpression &#061; &#034;tenantId &#061; &#039;TENANT_A&#039; AND env &#061; &#039;PROD&#039;&#034;<br \/>\n    )<br \/>\n    public class TenantAConsumer implements RocketMQListener&lt;Message&gt; {<br \/>\n        &#064;Override<br \/>\n        public void onMessage(Message message) {<br \/>\n            \/\/ \u5904\u7406\u79df\u6237A\u7684\u6d88\u606f<br \/>\n            processForTenantA(message);<br \/>\n        }<br \/>\n    } <\/p>\n<h3>\u4e09\u3001\u6279\u91cf\u6d88\u606f<\/h3>\n<h4 style=\"background-color:transparent\">3.1\u3001\u4ec0\u4e48\u662f\u6279\u91cf\u6d88\u606f&#xff1f;<\/h4>\n<p>\u6279\u91cf\u6d88\u606f\u662f\u6307\u751f\u4ea7\u8005\u5c06\u591a\u6761\u4e1a\u52a1\u903b\u8f91\u76f8\u5173\u7684\u6d88\u606f\u7ec4\u5408\u6210\u4e00\u4e2a\u201c\u6279\u201d&#xff08;Batch&#xff09;&#xff0c;\u4e00\u6b21\u6027\u53d1\u9001\u5230Broker\u3002Broker\u6536\u5230\u540e&#xff0c;\u4f1a\u5c06\u5176\u4f5c\u4e3a\u4e00\u6279\u6570\u636e\u8fdb\u884c\u5b58\u50a8\u548c\u5904\u7406&#xff0c;\u800c\u6d88\u8d39\u8005\u62c9\u53d6\u548c\u6d88\u8d39\u65f6&#xff0c;\u4ecd\u7136\u4ee5\u5355\u6761\u6d88\u606f\u4e3a\u5355\u4f4d\u3002<\/p>\n<p>\u6838\u5fc3\u4ef7\u503c&#xff1a;\u5c06\u591a\u6b21\u7f51\u7edc\u5f80\u8fd4&#xff08;RTT&#xff09;\u3001\u591a\u6b21\u5e8f\u5217\u5316\u3001\u591a\u6b21\u5b58\u50a8\u7cfb\u7edf\u8c03\u7528\u7684\u5f00\u9500&#xff0c;\u538b\u7f29\u4e3a\u4e00\u6b21&#xff0c;\u4ece\u800c\u5728\u53d1\u9001\u5927\u91cf\u5c0f\u6d88\u606f\u65f6&#xff0c;\u5e26\u6765\u5de8\u5927\u7684\u6027\u80fd\u63d0\u5347\u3002<\/p>\n<h4>3.2\u3001\u6838\u5fc3\u5e94\u7528\u573a\u666f<\/h4>\n<p>\u6279\u91cf\u6d88\u606f\u9002\u7528\u4e8e\u9ad8\u541e\u5410\u3001\u53ef\u6279\u91cf\u5904\u7406\u7684\u573a\u666f&#xff0c;\u5176\u672c\u8d28\u662f\u7528\u7a0d\u9ad8\u7684\u5ef6\u8fdf\u6362\u53d6\u6781\u9ad8\u7684\u541e\u5410\u3002<\/p>\n<table>\n<tr>\u573a\u666f\u63cf\u8ff0\u6279\u91cf\u5e26\u6765\u7684\u6536\u76ca<\/tr>\n<tbody>\n<tr>\n<td>\u65e5\u5fd7\u91c7\u96c6\u4e0e\u4e0a\u62a5<\/td>\n<td>\u5e94\u7528\u5c06\u591a\u884c\u65e5\u5fd7\u3001\u591a\u4e2a\u76d1\u63a7\u6307\u6807\u6253\u5305&#xff0c;\u5b9a\u671f\u6279\u91cf\u53d1\u9001\u5230\u6d88\u606f\u961f\u5217\u3002<\/td>\n<td>\u8fd9\u662f\u6700\u7ecf\u5178\u7684\u573a\u666f\u3002\u5c06\u6bcf\u79d2\u6210\u5343\u4e0a\u4e07\u6761\u5c0f\u65e5\u5fd7\u5408\u5e76\u4e3a\u6bcf\u79d2\u51e0\u5341\u4e2a\u6279\u6b21&#xff0c;\u7f51\u7edc\u548cBroker\u538b\u529b\u9aa4\u964d\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u6570\u636e\u540c\u6b65\u4e0eETL<\/td>\n<td>\u4ece\u6570\u636e\u5e93Binlog\u6355\u83b7\u4e00\u6279\u53d8\u66f4\u8bb0\u5f55&#xff0c;\u6279\u91cf\u53d1\u9001\u5230\u6570\u636e\u4ed3\u5e93\u6216\u641c\u7d22\u7d22\u5f15\u3002<\/td>\n<td>\u51cf\u5c11\u5bf9\u4e0b\u6e38\u7cfb\u7edf\u7684\u8fde\u63a5\u538b\u529b&#xff0c;\u63d0\u9ad8\u6570\u636e\u540c\u6b65\u7684\u541e\u5410\u91cf\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u79bb\u7ebf\u6d88\u606f\u63a8\u9001<\/td>\n<td>\u5411\u767e\u4e07\u7528\u6237\u53d1\u9001\u7cfb\u7edf\u901a\u77e5\u65f6&#xff0c;\u6309\u7528\u6237\u6807\u7b7e\u5206\u6279&#xff0c;\u6bcf\u6279\u5305\u542b\u6570\u5343\u4e2a\u7528\u6237ID\u3002<\/td>\n<td>\u6781\u5927\u51cf\u5c11\u63a8\u9001\u670d\u52a1\u4e0e\u6d88\u606f\u961f\u5217\u4e4b\u95f4\u7684\u4ea4\u4e92\u6b21\u6570\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u4ea4\u6613\u6d41\u6c34\u8bb0\u5f55<\/td>\n<td>\u5728\u652f\u4ed8\u7cfb\u7edf\u4e2d&#xff0c;\u5c06\u77ed\u65f6\u95f4\u5185\u4ea7\u751f\u7684\u591a\u7b14\u4ea4\u6613\u6d41\u6c34\u5408\u5e76\u53d1\u9001\u5230\u7ed3\u7b97Topic\u3002<\/td>\n<td>\u964d\u4f4e\u6838\u5fc3\u4ea4\u6613\u94fe\u8def\u7684\u7f51\u7edc\u5f00\u9500&#xff0c;\u5c06\u8ba1\u7b97\u4e0e\u8bb0\u5f55\u89e3\u8026\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4 style=\"background-color:transparent\">3.3 \u5de5\u4f5c\u6d41\u7a0b<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1193\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260121024939-69703ec3c56b7.png\" width=\"937\" \/><\/p>\n<p>\u6d41\u7a0b\u8be6\u89e3&#xff1a;<\/p>\n<li>\n<p>\u751f\u4ea7\u8005\u7d2f\u79ef&#xff1a;\u751f\u4ea7\u8005\u5e94\u7528\u5728\u5185\u5b58\u4e2d\u7d2f\u79ef\u591a\u6761\u6d88\u606f&#xff08;Message\u5bf9\u8c61&#xff09;&#xff0c;\u653e\u5165\u4e00\u4e2a\u00a0List\u3002<\/p>\n<\/li>\n<li>\n<p>\u7f16\u7801\u4e0e\u538b\u7f29&#xff08;\u53ef\u9009&#xff09;&#xff1a;RocketMQ\u4f1a\u5c06\u8fd9\u4e2a\u00a0List\u00a0\u5e8f\u5217\u5316\u4e3a\u4e00\u4e2a\u5927\u7684\u5b57\u8282\u6570\u7ec4\u3002\u4e3a\u4e86\u8fdb\u4e00\u6b65\u63d0\u5347\u6027\u80fd&#xff0c;\u53ef\u4ee5\u542f\u7528\u538b\u7f29&#xff08;\u5982LZ4\u3001Zstd&#xff09;&#xff0c;\u8fd9\u5bf9\u6587\u672c\u7c7b\u5c0f\u6d88\u606f\u6548\u679c\u663e\u8457\u3002<\/p>\n<\/li>\n<li>\n<p>\u6279\u91cf\u53d1\u9001&#xff1a;\u8c03\u7528\u00a0producer.send(batchList)&#xff0c;\u5c06\u6574\u4e2a\u6279\u6b21\u901a\u8fc7\u4e00\u6b21\u7f51\u7edc\u8bf7\u6c42\u53d1\u9001\u7ed9Broker\u3002<\/p>\n<\/li>\n<li>\n<p>Broker\u5904\u7406&#xff1a;Broker\u6536\u5230\u8fd9\u4e2a\u6279\u91cf\u6d88\u606f\u540e&#xff0c;\u4f1a\u5c06\u5176\u4f5c\u4e3a\u4e00\u4e2a\u7279\u6b8a\u7684\u201c\u5927\u6d88\u606f\u201d\u00a0\u5199\u5165CommitLog\u3002\u4f46\u5728\u903b\u8f91\u4e0a&#xff0c;\u5b83\u4f1a\u89e3\u6790\u51fa\u5185\u90e8\u5305\u542b\u7684\u6bcf\u4e00\u6761\u5b50\u6d88\u606f&#xff0c;\u5e76\u4e3a\u5176\u5355\u72ec\u6784\u5efaConsumeQueue\u7d22\u5f15\u3002<\/p>\n<\/li>\n<li>\n<p>\u6d88\u8d39\u8005\u6d88\u8d39&#xff1a;\u5bf9\u6d88\u8d39\u8005\u5b8c\u5168\u900f\u660e\u3002\u6d88\u8d39\u8005\u62c9\u53d6\u6d88\u606f\u65f6&#xff0c;\u4eceConsumeQueue\u4e2d\u83b7\u53d6\u7684\u4ecd\u7136\u662f\u5355\u6761\u6d88\u606f\u7684\u7d22\u5f15&#xff0c;\u5e76\u4eceCommitLog\u4e2d\u8bfb\u53d6\u5bf9\u5e94\u7684\u6570\u636e\u6bb5\u3002\u6d88\u8d39\u903b\u8f91\u611f\u77e5\u4e0d\u5230\u6d88\u606f\u6700\u521d\u662f\u6279\u91cf\u53d1\u9001\u7684\u3002<\/p>\n<\/li>\n<h4>3.4 \u5e94\u7528\u793a\u4f8b<\/h4>\n<p>\/**<br \/>\n * \u81ea\u9002\u5e94\u6279\u91cf\u6d88\u606f\u5904\u7406\u5668<br \/>\n * \u5904\u7406\u5927\u5c0f\u6df7\u5408\u7684\u6d88\u606f\u573a\u666f<br \/>\n *\/<br \/>\n&#064;Service<br \/>\npublic class AdaptiveBatchProcessor {<\/p>\n<p>    \/\/ \u5927\u5c0f\u6d88\u606f\u9608\u503c&#xff08;1KB&#xff09;<br \/>\n    private static final int SMALL_MESSAGE_THRESHOLD &#061; 1024;<\/p>\n<p>    \/**<br \/>\n     * \u81ea\u9002\u5e94\u6279\u91cf\u5904\u7406<br \/>\n     *\/<br \/>\n    public void adaptiveBatchProcess(List&lt;MessageExt&gt; messages) {<br \/>\n        \/\/ 1. \u5206\u79bb\u5927\u5c0f\u6d88\u606f<br \/>\n        Map&lt;Boolean, List&lt;MessageExt&gt;&gt; partitioned &#061; messages.stream()<br \/>\n            .collect(Collectors.partitioningBy(<br \/>\n                msg -&gt; msg.getBody().length &lt;&#061; SMALL_MESSAGE_THRESHOLD<br \/>\n            ));<\/p>\n<p>        List&lt;MessageExt&gt; smallMessages &#061; partitioned.get(true);<br \/>\n        List&lt;MessageExt&gt; largeMessages &#061; partitioned.get(false);<\/p>\n<p>        \/\/ 2. \u5c0f\u6d88\u606f\u6279\u91cf\u5904\u7406<br \/>\n        if (!smallMessages.isEmpty()) {<br \/>\n            processSmallMessagesBatch(smallMessages);<br \/>\n        }<\/p>\n<p>        \/\/ 3. \u5927\u6d88\u606f\u5355\u72ec\u5904\u7406<br \/>\n        if (!largeMessages.isEmpty()) {<br \/>\n            processLargeMessagesSeparately(largeMessages);<br \/>\n        }<br \/>\n    }<\/p>\n<p>    \/**<br \/>\n     * \u5c0f\u6d88\u606f\u6279\u91cf\u5904\u7406&#xff08;\u9ad8\u541e\u5410&#xff09;<br \/>\n     *\/<br \/>\n    private void processSmallMessagesBatch(List&lt;MessageExt&gt; messages) {<br \/>\n        \/\/ \u6309\u4e1a\u52a1\u7c7b\u578b\u5206\u7ec4\u6279\u91cf\u5904\u7406<br \/>\n        Map&lt;String, List&lt;MessageExt&gt;&gt; grouped &#061; messages.stream()<br \/>\n            .collect(Collectors.groupingBy(<br \/>\n                msg -&gt; msg.getTags()<br \/>\n            ));<\/p>\n<p>        for (List&lt;MessageExt&gt; group : grouped.values()) {<br \/>\n            \/\/ \u6279\u91cf\u6570\u636e\u5e93\u64cd\u4f5c<br \/>\n            batchInsertToDatabase(group);<\/p>\n<p>            \/\/ \u6279\u91cf\u66f4\u65b0\u7f13\u5b58<br \/>\n            batchUpdateCache(group);<\/p>\n<p>            \/\/ \u6279\u91cf\u53d1\u9001\u4e0b\u6e38\u6d88\u606f<br \/>\n            batchSendDownstream(group);<br \/>\n        }<br \/>\n    }<\/p>\n<p>    \/**<br \/>\n     * \u5927\u6d88\u606f\u5355\u72ec\u5904\u7406&#xff08;\u4fdd\u8bc1\u53ef\u9760\u6027&#xff09;<br \/>\n     *\/<br \/>\n    private void processLargeMessagesSeparately(List&lt;MessageExt&gt; messages) {<br \/>\n        for (MessageExt message : messages) {<br \/>\n            try {<br \/>\n                \/\/ \u5355\u72ec\u5904\u7406\u6bcf\u4e2a\u5927\u6d88\u606f<br \/>\n                processSingleLargeMessage(message);<br \/>\n            } catch (Exception e) {<br \/>\n                log.error(&#034;\u5904\u7406\u5927\u6d88\u606f\u5931\u8d25: msgId&#061;{}&#034;, message.getMsgId(), e);<br \/>\n                \/\/ \u5927\u6d88\u606f\u5931\u8d25\u9700\u8981\u7279\u6b8a\u5904\u7406<br \/>\n                handleLargeMessageFailure(message, e);<br \/>\n            }<br \/>\n        }<br \/>\n    }<br \/>\n} <\/p>\n<h3>\u56db\u3001\u91cd\u8bd5\u961f\u5217\u4e0e\u6b7b\u4fe1\u961f\u5217<\/h3>\n<h4>4.1 \u8fd0\u8f6c\u6d41\u7a0b<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1193\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260121024940-69703ec45c6a4.png\" width=\"719\" \/><\/p>\n<h4 style=\"background-color:transparent\">4.2 \u91cd\u8bd5\u961f\u5217<\/h4>\n<li>\n<p>\u89e6\u53d1\u6761\u4ef6&#xff1a;\u5f53\u6d88\u8d39\u8005\u76d1\u542c\u5668\u8fd4\u56de\u00a0RECONSUME_LATER\u00a0\u6216\u629b\u51fa\u5f02\u5e38\u65f6&#xff0c;\u5f53\u524d\u6d88\u8d39\u88ab\u89c6\u4e3a\u5931\u8d25\u3002<\/p>\n<\/li>\n<li>\n<p>\u672c\u8d28&#xff1a;\u91cd\u8bd5\u961f\u5217\u662f\u4e00\u4e2a\u903b\u8f91\u4e0a\u7684\u3001\u7279\u6b8a\u547d\u540d\u7684Topic&#xff0c;\u7531Broker\u8fdb\u884c\u7279\u6b8a\u7ba1\u7406\u548c\u8c03\u5ea6&#xff0c;\u4ee5\u5b9e\u73b0\u5ef6\u8fdf\u91cd\u8bd5\u7684\u529f\u80fd\u3002<\/p>\n<ul>\n<li>\n<p>\u4f8b\u5982&#xff0c;\u6d88\u8d39\u8005\u7ec4\u00a0MyConsumerGroup\u00a0\u7684\u91cd\u8bd5\u961f\u5217Topic\u540d\u4e3a\u00a0%RETRY%MyConsumerGroup\u3002<\/p>\n<\/li>\n<li>\n<p>\u8fd9\u4e2a Topic \u4e0e\u666e\u901a Topic \u5728\u5b58\u50a8\u5c42\u9762\u6709\u91cd\u8981\u533a\u522b<\/p>\n<p>\u4e0d\u5199\u5165\u00a0ConsumeQueue&#xff1a;\u4e3a\u91cd\u8bd5\u961f\u5217&#xff08;%RETRY%&#8230;&#xff09;\u521b\u5efa\u7684\u6d88\u606f&#xff0c;\u4e0d\u4f1a\u50cf\u666e\u901a\u6d88\u606f\u90a3\u6837\u5728 Broker \u7684\u00a0commitlog\u00a0\u76ee\u5f55\u4e0b\u751f\u6210\u5bf9\u5e94\u7684\u00a0ConsumeQueue\u00a0\u7d22\u5f15\u6587\u4ef6\u3002\u8fd9\u610f\u5473\u7740\u5b83\u66f4\u504f\u5411\u4e8e\u4e00\u4e2a\u903b\u8f91\u961f\u5217&#xff0c;Broker \u5185\u90e8\u4f7f\u7528\u4e86\u4e0d\u540c\u7684\u673a\u5236\u6765\u7ba1\u7406\u548c\u8c03\u5ea6\u8fd9\u4e9b\u5f85\u91cd\u8bd5\u7684\u6d88\u606f<\/p>\n<p>\u7279\u6b8a\u5904\u7406&#xff1a;\u5176\u6d88\u606f\u7684\u5b58\u50a8\u548c\u5ef6\u8fdf\u6295\u9012\u7531 Broker \u7684\u00a0ScheduleMessageService&#xff08;\u5b9a\u65f6\u6d88\u606f\u670d\u52a1&#xff09;\u7edf\u4e00\u7ba1\u7406\u3002<\/p>\n<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u91cd\u8bd5\u7b56\u7565&#xff1a;\u91c7\u7528\u6307\u6570\u9000\u907f\u5ef6\u8fdf&#xff0c;\u5ef6\u8fdf\u7ea7\u522b\u9010\u6e10\u589e\u52a0&#xff0c;\u907f\u514d\u5bf9\u7cfb\u7edf\u9020\u6210\u8fde\u7eed\u51b2\u51fb\u3002<\/p>\n<ul>\n<li>\n<p>\u7b2c1\u6b21\u91cd\u8bd5&#xff1a;\u5ef6\u8fdf 10 \u79d2<\/p>\n<\/li>\n<li>\n<p>\u7b2c2\u6b21\u91cd\u8bd5&#xff1a;\u5ef6\u8fdf 30 \u79d2<\/p>\n<\/li>\n<li>\n<p>\u7b2c3\u6b21\u91cd\u8bd5&#xff1a;\u5ef6\u8fdf 1 \u5206\u949f<\/p>\n<\/li>\n<li>\n<p>&#8230; \u540e\u7eed\u5ef6\u8fdf\u8d8a\u6765\u8d8a\u957f&#xff0c;\u6700\u5927\u95f4\u9694\u4e3a2\u5c0f\u65f6\u3002<\/p>\n<\/li>\n<li>\n<p>\u9ed8\u8ba4\u6700\u591a\u91cd\u8bd516\u6b21\u3002\u8d85\u8fc7\u540e&#xff0c;\u6d88\u606f\u8fdb\u5165\u6b7b\u4fe1\u961f\u5217\u3002<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u7279\u6027&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u81ea\u52a8\u521b\u5efa&#xff1a;\u65e0\u9700\u624b\u52a8\u521b\u5efa\u3002<\/p>\n<\/li>\n<li>\n<p>\u81ea\u52a8\u8ba2\u9605&#xff1a;\u539f\u59cb\u6d88\u8d39\u8005\u7ec4\u4f1a\u81ea\u52a8\u8ba2\u9605\u81ea\u5df1\u7684\u91cd\u8bd5\u961f\u5217Topic\u3002<\/p>\n<\/li>\n<li>\n<p>\u91cd\u8bd5\u961f\u5217\u4e0d\u4fdd\u8bc1\u987a\u5e8f<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u56e0\u4e3a\u91cd\u8bd5\u961f\u5217\u7684\u6838\u5fc3\u673a\u5236\u662f\u5ef6\u8fdf\u6295\u9012&#xff0c;\u6bcf\u6761\u6d88\u606f\u6839\u636e\u5176\u91cd\u8bd5\u6b21\u6570\u88ab\u8d4b\u4e88\u4e0d\u540c\u7684\u5ef6\u8fdf\u7ea7\u522b<\/p>\n<p>\u5047\u8bbe\u4e24\u6761\u5148\u540e\u5931\u8d25\u7684\u6d88\u606f M1&#xff08;\u7b2c1\u6b21\u91cd\u8bd5&#xff09;\u548c M2&#xff08;\u7b2c1\u6b21\u91cd\u8bd5&#xff09;&#xff0c;\u5b83\u4eec\u90fd\u88ab\u5ef6\u8fdf10\u79d2\u3002\u4f46\u7531\u4e8e\u7f51\u7edc\u3001\u7ebf\u7a0b\u8c03\u5ea6\u7b49\u7ec6\u5fae\u5dee\u5f02&#xff0c;\u5b83\u4eec\u88ab\u91cd\u65b0\u6295\u9012\u56de\u6d88\u8d39\u8005\u7ec4\u7684\u987a\u5e8f\u65e0\u6cd5\u4fdd\u8bc1\u4e00\u5b9a\u662f M1 \u5148\u4e8e M2\u3002\u5728\u5e76\u53d1\u6d88\u8d39\u7684\u573a\u666f\u4e0b&#xff08;MessageListenerConcurrently&#xff09;&#xff0c;\u8fd9\u4e2a\u987a\u5e8f\u4f1a\u88ab\u8fdb\u4e00\u6b65\u6253\u4e71\u3002<\/p>\n<ul>\n<li>\n<p>\u7ed3\u8bba&#xff1a;\u5982\u679c\u4f60\u9700\u8981\u4e25\u683c\u7684\u6d88\u606f\u987a\u5e8f&#xff0c;\u5fc5\u987b\u4f7f\u7528\u00a0MessageListenerOrderly&#xff0c;\u5e76\u4e14\u5728\u6d88\u8d39\u5931\u8d25\u65f6&#xff0c;\u987a\u5e8f\u76d1\u542c\u5668\u4f1a\u6302\u8d77\u961f\u5217\u800c\u4e0d\u662f\u5c06\u6d88\u606f\u53d1\u5f80\u91cd\u8bd5\u961f\u5217&#xff0c;\u6240\u4ee5&#xff0c;\u8fd9\u672c\u8eab\u4e5f\u8bf4\u660e\u4e86\u91cd\u8bd5\u4f1a\u7834\u574f\u987a\u5e8f\u3002<\/p>\n<\/li>\n<\/ul>\n<h4 style=\"background-color:transparent\">4.3 \u6b7b\u4fe1\u961f\u5217<\/h4>\n<li>\n<p>\u89e6\u53d1\u6761\u4ef6&#xff1a;\u5f53\u6d88\u606f\u5728\u91cd\u8bd5\u961f\u5217\u4e2d\u8fbe\u5230\u6700\u5927\u91cd\u8bd5\u6b21\u6570&#xff08;\u9ed8\u8ba416\u6b21&#xff09;\u540e\u4ecd\u6d88\u8d39\u5931\u8d25&#xff0c;\u5c31\u4f1a\u88ab\u81ea\u52a8\u8f6c\u79fb\u5230\u6b7b\u4fe1\u961f\u5217\u3002\u4e0e\u91cd\u8bd5\u961f\u5217\u7c7b\u4f3c&#xff0c;\u6b7b\u4fe1\u961f\u5217&#xff08;%DLQ%&#8230;\u00a0Topic&#xff09;\u4e5f\u662f\u5728\u6d88\u606f\u5373\u5c06\u88ab\u6295\u5165\u65f6&#xff0c;\u7531 Broker \u81ea\u52a8\u521b\u5efa\u7684&#xff0c;\u65e0\u9700\u8fd0\u7ef4\u4eba\u5458\u9884\u5148\u5728\u63a7\u5236\u53f0\u521b\u5efa\u3002<\/p>\n<\/li>\n<li>\n<p>\u672c\u8d28&#xff1a;\u540c\u6837\u662f\u4e00\u4e2a\u7279\u6b8a\u547d\u540d\u7684Topic&#xff0c;\u683c\u5f0f\u4e3a\u00a0%DLQ%\u3002<\/p>\n<ul>\n<li>\n<p>\u4f8b\u5982&#xff0c;\u6d88\u8d39\u8005\u7ec4\u00a0MyConsumerGroup\u00a0\u7684\u6b7b\u4fe1\u961f\u5217Topic\u540d\u4e3a\u00a0%DLQ%MyConsumerGroup\u3002<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u7279\u6027&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u6d88\u606f\u7684\u7ec8\u70b9\u7ad9&#xff1a;\u8fdb\u5165\u6b7b\u4fe1\u961f\u5217\u7684\u6d88\u606f\u4e0d\u4f1a\u518d\u88ab\u4efb\u4f55\u6d88\u8d39\u8005\u81ea\u52a8\u6d88\u8d39\u3002<\/p>\n<\/li>\n<li>\n<p>\u4fdd\u7559\u539f\u4fe1\u606f&#xff1a;\u6d88\u606f\u7684\u6240\u6709\u5c5e\u6027&#xff08;\u539f\u59cbTopic\u3001Tag\u3001Key\u3001Body\u3001\u91cd\u8bd5\u6b21\u6570&#xff09;\u90fd\u4f1a\u88ab\u4fdd\u7559&#xff0c;\u4fbf\u4e8e\u6392\u67e5\u3002<\/p>\n<\/li>\n<li>\n<p>\u5927\u90e8\u5206\u60c5\u51b5\u9700\u8981\u4eba\u5de5\u5e72\u9884&#xff1a;\u5f00\u53d1\u5de5\u7a0b\u5e08\u987b\u989d\u5916\u8ba2\u9605\u8fd9\u4e2a\u6b7b\u4fe1\u961f\u5217Topic&#xff0c;\u6216\u901a\u8fc7\u63a7\u5236\u53f0\u67e5\u770b&#xff0c;\u6765\u5206\u6790\u548c\u5904\u7406\u8fd9\u4e9b\u201c\u6b7b\u4ea1\u201d\u6d88\u606f\u3002<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/p>\n<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0a\u4e00\u671f\u300a7\u5929\u5b66\u4f1aRedis\u300b\u5df2\u7ecf\u5b8c\u7ed3&#xff0c;\u672c\u5468\u5f00\u59cb\u6574\u7406RocketMQ&#xff0c;\u6b22\u8fce\u6307\u6b63&#xff0c;\u70b9\u8d5e\u5173\u6ce8\u54e6~<br \/>\n\u300aRocketMQ\u7814\u8bfb\u300bDay1&#xff1a;RocketMQ \u57fa\u7840\u67b6\u6784\u4e0e\u6838\u5fc3\u6982\u5ff5<br \/>\n\u300aRocketMQ\u7814\u8bfb\u300bDay2&#xff1a;\u751f\u4ea7\u8005\u7684\u8bbe\u8ba1\u4e0e\u5b9e\u8df5<br \/>\n\u300aRocketMQ\u7814\u8bfb\u300bDay3&#xff1a;\u6d88\u8d39\u8005\u7684\u8bbe\u8ba1\u4e0e\u5b9e\u8df5<br \/>\n\u300aRocketMQ\u7814\u8bfb\u300bDay4&#xff1a;\u6d88\u606f\u5b58\u50a8\u4e0e\u590d\u5236\u673a\u5236<br \/>\n\u300aRocketMQ\u7814\u8bfb\u300bDay5&amp;#xff1a<\/p>\n","protected":false},"author":2,"featured_media":63125,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[99,190],"topic":[],"class_list":["post-63129","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-java","tag-190"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u300aRocketMQ\u7814\u8bfb\u300bDay6\uff1a\u9ad8\u7ea7\u7279\u6027\u4e0e\u5b9e\u6218\u6848\u4f8b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/63129.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u300aRocketMQ\u7814\u8bfb\u300bDay6\uff1a\u9ad8\u7ea7\u7279\u6027\u4e0e\u5b9e\u6218\u6848\u4f8b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u4e0a\u4e00\u671f\u300a7\u5929\u5b66\u4f1aRedis\u300b\u5df2\u7ecf\u5b8c\u7ed3&#xff0c;\u672c\u5468\u5f00\u59cb\u6574\u7406RocketMQ&#xff0c;\u6b22\u8fce\u6307\u6b63&#xff0c;\u70b9\u8d5e\u5173\u6ce8\u54e6~ \u300aRocketMQ\u7814\u8bfb\u300bDay1&#xff1a;RocketMQ \u57fa\u7840\u67b6\u6784\u4e0e\u6838\u5fc3\u6982\u5ff5 \u300aRocketMQ\u7814\u8bfb\u300bDay2&#xff1a;\u751f\u4ea7\u8005\u7684\u8bbe\u8ba1\u4e0e\u5b9e\u8df5 \u300aRocketMQ\u7814\u8bfb\u300bDay3&#xff1a;\u6d88\u8d39\u8005\u7684\u8bbe\u8ba1\u4e0e\u5b9e\u8df5 \u300aRocketMQ\u7814\u8bfb\u300bDay4&#xff1a;\u6d88\u606f\u5b58\u50a8\u4e0e\u590d\u5236\u673a\u5236 \u300aRocketMQ\u7814\u8bfb\u300bDay5&amp;#xff1a\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/63129.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-21T02:49:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260121024938-69703ec225760.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/63129.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/63129.html\",\"name\":\"\u300aRocketMQ\u7814\u8bfb\u300bDay6\uff1a\u9ad8\u7ea7\u7279\u6027\u4e0e\u5b9e\u6218\u6848\u4f8b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-01-21T02:49:41+00:00\",\"dateModified\":\"2026-01-21T02:49:41+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/63129.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/63129.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/63129.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u300aRocketMQ\u7814\u8bfb\u300bDay6\uff1a\u9ad8\u7ea7\u7279\u6027\u4e0e\u5b9e\u6218\u6848\u4f8b\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u300aRocketMQ\u7814\u8bfb\u300bDay6\uff1a\u9ad8\u7ea7\u7279\u6027\u4e0e\u5b9e\u6218\u6848\u4f8b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","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":"https:\/\/www.wsisp.com\/helps\/63129.html","og_locale":"zh_CN","og_type":"article","og_title":"\u300aRocketMQ\u7814\u8bfb\u300bDay6\uff1a\u9ad8\u7ea7\u7279\u6027\u4e0e\u5b9e\u6218\u6848\u4f8b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u4e0a\u4e00\u671f\u300a7\u5929\u5b66\u4f1aRedis\u300b\u5df2\u7ecf\u5b8c\u7ed3&#xff0c;\u672c\u5468\u5f00\u59cb\u6574\u7406RocketMQ&#xff0c;\u6b22\u8fce\u6307\u6b63&#xff0c;\u70b9\u8d5e\u5173\u6ce8\u54e6~ \u300aRocketMQ\u7814\u8bfb\u300bDay1&#xff1a;RocketMQ \u57fa\u7840\u67b6\u6784\u4e0e\u6838\u5fc3\u6982\u5ff5 \u300aRocketMQ\u7814\u8bfb\u300bDay2&#xff1a;\u751f\u4ea7\u8005\u7684\u8bbe\u8ba1\u4e0e\u5b9e\u8df5 \u300aRocketMQ\u7814\u8bfb\u300bDay3&#xff1a;\u6d88\u8d39\u8005\u7684\u8bbe\u8ba1\u4e0e\u5b9e\u8df5 \u300aRocketMQ\u7814\u8bfb\u300bDay4&#xff1a;\u6d88\u606f\u5b58\u50a8\u4e0e\u590d\u5236\u673a\u5236 \u300aRocketMQ\u7814\u8bfb\u300bDay5&amp;#xff1a","og_url":"https:\/\/www.wsisp.com\/helps\/63129.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-01-21T02:49:41+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260121024938-69703ec225760.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/63129.html","url":"https:\/\/www.wsisp.com\/helps\/63129.html","name":"\u300aRocketMQ\u7814\u8bfb\u300bDay6\uff1a\u9ad8\u7ea7\u7279\u6027\u4e0e\u5b9e\u6218\u6848\u4f8b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-01-21T02:49:41+00:00","dateModified":"2026-01-21T02:49:41+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/63129.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/63129.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/63129.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u300aRocketMQ\u7814\u8bfb\u300bDay6\uff1a\u9ad8\u7ea7\u7279\u6027\u4e0e\u5b9e\u6218\u6848\u4f8b"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/63129","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=63129"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/63129\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/63125"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=63129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=63129"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=63129"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=63129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}