{"id":5195,"date":"2024-08-01T22:47:43","date_gmt":"2024-08-01T14:47:43","guid":{"rendered":"https:\/\/xinchewhd.com.cn\/?p=5195"},"modified":"2024-08-01T22:47:43","modified_gmt":"2024-08-01T14:47:43","slug":"rocketmq%e4%b8%80%e6%9d%a1%e6%b6%88%e6%81%af%e7%9f%ad%e6%9a%82%e8%80%8c%e5%8f%88%e7%b2%be%e5%bd%a9%e7%9a%84%e4%b8%80%e7%94%9f%ef%bc%81","status":"publish","type":"post","link":"https:\/\/xinchewhd.com.cn\/index.php\/rabbitmq\/rocketmq%e4%b8%80%e6%9d%a1%e6%b6%88%e6%81%af%e7%9f%ad%e6%9a%82%e8%80%8c%e5%8f%88%e7%b2%be%e5%bd%a9%e7%9a%84%e4%b8%80%e7%94%9f%ef%bc%81\/","title":{"rendered":"RocketMQ\u4e00\u6761\u6d88\u606f\u77ed\u6682\u800c\u53c8\u7cbe\u5f69\u7684\u4e00\u751f\uff01"},"content":{"rendered":"<div class='wxsyncmain'>\n<section data-tool=\"mdnice\u7f16\u8f91\u5668\" data-website=\"https:\/\/www.mdnice.com\" style=\"font-size: 16px;color: black;padding-right: 10px;padding-left: 10px;line-height: 1.6;letter-spacing: 0px;word-break: break-word;text-align: left;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;margin-bottom: 24px;\" data-mpa-powered-by=\"yiban.io\">\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u5927\u5bb6\u597d\uff0c\u6211\u662f\u98d8\u6e3a~~<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u8fd9\u7bc7\u6587\u7ae0\u6211\u51c6\u5907\u6765\u804a\u4e00\u804aRocketMQ\u6d88\u606f\u7684\u4e00\u751f\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u4e0d\u77e5\u4f60\u662f\u5426\u8ddf\u6211\u4e00\u6837\uff0c\u5728\u4f7f\u7528RocketMQ\u7684\u65f6\u5019\u4e5f\u6709\u5f88\u591a\u7684\u7591\u60d1\uff1a<\/p>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\u6d88\u606f\u662f\u5982\u4f55\u53d1\u9001\u7684\uff0c\u961f\u5217\u662f\u5982\u4f55\u9009\u62e9\u7684\uff1f<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\u6d88\u606f\u662f\u5982\u4f55\u5b58\u50a8\u7684\uff0c\u662f\u5982\u4f55\u4fdd\u8bc1\u8bfb\u5199\u7684\u9ad8\u6027\u80fd\uff1f<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">RocketMQ\u662f\u5982\u4f55\u5b9e\u73b0\u6d88\u606f\u7684\u5feb\u901f\u67e5\u627e\u7684\uff1f<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">RocketMQ\u662f\u5982\u4f55\u5b9e\u73b0\u9ad8\u53ef\u7528\u7684\uff1f<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\u6d88\u606f\u662f\u5728\u4ec0\u4e48\u65f6\u5019\u4f1a\u88ab\u6e05\u9664\uff1f<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">...<\/section>\n<\/li>\n<\/ul>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u672c\u6587\u5c31\u901a\u8fc7\u63a2\u8ba8\u4e0a\u8ff0\u95ee\u9898\u6765\u63a2\u79d8\u6d88\u606f\u5728RocketMQ\u4e2d\u77ed\u6682\u800c\u53c8\u7cbe\u5f69\u7684\u4e00\u751f\u3002<\/p>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;border-bottom: 2px solid rgb(239, 112, 96);font-size: 1.3em;\"><span style=\"display: none;\"><\/span><span style=\"display: inline-block;background: rgb(239, 112, 96);color: rgb(255, 255, 255);padding: 3px 10px 1px;border-top-right-radius: 3px;border-top-left-radius: 3px;margin-right: 3px;\">\u6838\u5fc3\u6982\u5ff5<\/span><span style=\"display: inline-block;vertical-align: bottom;border-bottom: 36px solid #efebe9;border-right: 20px solid transparent;\"> <\/span><\/h2>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\"><strong>NameServer<\/strong>\uff1a\u53ef\u4ee5\u7406\u89e3\u4e3a\u662f\u4e00\u4e2a\u6ce8\u518c\u4e2d\u5fc3\uff0c\u4e3b\u8981\u662f\u7528\u6765\u4fdd\u5b58topic\u8def\u7531\u4fe1\u606f\uff0c\u7ba1\u7406Broker\u3002\u5728NameServer\u7684\u96c6\u7fa4\u4e2d\uff0cNameServer\u4e0eNameServer\u4e4b\u95f4\u662f\u6ca1\u6709\u4efb\u4f55\u901a\u4fe1\u7684\u3002<\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\"><strong>Broker<\/strong>\uff1a\u6838\u5fc3\u7684\u4e00\u4e2a\u89d2\u8272\uff0c\u4e3b\u8981\u662f\u7528\u6765\u4fdd\u5b58\u6d88\u606f\u7684\uff0c\u5728\u542f\u52a8\u65f6\u4f1a\u5411NameServer\u8fdb\u884c\u6ce8\u518c\u3002Broker\u5b9e\u4f8b\u53ef\u4ee5\u6709\u5f88\u591a\u4e2a\uff0c\u76f8\u540c\u7684BrokerName\u53ef\u4ee5\u79f0\u4e3a\u4e00\u4e2aBroker\u7ec4\uff0c\u6bcf\u4e2aBroker\u7ec4\u53ea\u4fdd\u5b58\u4e00\u90e8\u5206\u6d88\u606f\u3002<\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\"><strong>topic<\/strong>\uff1a\u53ef\u4ee5\u7406\u89e3\u4e3a\u4e00\u4e2a\u6d88\u606f\u7684\u96c6\u5408\u7684\u540d\u5b57\uff0c\u4e00\u4e2atopic\u53ef\u4ee5\u5206\u5e03\u5728\u4e0d\u540c\u7684Broker\u7ec4\u4e0b\u3002<\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\"><strong>\u961f\u5217\uff08queue\uff09<\/strong>\uff1a\u4e00\u4e2atopic\u53ef\u4ee5\u6709\u5f88\u591a\u961f\u5217\uff0c\u9ed8\u8ba4\u662f\u4e00\u4e2atopic\u5728\u540c\u4e00\u4e2aBroker\u7ec4\u4e2d\u662f4\u4e2a\u3002\u5982\u679c\u4e00\u4e2atopic\u73b0\u5728\u57282\u4e2aBroker\u7ec4\u4e2d\uff0c\u90a3\u4e48\u5c31\u6709\u53ef\u80fd\u67098\u4e2a\u961f\u5217\u3002<\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\"><strong>\u751f\u4ea7\u8005<\/strong>\uff1a\u751f\u4ea7\u6d88\u606f\u7684\u4e00\u65b9\u5c31\u662f\u751f\u4ea7\u8005<\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\"><strong>\u751f\u4ea7\u8005\u7ec4<\/strong>\uff1a\u4e00\u4e2a\u751f\u4ea7\u8005\u7ec4\u53ef\u4ee5\u6709\u5f88\u591a\u751f\u4ea7\u8005\uff0c\u53ea\u9700\u8981\u5728\u521b\u5efa\u751f\u4ea7\u8005\u7684\u65f6\u5019\u6307\u5b9a\u751f\u4ea7\u8005\u7ec4\uff0c\u90a3\u4e48\u8fd9\u4e2a\u751f\u4ea7\u8005\u5c31\u5728\u90a3\u4e2a\u751f\u4ea7\u8005\u7ec4<\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\"><strong>\u6d88\u8d39\u8005<\/strong>\uff1a\u7528\u6765\u6d88\u8d39\u751f\u4ea7\u8005\u6d88\u606f\u7684\u4e00\u65b9<\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;\"><strong>\u6d88\u8d39\u8005\u7ec4<\/strong>\uff1a\u8ddf\u751f\u4ea7\u8005\u4e00\u6837\uff0c\u6bcf\u4e2a\u6d88\u8d39\u8005\u90fd\u6709\u6240\u5728\u7684\u6d88\u8d39\u8005\u7ec4\uff0c\u4e00\u4e2a\u6d88\u8d39\u8005\u7ec4\u53ef\u4ee5\u6709\u5f88\u591a\u7684\u6d88\u8d39\u8005\uff0c\u4e0d\u540c\u7684\u6d88\u8d39\u8005\u7ec4\u6d88\u8d39\u6d88\u606f\u662f\u4e92\u4e0d\u5f71\u54cd\u7684\u3002<\/p>\n<\/section>\n<\/li>\n<\/ul>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;border-bottom: 2px solid rgb(239, 112, 96);font-size: 1.3em;\"><span style=\"display: none;\"><\/span><span style=\"display: inline-block;background: rgb(239, 112, 96);color: rgb(255, 255, 255);padding: 3px 10px 1px;border-top-right-radius: 3px;border-top-left-radius: 3px;margin-right: 3px;\">\u6d88\u606f\u8bde\u751f\u4e0e\u53d1\u9001<\/span><span style=\"display: inline-block;vertical-align: bottom;border-bottom: 36px solid #efebe9;border-right: 20px solid transparent;\"> <\/span><\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u6211\u4eec\u90fd\u77e5\u9053\uff0c\u6d88\u606f\u662f\u7531\u4e1a\u52a1\u7cfb\u7edf\u5728\u8fd0\u884c\u8fc7\u7a0b\u4ea7\u751f\u7684\uff0c\u5f53\u6211\u4eec\u7684\u4e1a\u52a1\u7cfb\u7edf\u4ea7\u751f\u4e86\u6d88\u606f\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u8c03\u7528RocketMQ\u63d0\u4f9b\u7684API\u5411RocketMQ\u53d1\u9001\u6d88\u606f\uff0c\u5c31\u50cf\u4e0b\u9762\u8fd9\u6837<\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><span style=\"display: block;background: url(&quot;https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801215901821.jpeg&quot;) 10px 10px \/ 40px no-repeat rgb(40, 44, 52);height: 30px;width: 100%;margin-bottom: -7px;border-radius: 5px;\"><\/span><code style=\"overflow-x: auto;padding: 16px;color: #abb2bf;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;font-size: 12px;-webkit-overflow-scrolling: touch;padding-top: 15px;background: #282c34;border-radius: 5px;\">consumer.registerMessageListener(<span style=\"color: #c678dd;line-height: 26px;\">new<\/span>MessageListenerOrderly(){<span style=\"color: #61aeee;line-height: 26px;\">@Override<\/span><span style=\"line-height: 26px;\"><span style=\"color: #c678dd;line-height: 26px;\">public<\/span>ConsumeOrderlyStatus<span style=\"color: #61aeee;line-height: 26px;\">consumeMessage<\/span><span style=\"line-height: 26px;\">(List&lt;MessageExt&gt;msgs,ConsumeOrderlyContextcontext)<\/span><\/span>{<span style=\"color: #5c6370;font-style: italic;line-height: 26px;\">\/\/\u6309\u7167\u987a\u5e8f\u6d88\u8d39\u6d88\u606f\u8bb0\u5f55<\/span><span style=\"color: #c678dd;line-height: 26px;\">return<\/span><span style=\"color: #c678dd;line-height: 26px;\">null<\/span>;}});<\/code><\/pre>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;border-bottom: 2px solid rgb(239, 112, 96);font-size: 1.3em;\"><span style=\"display: none;\"><\/span><span style=\"display: inline-block;background: rgb(239, 112, 96);color: rgb(255, 255, 255);padding: 3px 10px 1px;border-top-right-radius: 3px;border-top-left-radius: 3px;margin-right: 3px;\">\u6d88\u606f\u6e05\u7406<\/span><span style=\"display: inline-block;vertical-align: bottom;border-bottom: 36px solid #efebe9;border-right: 20px solid transparent;\"> <\/span><\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u7531\u4e8e\u6d88\u606f\u662f\u5b58\u78c1\u76d8\u7684\uff0c\u4f46\u662f\u78c1\u76d8\u7a7a\u95f4\u662f\u6709\u9650\u7684\uff0c\u6240\u4ee5\u5bf9\u4e8e\u78c1\u76d8\u4e0a\u7684\u6d88\u606f\u662f\u9700\u8981\u6e05\u7406\u7684\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u5f53\u51fa\u73b0\u4ee5\u4e0b\u51e0\u79cd\u60c5\u51b5\u4e0b\u65f6\u5c31\u4f1a\u89e6\u53d1\u6d88\u606f\u6e05\u7406\uff1a<\/p>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\u624b\u52a8\u6267\u884c\u5220\u9664<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\u9ed8\u8ba4\u6bcf\u5929\u51cc\u66684\u70b9\u4f1a\u81ea\u52a8\u6e05\u7406\u8fc7\u671f\u7684\u6587\u4ef6<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\u5f53\u78c1\u76d8\u7a7a\u95f4\u5360\u7528\u7387\u9ed8\u8ba4\u8fbe\u523075%\u4e4b\u540e\uff0c\u4f1a\u81ea\u52a8\u6e05\u7406\u8fc7\u671f\u6587\u4ef6<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\u5f53\u78c1\u76d8\u7a7a\u95f4\u5360\u7528\u7387\u9ed8\u8ba4\u8fbe\u523085%\u4e4b\u540e\uff0c\u65e0\u8bba\u8fd9\u4e2a\u6587\u4ef6\u662f\u5426\u8fc7\u671f\uff0c\u90fd\u4f1a\u88ab\u6e05\u7406\u6389<\/section>\n<\/li>\n<\/ul>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u4e0a\u8ff0\u8fc7\u671f\u7684\u6587\u4ef6\u662f\u6307\u6587\u4ef6\u6700\u540e\u4e00\u6b21\u4fee\u6539\u7684\u65f6\u95f4\u8d85\u8fc772\u5c0f\u65f6(\u9ed8\u8ba4\u60c5\u51b5\u4e0b)\uff0c\u5f53\u7136\u5982\u679c\u4f60\u7684\u8001\u677f\u975e\u5e38\u6709\u94b1\uff0c\u670d\u52a1\u5668\u7684\u78c1\u76d8\u7a7a\u95f4\u975e\u5e38\u5927\uff0c\u53ef\u4ee5\u5c06\u8fd9\u4e2a\u8fc7\u671f\u65f6\u95f4\u4fee\u6539\u7684\u66f4\u957f\u4e00\u70b9\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u6709\u7684\u5c0f\u4f19\u4f34\u80af\u5b9a\u4f1a\u6709\u7591\u95ee\uff0c\u5982\u679c\u6d88\u606f\u6ca1\u6709\u88ab\u6d88\u606f\uff0c\u90a3\u4e48\u4f1a\u88ab\u6e05\u7406\u4e48\uff1f<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u7b54\u6848\u662f\u4f1a\u88ab\u6e05\u7406\u7684\uff0c\u56e0\u4e3a\u6e05\u7406\u6d88\u606f\u662f\u76f4\u63a5\u5220\u9664CommitLog\u6587\u4ef6\uff0c\u6240\u4ee5\u53ea\u8981\u8fbe\u5230\u4e0a\u9762\u7684\u6761\u4ef6\u5c31\u4f1a\u76f4\u63a5\u5220\u9664CommitLog\u6587\u4ef6\uff0c\u65e0\u8bba\u6587\u4ef6\u5185\u7684\u6d88\u606f\u662f\u5426\u88ab\u6d88\u8d39\u8fc7\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u5f53\u6d88\u606f\u88ab\u6e05\u7406\u5b8c\u4e4b\u540e\uff0c\u6d88\u606f\u4e5f\u5c31\u7ed3\u675f\u4e86\u5b83\u7cbe\u5f69\u7684\u4e00\u751f\u3002<\/p>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;border-bottom: 2px solid rgb(239, 112, 96);font-size: 1.3em;\"><span style=\"display: none;\"><\/span><span style=\"display: inline-block;background: rgb(239, 112, 96);color: rgb(255, 255, 255);padding: 3px 10px 1px;border-top-right-radius: 3px;border-top-left-radius: 3px;margin-right: 3px;\">\u6d88\u606f\u7684\u4e00\u751f\u603b\u7ed3<\/span><span style=\"display: inline-block;vertical-align: bottom;border-bottom: 36px solid #efebe9;border-right: 20px solid transparent;\"> <\/span><\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u4e3a\u4e86\u66f4\u597d\u5730\u7406\u89e3\u672c\u6587\uff0c\u8fd9\u91cc\u518d\u6765\u603b\u7ed3\u4e00\u4e0bRokcetMQ\u6d88\u606f\u4e00\u751f\u7684\u5404\u4e2a\u73af\u8282\u3002<\/p>\n<h5 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;\"><span style=\"display: none;\"><\/span>\u6d88\u606f\u53d1\u9001<span style=\"display: none;\"><\/span><\/h5>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\u751f\u4ea7\u8005\u4ea7\u751f\u6d88\u606f<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\u751f\u4ea7\u8005\u5728\u53d1\u9001\u6d88\u606f\u4e4b\u524d\u4f1a\u62c9\u53d6topic\u7684\u8def\u7531\u4fe1\u606f<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\u6839\u636e\u961f\u5217\u9009\u62e9\u7b97\u6cd5\uff0c\u4ecetopic\u4f17\u591a\u7684\u961f\u5217\u4e2d\u9009\u62e9\u4e00\u4e2a\u961f\u5217<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\u8ddf\u961f\u5217\u6240\u5728\u7684Broker\u673a\u5668\u5efa\u7acb\u7f51\u7edc\u8fde\u63a5\uff0c\u5c06\u6d88\u606f\u53d1\u9001\u5230Broker\u4e0a<\/section>\n<\/li>\n<\/ul>\n<h5 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;\"><span style=\"display: none;\"><\/span>\u6d88\u606f\u5b58\u50a8<span style=\"display: none;\"><\/span><\/h5>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">Broker\u63a5\u6536\u5230\u751f\u4ea7\u8005\u7684\u6d88\u606f\u5c06\u6d88\u606f\u5b58\u5230CommitLog\u4e2d<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\u5728CosumeQueue\u4e2d\u5b58\u50a8\u8fd9\u6761\u6d88\u606f\u5728CommitLog\u4e2d\u7684\u4f4d\u7f6e<\/section>\n<\/li>\n<\/ul>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u7531\u4e8eCommitLog\u548cCosumeQueue\u90fd\u6d89\u53ca\u5230\u78c1\u76d8\u6587\u4ef6\u7684\u8bfb\u5199\u64cd\u4f5c\uff0c\u4e3a\u4e86\u63d0\u9ad8\u8bfb\u5199\u6548\u7387\uff0cRokcetMQ\u4f7f\u7528\u5230\u4e86\u96f6\u62f7\u8d1d\u6280\u672f\uff0c\u5176\u5b9e\u5c31\u662f\u8c03\u7528\u4e86\u4e00\u4e0bJava\u63d0\u4f9b\u7684api\u3002\u3002<\/p>\n<h5 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;\"><span style=\"display: none;\"><\/span>\u9ad8\u53ef\u7528<span style=\"display: none;\"><\/span><\/h5>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u5982\u679c\u662f\u96c6\u7fa4\u6a21\u5f0f\uff0c\u90a3\u4e48\u6d88\u606f\u4f1a\u88ab\u540c\u6b65\u5230\u4ece\u8282\u70b9\uff0c\u4ece\u8282\u70b9\u4f1a\u5c06\u6d88\u606f\u5b58\u5230\u81ea\u5df1\u7684CommitLog\u6587\u4ef6\u4e2d\u3002\u8fd9\u6837\u5c31\u7b97\u4e3b\u8282\u70b9\u6302\u4e86\uff0c\u4ece\u8282\u70b9\u4ecd\u7136\u53ef\u4ee5\u5bf9\u5916\u63d0\u4f9b\u8bbf\u95ee\u3002<\/p>\n<h5 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;\"><span style=\"display: none;\"><\/span>\u6d88\u606f\u6d88\u8d39<span style=\"display: none;\"><\/span><\/h5>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\u6d88\u8d39\u8005\u4f1a\u62c9\u53d6\u8ba2\u9605\u7684Topic\u7684\u8def\u7531\u4fe1\u606f\uff0c\u6839\u636e\u96c6\u7fa4\u6d88\u8d39\u6216\u8005\u5e7f\u64ad\u6d88\u8d39\u7684\u6a21\u5f0f\u6765\u9009\u62e9\u9700\u8981\u62c9\u53d6\u6d88\u606f\u7684\u961f\u5217<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\u4e0e\u961f\u5217\u6240\u5728\u7684\u673a\u5668\u5efa\u7acb\u8fde\u63a5\uff0c\u5411Broker\u53d1\u9001\u62c9\u53d6\u6d88\u606f\u7684\u8bf7\u6c42<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">Broker\u5728\u63a5\u6536\u5230\u8bf7\u6c42\u77e5\u9053\uff0c\u627e\u5230\u961f\u5217\u5bf9\u5e94\u7684ConsumeQueue\uff0c\u7136\u540e\u8ba1\u7b97\u51fa\u62c9\u53d6\u6d88\u606f\u7684\u4f4d\u7f6e\uff0c\u518d\u89e3\u6790\u51fa\u6d88\u606f\u5728CommitLog\u4e2d\u7684\u4f4d\u7f6e<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\u6839\u636e\u89e3\u6790\u51fa\u7684\u4f4d\u7f6e\uff0c\u4eceCommitLog\u4e2d\u8bfb\u51fa\u6d88\u606f\u7684\u5185\u5bb9\u8fd4\u56de\u7ed9\u6d88\u8d39\u8005<\/section>\n<\/li>\n<\/ul>\n<h5 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;font-weight: bold;\"><span style=\"display: none;\"><\/span>\u6d88\u606f\u6e05\u7406<span style=\"display: none;\"><\/span><\/h5>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\u7531\u4e8e\u6d88\u606f\u662f\u5b58\u5728\u78c1\u76d8\u7684\uff0c\u800c\u78c1\u76d8\u7684\u7a7a\u95f4\u662f\u6709\u9650\u7684\uff0c\u6240\u4ee5RocketMQ\u4f1a\u6839\u636e\u4e00\u4e9b\u6761\u4ef6\u53bb\u6e05\u7406CommitLog\u6587\u4ef6\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\">\n<\/section>\n<section data-tool=\"mdnice\u7f16\u8f91\u5668\" data-website=\"https:\/\/www.mdnice.com\" style=\"font-size: 16px;color: black;padding-right: 10px;padding-left: 10px;line-height: 1.6;letter-spacing: 0px;word-break: break-word;text-align: left;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;margin-bottom: 24px;\"><\/section>\n<p style=\"display: none;margin-bottom: 24px;\"><mp-style-type data-value=\"3\"><\/mp-style-type><\/p>\n<blockquote>\n<p>\u672c\u7bc7\u6587\u7ae0\u6765\u6e90\u4e8e\u5fae\u4fe1\u516c\u4f17\u53f7:                 JAVA\u65e5\u77e5\u5f55              <\/p>\n<\/blockquote>\n<\/div>\n","raw":"","protected":false},"excerpt":{"rendered":"<p>\u5927\u5bb6\u597d\uff0c\u6211\u662f\u98d8\u6e3a~~ \u8fd9\u7bc7\u6587\u7ae0\u6211\u51c6\u5907\u6765\u804a\u4e00\u804aRocketMQ\u6d88\u606f\u7684\u4e00\u751f\u3002 \u4e0d\u77e5\u4f60\u662f\u5426\u8ddf\u6211\u4e00\u6837\uff0c\u5728\u4f7f\u7528RocketMQ\u7684\u65f6\u5019\u4e5f\u6709\u5f88\u591a &#8230;<\/p>\n","protected":false},"author":1,"featured_media":5166,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[31],"tags":[],"class_list":["post-5195","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-rabbitmq"],"post_thumbnail_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801215818749-150x150.jpeg","content_first_image":null,"post_medium_image_300":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801215818749-300x128.jpeg","post_thumbnail_image_624":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801215818749.jpeg","post_frist_image":null,"post_medium_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801215818749-300x128.jpeg","post_large_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801215818749.jpeg","post_full_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801215818749.jpeg","post_all_images":[],"videoAdId":"","listAd":"0","listAdId":"","listAdEvery":6,"total_comments":0,"category_name":"RabbitMQ","post_date":"2024-08-01","like_count":"0","praiseWord":"\u9f13\u52b1","copyright_state":"","excitationAd":"0","rewardedVideoAdId":"","detailAdId":"","detailAd":"0","enterpriseMinapp":"0","audios":[],"postImageUrl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230519082947553.jpg","avatarurls":[],"related_posts":null,"pageviews":944,"next_post_id":null,"next_post_title":null,"previous_post_id":6253,"previous_post_title":"\u8fd9\u624d\u662fRabbitMQ\u6253\u5f00\u7684\u6b63\u786e\u59ff\u52bf , \u4e03\u79cd\u6d88\u606f\u6a21\u578b\u7406\u8bba + \u56fe\u6587 + \u4ee3\u7801\u89e3\u6790, \u61c2\u4e86","_links":{"self":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/5195","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/comments?post=5195"}],"version-history":[{"count":1,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/5195\/revisions"}],"predecessor-version":[{"id":6310,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/5195\/revisions\/6310"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media\/5166"}],"wp:attachment":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media?parent=5195"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/categories?post=5195"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/tags?post=5195"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}