{"id":42269,"date":"2023-03-13T09:48:40","date_gmt":"2023-03-13T01:48:40","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=42269"},"modified":"2023-03-13T09:48:40","modified_gmt":"2023-03-13T01:48:40","slug":"alibaba-rocketmq","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/alibaba-rocketmq.html","title":{"rendered":"\u963f\u91cc\u5df4\u5df4\u5411 Apache \u8f6f\u4ef6\u57fa\u91d1\u4f1a\u6350\u8d60\u6d88\u606f\u4e2d\u95f4\u4ef6 RocketMQ"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | 11 \u6708 28 \u65e5\uff0c\u963f\u91cc\u5df4\u5df4\u5ba3\u5e03\u5c06\u5f00\u6e90\u5206\u5e03\u5f0f\u6d88\u606f\u4e2d\u95f4\u4ef6 RocketMQ \u6350\u8d60\u7ed9 Apache \u57fa\u91d1\u4f1a\uff0c\u6210\u4e3aApache \u5b75\u5316\u9879\u76ee\uff0c\u5b75\u5316\u6210\u529f\u540e RocketMQ \u6709\u671b\u6210\u4e3a\u56fd\u5185\u9996\u4e2a Apache \u57fa\u91d1\u4f1a\u7684\u4e2d\u95f4\u4ef6\u9876\u7ea7\u9879\u76ee\uff0c\u6210\u4e3a\u5168\u7403\u7ee7 ActiveMQ\u3001Kafka \u4e4b\u540e\uff0c\u5206\u5e03\u5f0f\u6d88\u606f\u5f15\u64ce\u5bb6\u65cf\u4e2d\u7684\u65b0\u6210\u5458\u3002\u6b64\u6b21\u6350\u8d60\uff0c\u610f\u5473\u7740\u4ee5 MQ\uff08\u6d88\u606f\u961f\u5217\uff09\u4e3a\u4ee3\u8868\u7684\u4e92\u8054\u7f51\u4e2d\u95f4\u4ef6\u5728\u65b0\u5174\u7269\u8054\u7f51\u3001\u5927\u6570\u636e\u9886\u57df\u4f1a\u53d1\u6325\u7740\u8d8a\u6765\u8d8a\u5927\u7684\u4f5c\u7528\uff0c\u5c06\u6709\u66f4\u591a\u7684\u5f00\u53d1\u8005\u56e0\u6b64\u53d7\u76ca\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n RocketMQ \u662f\u963f\u91cc\u5df4\u5df4\u5728 2012 \u5e74\u5f00\u6e90\u7684\u7b2c\u4e09\u4ee3\u5206\u5e03\u5f0f\u6d88\u606f\u4e2d\u95f4\u4ef6\uff0c\u7531\u963f\u91cc\u5df4\u5df4\u4e2d\u95f4\u4ef6\u56e2\u961f\u7ef4\u62a4\uff0c\u5176\u5546\u7528\u7248 MQ \u53ef\u5728\u963f\u91cc\u4e91\u4e0a\u8d2d\u4e70\u3002\u5386\u5e74\u53cc 11\uff0cRocketMQ \u90fd\u627f\u62c5\u4e86\u963f\u91cc\u5df4\u5df4\u751f\u4ea7\u7cfb\u7edf\u5168\u90e8\u7684\u6d88\u606f\u6d41\u8f6c\uff0c\u5728\u6838\u5fc3\u4ea4\u6613\u94fe\u8def\u6709\u7740\u7a33\u5b9a\u548c\u51fa\u8272\u7684\u8868\u73b0\uff0c\u662f\u627f\u8f7d\u4ea4\u6613\u5cf0\u503c\uff082016 \u5e74\u4e3a 17 \u4e07\u7b14\/\u79d2\uff09\u7684\u6838\u5fc3\u57fa\u7840\u4ea7\u54c1\u4e4b\u4e00\u3002\u4eca\u5e74\u53cc 11\uff0c\u66f4\u662f\u521b\u9020\u4e86\u4e07\u4ebf\u7ea7\u6d88\u606f\u7cbe\u51c6\u4f4e\u5ef6\u8fdf\u6295\u9012\u3002<\/p>\n <\/p>\n \u80fd\u5426\u7b80\u5355\u4ecb\u7ecd\u4e0b RocketMQ \u7684\u5386\u53f2\uff1f<\/strong><\/div>\n \u65e9\u5728 2007 \u5e74\uff0c\u963f\u91cc\u5df4\u5df4\u4e2d\u95f4\u4ef6\u56e2\u961f\u81ea\u4e3b\u7814\u53d1\u4e86 Notify \u6d88\u606f\u4e2d\u95f4\u4ef6\uff0c\u5927\u8303\u56f4\u5e94\u7528\u4e8e\u751f\u4ea7\u7cfb\u7edf\u3002\u4e3a\u6ee1\u8db3\u7ebf\u4e0a\u5e94\u7528\u6d77\u91cf\u5806\u79ef\u7684\u9700\u6c42\uff0c2011 \u5e74\u963f\u91cc\u5df4\u5df4\u4e2d\u95f4\u4ef6\u56e2\u961f\u81ea\u4e3b\u7814\u53d1\u4e86 RocketMQ \u6d88\u606f\u4e2d\u95f4\u4ef6\uff0c\u5177\u6709\u5355\u673a\u4ebf\u7ea7\u6d88\u606f\u5806\u79ef\u80fd\u529b\uff0c\u4e14\u80fd\u652f\u6301\u4e25\u683c\u7684\u6d88\u606f\u987a\u5e8f\uff0c\u622a\u6b62\u4eca\u5e74\uff0c\u963f\u91cc\u5df4\u5df4\u7ebf\u4e0a\u6240\u6709\u6d88\u606f\u5168\u90e8\u901a\u8fc7 RocketMQ \u6765\u8f6c\u53d1\u6295\u9012\uff0c2016 \u5e74\u53cc\u5341\u4e00\u5f53\u5929\u66f4\u662f\u8fbe\u5230\u4e07\u4ebf\u7ea7\u6d88\u606f\u91cf\uff0c\u5cf0\u503c TPS \u8fbe\u51e0\u5343\u4e07\uff0c\u521b\u9020\u4e86\u56fd\u5185\u4e43\u81f3\u4e16\u754c\u4e0a\u6700\u5927\u7684\u6d88\u606f\u6d41\u8f6c\u8bb0\u5f55\u3002 RocketMQ \u6709\u54ea\u4e9b\u4ea7\u54c1\u7279\u6027\u5462?<\/strong><\/div>\n RocketMQ \u662f\u4e00\u4e2a\u4f4e\u5ef6\u8fdf\u3001\u9ad8\u53ef\u9760\u7684\u5206\u5e03\u5f0f\u6d88\u606f\u4e2d\u95f4\u4ef6\u3002\u5b83\u88ab\u8bbe\u8ba1\u4e3a\u91c7\u7528\u957f\u8f6e\u8be2\u62c9\u53d6\u7684\u6a21\u5f0f\uff0c\u652f\u6301\u4f20\u7edf\u6d88\u606f\u9886\u57df\u7684\u70b9\u5bf9\u70b9\u548c\u53d1\u5e03\/\u8ba2\u9605\u6a21\u578b\uff0c\u5355\u4e3b\u9898\u4e0b\u652f\u6301\u5343\u4e07\u7ea7\u522b\u7684\u6d88\u606f\u5806\u79ef\uff0c\u5bf9\u4e8e\u79bb\u7ebf\u8ba1\u7b97\uff0c\u5c24\u5176\u662f\u53cc\u5341\u4e00\u6d2a\u5cf0\u6570\u636e\uff0c\u5177\u6709\u5f88\u597d\u7684\u524a\u5cf0\u586b\u8c37\u4f5c\u7528\u3002\u5bf9\u4e8e\u4f01\u4e1a\u7ea7\u5e94\u7528\uff0c\u5b83\u80fd\u5f88\u597d\u7684\u8d77\u5230\u5f02\u6b65\u89e3\u8026\u7684\u4f5c\u7528\uff0c\u5728\u963f\u91cc\u5df4\u5df4\u5185\u90e8\uff0c\u901a\u8fc7 RocketMQ \u8fdb\u884c\u5f31\u4f9d\u8d56\u89e3\u8026\uff0c\u5df2\u7ecf\u6210\u4e3a\u4e0d\u4e8c\u9009\u62e9\u3002<\/p>\n \u4f5c\u4e3a\u6570\u636e\u901a\u9053\uff0cRocketMQ \u5728\u4e8b\u52a1\u6570\u636e\u590d\u5236\uff08\u5168\u5c40\u6709\u5e8f\uff09\uff0c\u5b9e\u65f6\u8ba1\u7b97\u65b9\u9762\u4e5f\u5177\u5907\u9ad8\u6548\u7684\u541e\u5410\u80fd\u529b\uff0c\u5728\u4eca\u5e74\u53cc\u5341\u4e00\u963f\u91cc\u5df4\u5df4\u6570\u636e\u5e94\u7528\u573a\u666f\u91cc\uff0cRocketMQ \u7aef\u5230\u7aef\u7684\u5e73\u5747\u5ef6\u8fdf\u964d\u81f3 100ms \u4ee5\u5185\u3002<\/p>\n \u4e0d\u4ec5\u5982\u6b64\uff0c\u5728\u865a\u62df\u5316\u3001\u5bb9\u5668\u90e8\u7f72\u65b9\u9762\uff0cRocketMQ \u4e5f\u80fd\u591f\u652f\u6301\u5feb\u901f\u542f\u505c\uff0c\u5177\u5907\u975e\u5e38\u5f3a\u7684\u6a2a\u5411\u6269\u5c55\u80fd\u529b\u3002<\/p>\n \u542c\u8bf4 RocketMQ \u8fd8\u6709\u4e2a\u5546\u7528\u7248\u672c\uff1f\u80fd\u5426\u7b80\u5355\u4ecb\u7ecd\u4e0b\uff1f<\/strong><\/div>\n RocketMQ \u7684\u5546\u4e1a\u7248\u672c\u662f\u963f\u91cc\u4e91\u7684\u6d88\u606f\u961f\u5217 MQ\uff0c\u4e24\u4e2a\u4ea7\u54c1\u90fd\u662f\u7531\u963f\u91cc\u4e2d\u95f4\u4ef6\u6d88\u606f\u56e2\u961f\u51fa\u54c1\u3002\u5546\u4e1a\u7248 MQ \u5728\u652f\u6301 TCP \u63a5\u5165\u57fa\u7840\u4e0a\uff0c\u8fd8\u652f\u6301 HTTP \u548c\u7269\u8054\u7f51 MQTT \u534f\u8bae\u63a5\u5165\uff0c\u529f\u80fd\u65b9\u9762\u589e\u5f3a\u4e86\u8fd0\u7ef4\u7ba1\u63a7\u65b9\u9762\u7684\u80fd\u529b\uff0c\u5305\u62ec\u53ef\u89c6\u5316\u7684\u6d88\u606f\u8f68\u8ff9\u3001\u8d44\u6e90\u62a5\u8868\u7edf\u8ba1\u4ee5\u53ca\u76d1\u63a7\u62a5\u8b66\u7b49\uff1b\u5546\u4e1a\u7248 MQ \u5728\u516c\u6709\u4e91\u4e0a\u672c\u8eab\u5177\u5907\u591a\u673a\u623f\u90e8\u7f72\u540c\u57ce\u9ad8\u53ef\u7528\u5bb9\u707e\u7279\u6027\uff0c\u4fdd\u8bc1\u4f01\u4e1a\u7ea7\u9ad8\u53ef\u9760\u9ad8\u6027\u80fd\u7684\u540c\u65f6\uff0c\u5927\u5927\u964d\u4f4e\u4e86\u4f01\u4e1a\u5ba2\u6237\u8fd0\u7ef4\u6210\u672c\u3002<\/p>\n \u540c\u65f6\u62e5\u6709\u5546\u7528\u7248\u548c\u5f00\u6e90\u7248\uff0c\u4e2d\u95f4\u4ef6\u56e2\u961f\u5c06\u5982\u4f55\u7ef4\u62a4\u5462\uff1f<\/strong><\/div>\n \u5f00\u6e90\u548c\u5546\u4e1a\u7684\u534f\u540c\u6548\u5e94\uff0c\u5982\u4f55\u53d1\u6325\u5230\u6781\u81f4\uff1f\u8fd9\u662f\u4e00\u4e2a\u4e16\u754c\u6027\u96be\u9898\u3002\u5f88\u4e0d\u5e78\uff0c\u6211\u4eec\u76ee\u524d\u6b63\u5728\u9762\u4e34\u8fd9\u4e48\u4e00\u4e2a\u95ee\u9898\uff0c\u4e5f\u5728\u7a77\u5c3d\u8111\u6c41\u53bb\u89e3\u8fd9\u4e48\u4e00\u4e2a\u96be\u9898\u3002\u4ee5\u5f00\u6e90\u4e3a\u6838\uff0c\u5546\u4e1a\u4e3a\u8f85\u7684\u5f62\u5f0f\uff0c\u662f\u6211\u4eec\u76ee\u524d\u5f97\u51fa\u7684\u4e00\u4e2a\u6bd4\u8f83\u9760\u8c31\u7684\u53ef\u884c\u4e4b\u8def\u3002\u6362\u53e5\u8bdd\u8bf4\uff0c\u6211\u4eec\u4f1a\u5f00\u6e90\u5206\u5e03\u5f0f\u6d88\u606f\u6240\u6709\u6838\u5fc3\u7684\u7279\u6027\uff0c\u800c\u5728\u5546\u4e1a\u5c42\u9762\uff0c\u5c24\u5176\u662f\u4e91\u5e73\u53f0\u7684\u642d\u5efa\u4e0a\u9762\uff0c\u5c06\u8fd0\u7ef4\u7ba1\u63a7\u3001\u5b89\u5168\u6388\u6743\u3001\u6df1\u5ea6\u57f9\u8bad\u7b49\u7eb3\u5165\u5546\u4e1a\u91cd\u4e2d\u4e4b\u91cd\u3002\u6309\u7167\u793e\u533a\uff0c\u5c24\u5176\u662f Apache \u5f00\u6e90\u793e\u533a\u7684\u8fd0\u8425\u7406\u5ff5\uff0c\u5728\u793e\u533a\u5efa\u8bbe\u3001\u6587\u6863\u7f16\u7e82\u3001\u7814\u8ba8\u4ea4\u6d41\u3001\u4eba\u624d\u5f15\u8fdb\u7b49\u65b9\u9762\u52a0\u5927\u6295\u5165\u3002<\/p>\n \u963f\u91cc\u5df4\u5df4\u4e3a\u4ec0\u4e48\u8981\u505a\u5f00\u6e90\uff1f<\/strong><\/div>\n \u963f\u91cc\u5df4\u5df4\u662f\u4e2a\u975e\u5e38\u8bb2\u7a76\u611f\u6069\u7684\u516c\u53f8\u3002\u5728\u963f\u91cc\u5efa\u7acb\u4e4b\u521d\uff0c\u6b63\u662f\u57fa\u4e8e\u5f00\u6e90\u8f6f\u4ef6\uff0c\u5c06\u6574\u4e2a\u7535\u5546\u5e73\u53f0\u7684\u539f\u578b\u5feb\u901f\u642d\u5efa\u8d77\u6765\u7684\u3002\u4e0d\u4ec5\u5982\u6b64\uff0c\u5373\u4fbf\u8fd9\u4e48\u591a\u5e74\u8fc7\u53bb\u4e86\uff0c\u867d\u7136\u963f\u91cc\u7684\u57fa\u7840\u5e73\u53f0\u8fd8\u5728\u4e0d\u65ad\u6f14\u8fdb\uff0c\u4f46\u4ecd\u65e7\u6709\u5f00\u6e90\u8f6f\u4ef6\u7684\u8eab\u5f71\u3002\u540c\u65f6\uff0c\u963f\u91cc\u5df4\u5df4\u6709\u7740\u975e\u5e38\u6df1\u5165\u548c\u5e7f\u6cdb\u7684\u5e94\u7528\u573a\u666f\uff0c\u901a\u8fc7\u8fd9\u4e9b\u51e0\u8fd1\u82db\u523b\u7684\u7ebf\u4e0a\u9a8c\u8bc1\uff0c\u6211\u4eec\u6c89\u6dc0\u4e86\u975e\u5e38\u5b9d\u8d35\u7684\u8d22\u5bcc\u3002<\/p>\n \u6b63\u662f\u57fa\u4e8e\u611f\u6069\u7684\u6001\u5ea6\uff0c\u6211\u4eec\u5e0c\u671b\u5c06\u8fd9\u4e9b\u4e45\u7ecf\u7ebf\u4e0a\u9a8c\u8bc1\u7684\u81fb\u54c1\u62ff\u51fa\u6765\uff0c\u5206\u4eab\u51fa\u6765\uff0c\u56de\u9988\u793e\u533a\uff0c\u8ba9\u66f4\u591a\u7684\u4eba\u6536\u76ca\u3002\u4e0d\u4ec5\u5982\u6b64\uff0c\u6211\u4eec\u4e5f\u5e0c\u671b\u66f4\u591a\u7684\u4eba\u80fd\u591f\u53c2\u4e0e\u8fdb\u6765\uff0c\u5728\u8fd9\u6837\u4e00\u4e2a\u5f00\u653e\u900f\u660e\uff0c\u5168\u7403\u534f\u4f5c\u7684\u73af\u5883\u4e0b\uff0c\u76f8\u4fe1\u963f\u91cc\u5df4\u5df4\u5728\u5f00\u6e90\u9886\u57df\u4f1a\u53d6\u5f97\u66f4\u591a\u7684\u6210\u7ee9\u3002\u5982\u679c\u6211\u4eec\u505a\u7684\u597d\uff0c\u53cd\u8fc7\u6765\uff0c\u5c06\u4f1a\u4e3a\u6211\u4eec\u7684\u4ea7\u54c1\uff0c\u6211\u4eec\u7684\u5e73\u53f0\u5728\u4e16\u754c\u8303\u56f4\u5185\u8d62\u5f97\u53e3\u7891\uff0c\u4ece\u800c\u8fdb\u4e00\u6b65\u4fc3\u8fdb\u963f\u91cc\u5df4\u5df4\u751f\u6001\u4f53\u7cfb\u7684\u5168\u7403\u5316\u3001\u5546\u4e1a\u5316\uff0c\u8fdb\u800c\u4e3a\u5168\u7403\u8303\u56f4\u5185\u7684\u4eba\u624d\u5f15\u8fdb\u6253\u4e0b\u826f\u597d\u7684\u57fa\u7840\u3002<\/p>\n \u8fd8\u6709\u4ec0\u4e48\u60f3\u5bf9\u5927\u5bb6\u8bf4\u7684\uff1f< <\/strong><\/div>\n \u963f\u91cc\u5df4\u5df4\u5c06 RocketMQ \u6350\u8d60\u7ed9 Apache \u57fa\u91d1\u4f1a\u53ea\u662f\u7b2c\u4e00\u6b65\uff0c\u5982\u4f55\u5c06 RocketMQ \u6253\u9020\u6210\u4e3a Apache \u57fa\u91d1\u4f1a\u9876\u7ea7\u9879\u76ee\uff0c\u5982\u4f55\u5f00\u6e90\u4e0e\u5546\u4e1a\u5316\u4ea7\u54c1\u5171\u8d62\u3002<\/p>\n \n |