{"id":102013,"date":"2026-09-08T03:42:34","date_gmt":"2026-09-07T19:42:34","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/102013.html"},"modified":"2026-09-08T03:42:34","modified_gmt":"2026-09-07T19:42:34","slug":"rabbitmq-%e6%b6%88%e6%81%af%e7%a7%af%e5%8e%8b%e6%80%8e%e4%b9%88%e5%8a%9e%ef%bc%9fprefetch%e3%80%81%e6%b6%88%e8%b4%b9%e8%80%85%e5%b9%b6%e5%8f%91%e4%b8%8e%e6%89%a9%e5%ae%b9","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/102013.html","title":{"rendered":"RabbitMQ \u6d88\u606f\u79ef\u538b\u600e\u4e48\u529e\uff1fPrefetch\u3001\u6d88\u8d39\u8005\u5e76\u53d1\u4e0e\u6269\u5bb9"},"content":{"rendered":"<p>\u524d\u9762\u6211\u4eec\u5df2\u7ecf\u628a RabbitMQ \u7684\u4e3b\u8981\u529f\u80fd\u57fa\u672c\u8bb2\u5b8c\u4e86&#xff1a;<\/p>\n<p>Producer<br \/>\n   \u2193<br \/>\nExchange<br \/>\n   \u2193<br \/>\nQueue<br \/>\n   \u2193<br \/>\nConsumer<\/p>\n<p>\u4ee5\u53ca\u6d88\u606f\u53ef\u9760\u6027&#xff1a;<\/p>\n<p>Confirm<br \/>\n   \u2193<br \/>\n\u6301\u4e45\u5316<br \/>\n   \u2193<br \/>\nACK<br \/>\n   \u2193<br \/>\nRetry<br \/>\n   \u2193<br \/>\nDLQ<br \/>\n   \u2193<br \/>\n\u5e42\u7b49<\/p>\n<p>\u4f46\u771f\u6b63\u628a RabbitMQ \u7528\u5230\u4e1a\u52a1\u4e2d\u4ee5\u540e&#xff0c;\u8fd8\u4f1a\u9047\u5230\u4e00\u4e2a\u975e\u5e38\u73b0\u5b9e\u7684\u95ee\u9898&#xff1a;<\/p>\n<p>\u751f\u4ea7\u8005\u53d1\u9001\u6d88\u606f\u592a\u5feb&#xff0c;\u6d88\u8d39\u8005\u5904\u7406\u4e0d\u8fc7\u6765\u600e\u4e48\u529e&#xff1f;<\/p>\n<p>\u6bd4\u5982&#xff1a;<\/p>\n<p>Producer&#xff1a;<\/p>\n<p>\u6bcf\u79d2\u53d1\u9001 5000 \u6761\u6d88\u606f<\/p>\n<p>Consumer&#xff1a;<\/p>\n<p>\u6bcf\u79d2\u53ea\u80fd\u5904\u7406 1000 \u6761<\/p>\n<p>\u90a3\u4e48\u6bcf\u79d2\u5c31\u4f1a\u591a\u51fa\u6765&#xff1a;<\/p>\n<p>5000 &#8211; 1000<\/p>\n<p>&#061; 4000 \u6761<\/p>\n<p>\u8fd9\u4e9b\u6d88\u606f\u53ea\u80fd\u6682\u65f6\u7559\u5728 Queue \u4e2d\u3002<\/p>\n<p>\u4e8e\u662f&#xff1a;<\/p>\n<p>\u7b2c 1 \u79d2&#xff1a;\u79ef\u538b 4000<\/p>\n<p>\u7b2c 2 \u79d2&#xff1a;\u79ef\u538b 8000<\/p>\n<p>\u7b2c 3 \u79d2&#xff1a;\u79ef\u538b 12000<\/p>\n<p>&#8230;<\/p>\n<p>\u8fd9\u5c31\u662f&#xff1a;<\/p>\n<p>\u6d88\u606f\u79ef\u538b<\/p>\n<p>\u8fd9\u4e00\u7bc7\u5c31\u6765\u770b\u770b RabbitMQ \u6d88\u606f\u79ef\u538b\u4ee5\u540e&#xff0c;\u5230\u5e95\u5e94\u8be5\u600e\u4e48\u5904\u7406\u3002<\/p>\n<hr \/>\n<h3>1. \u4ec0\u4e48\u662f\u6d88\u606f\u79ef\u538b&#xff1f;<\/h3>\n<p>\u6b63\u5e38\u60c5\u51b5\u4e0b&#xff1a;<\/p>\n<p>Producer<br \/>\n    \u2193<br \/>\n   Queue<br \/>\n    \u2193<br \/>\nConsumer<\/p>\n<p>\u751f\u4ea7\u901f\u5ea6\u548c\u6d88\u8d39\u901f\u5ea6\u57fa\u672c\u5e73\u8861&#xff1a;<\/p>\n<p>\u751f\u4ea7&#xff1a;1000 \u6761\/s<\/p>\n<p>\u6d88\u8d39&#xff1a;1000 \u6761\/s<\/p>\n<p>Queue \u4e2d\u4e0d\u4f1a\u957f\u671f\u4fdd\u5b58\u5927\u91cf\u6d88\u606f\u3002<\/p>\n<p>\u4f46\u662f\u5982\u679c&#xff1a;<\/p>\n<p>\u751f\u4ea7\u901f\u5ea6<br \/>\n   &gt;<br \/>\n\u6d88\u8d39\u901f\u5ea6<\/p>\n<p>\u5c31\u4f1a&#xff1a;<\/p>\n<p>Producer<br \/>\n    \u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193<br \/>\n\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<br \/>\n\u2502 Message        \u2502<br \/>\n\u2502 Message        \u2502<br \/>\n\u2502 Message        \u2502<br \/>\n\u2502 Message        \u2502<br \/>\n\u2502 Message        \u2502<br \/>\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<br \/>\n      Queue<br \/>\n        \u2193<br \/>\n     Consumer<\/p>\n<p>Queue \u8d8a\u5806\u8d8a\u591a\u3002<\/p>\n<p>\u672c\u8d28\u4e0a&#xff1a;<\/p>\n<p>\u6d88\u606f\u79ef\u538b\u5e76\u4e0d\u662f RabbitMQ \u7a81\u7136\u51fa\u73b0\u4e86\u95ee\u9898&#xff0c;\u800c\u662f\u751f\u4ea7\u901f\u5ea6\u957f\u671f\u5927\u4e8e\u6d88\u8d39\u901f\u5ea6\u3002<\/p>\n<p>\u53ef\u4ee5\u7b80\u5355\u5199\u6210&#xff1a;<\/p>\n<p>\u79ef\u538b\u589e\u957f\u901f\u5ea6<br \/>\n&#061;<br \/>\n\u751f\u4ea7\u901f\u5ea6 &#8211; \u6d88\u8d39\u901f\u5ea6<\/p>\n<p>\u4f8b\u5982&#xff1a;<\/p>\n<p>\u751f\u4ea7&#xff1a;3000\/s<\/p>\n<p>\u6d88\u8d39&#xff1a;2000\/s<\/p>\n<p>\u90a3\u4e48&#xff1a;<\/p>\n<p>\u6bcf\u79d2\u79ef\u538b 1000 \u6761<\/p>\n<p>\u4e00\u5206\u949f&#xff1a;<\/p>\n<p>1000 \u00d7 60<\/p>\n<p>&#061; 60000 \u6761<\/p>\n<p>\u4e00\u4e2a\u5c0f\u65f6&#xff1a;<\/p>\n<p>60000 \u00d7 60<\/p>\n<p>&#061; 3600000 \u6761<\/p>\n<p>\u4e5f\u5c31\u662f&#xff1a;<\/p>\n<p>360 \u4e07\u6761<\/p>\n<p>\u6240\u4ee5\u5982\u679c\u6d88\u8d39\u80fd\u529b\u957f\u671f\u8ddf\u4e0d\u4e0a&#xff0c;\u79ef\u538b\u589e\u957f\u4f1a\u975e\u5e38\u5feb\u3002<\/p>\n<hr \/>\n<h2>2. \u6d88\u606f\u79ef\u538b\u6709\u4ec0\u4e48\u5f71\u54cd&#xff1f;<\/h2>\n<p>\u53ef\u80fd\u6709\u4eba\u4f1a\u60f3&#xff1a;<\/p>\n<p>RabbitMQ \u672c\u6765\u4e0d\u5c31\u662f\u7528\u6765\u5b58\u6d88\u606f\u7684\u5417&#xff1f;\u5806\u7740\u4e0d\u5c31\u884c\u4e86&#xff1f;<\/p>\n<p>\u77ed\u65f6\u95f4\u79ef\u538b&#xff1a;<\/p>\n<p>\u786e\u5b9e\u5f88\u6b63\u5e38<\/p>\n<p>\u6bd4\u5982\u79d2\u6740\u6d3b\u52a8&#xff1a;<\/p>\n<p>\u77ac\u95f4\u5927\u91cf\u8bf7\u6c42<br \/>\n    \u2193<br \/>\nRabbitMQ<br \/>\n    \u2193<br \/>\n\u6162\u6162\u6d88\u8d39<\/p>\n<p>\u8fd9\u672c\u6765\u5c31\u662f\u6211\u4eec\u524d\u9762\u8bb2\u8fc7\u7684&#xff1a;<\/p>\n<p>\u524a\u5cf0<\/p>\n<p>\u771f\u6b63\u7684\u95ee\u9898\u5728\u4e8e&#xff1a;<\/p>\n<p>\u6d88\u606f\u4e00\u76f4\u8fdb\u6765&#xff0c;\u800c\u6d88\u8d39\u8005\u957f\u671f\u8ffd\u4e0d\u4e0a\u3002<\/p>\n<p>\u8fd9\u65f6\u4f1a\u51fa\u73b0&#xff1a;<\/p>\n<p>\u6d88\u606f\u5ef6\u8fdf\u8d8a\u6765\u8d8a\u9ad8<\/p>\n<p>\u5185\u5b58\u548c\u78c1\u76d8\u538b\u529b\u589e\u5927<\/p>\n<p>\u4e1a\u52a1\u5904\u7406\u8d8a\u6765\u8d8a\u665a<\/p>\n<p>RabbitMQ \u8282\u70b9\u538b\u529b\u589e\u52a0<\/p>\n<p>\u4f8b\u5982\u4e00\u6761&#xff1a;<\/p>\n<p>\u53d1\u9001\u77ed\u4fe1<\/p>\n<p>\u7684\u6d88\u606f\u672c\u6765\u5e94\u8be5&#xff1a;<\/p>\n<p>1 \u79d2\u540e\u5904\u7406<\/p>\n<p>\u4f46\u524d\u9762\u5df2\u7ecf\u79ef\u538b\u4e86&#xff1a;<\/p>\n<p>100 \u4e07\u6761<\/p>\n<p>\u90a3\u6d88\u8d39\u8005\u771f\u6b63\u5904\u7406\u5230\u5b83\u7684\u65f6\u5019\u53ef\u80fd\u5df2\u7ecf\u8fc7\u53bb&#xff1a;<\/p>\n<p>\u51e0\u5206\u949f<br \/>\n\u751a\u81f3\u66f4\u4e45<\/p>\n<p>\u6240\u4ee5\u5f88\u591a\u65f6\u5019&#xff1a;<\/p>\n<p>\u6d88\u606f\u79ef\u538b\u9996\u5148\u8868\u73b0\u51fa\u6765\u7684\u4e0d\u662f\u201c\u6d88\u606f\u4e22\u5931\u201d&#xff0c;\u800c\u662f\u4e1a\u52a1\u5ef6\u8fdf\u8d8a\u6765\u8d8a\u4e25\u91cd\u3002<\/p>\n<hr \/>\n<h2>3. \u600e\u4e48\u5224\u65ad RabbitMQ \u662f\u5426\u51fa\u73b0\u6d88\u606f\u79ef\u538b&#xff1f;<\/h2>\n<p>RabbitMQ Management UI \u4e2d\u53ef\u4ee5\u770b\u5230 Queue \u7684\u5404\u79cd\u6307\u6807\u3002<\/p>\n<p>\u6bd4\u8f83\u91cd\u8981\u7684\u5305\u62ec&#xff1a;<\/p>\n<p>Ready<\/p>\n<p>Unacked<\/p>\n<p>Consumers<\/p>\n<p>Publish Rate<\/p>\n<p>Deliver \/ Ack Rate<\/p>\n<p>RabbitMQ \u5b98\u65b9\u5f53\u524d\u6587\u6863\u4e5f\u8bf4\u660e&#xff0c;Management UI \u53ef\u4ee5\u76d1\u63a7 Queue Length\u3001\u6d88\u606f\u8fdb\u5165\u548c\u79bb\u5f00\u901f\u7387\u3001Consumer \u6570\u91cf\u4ee5\u53ca\u6d88\u606f\u4e0d\u540c\u72b6\u6001\u7b49\u6307\u6807\u3002<\/p>\n<hr \/>\n<h3>4. Ready \u662f\u4ec0\u4e48&#xff1f;<\/h3>\n<p>Ready<\/p>\n<p>\u8868\u793a&#xff1a;<\/p>\n<p>\u8fd8\u5728 Queue \u4e2d\u7b49\u5f85\u53d1\u9001\u7ed9 Consumer \u7684\u6d88\u606f\u3002<\/p>\n<p>\u4f8b\u5982&#xff1a;<\/p>\n<p>Ready &#061; 100000<\/p>\n<p>\u8bf4\u660e\u73b0\u5728\u8fd8\u6709&#xff1a;<\/p>\n<p>10 \u4e07\u6761\u6d88\u606f<\/p>\n<p>\u7b49\u5f85\u88ab\u6d88\u8d39\u3002<\/p>\n<p>\u5982\u679c\u8fd9\u4e2a\u6570\u5b57&#xff1a;<\/p>\n<p>\u6301\u7eed\u589e\u52a0<\/p>\n<p>\u901a\u5e38\u5c31\u8bf4\u660e&#xff1a;<\/p>\n<p>\u6d88\u8d39\u901f\u5ea6<br \/>\n   &lt;<br \/>\n\u751f\u4ea7\u901f\u5ea6<\/p>\n<p>\u5df2\u7ecf\u5f00\u59cb\u4ea7\u751f\u79ef\u538b\u3002<\/p>\n<hr \/>\n<h2>5. Unacked \u53c8\u662f\u4ec0\u4e48&#xff1f;<\/h2>\n<p>\u5047\u8bbe RabbitMQ \u5df2\u7ecf\u628a\u6d88\u606f\u53d1\u9001\u7ed9 Consumer&#xff1a;<\/p>\n<p>Queue<br \/>\n  \u2193<br \/>\nConsumer<\/p>\n<p>\u4f46\u662f Consumer \u8fd8\u6ca1\u6709&#xff1a;<\/p>\n<p>ACK<\/p>\n<p>\u8fd9\u4e9b\u6d88\u606f\u5c31\u5c5e\u4e8e&#xff1a;<\/p>\n<p>Unacked<\/p>\n<p>\u4e5f\u5c31\u662f&#xff1a;<\/p>\n<p>\u5df2\u7ecf\u53d1\u9001\u7ed9 Consumer<br \/>\n\u4f46\u662f\u8fd8\u6ca1\u6709\u786e\u8ba4\u5b8c\u6210<\/p>\n<p>\u6240\u4ee5&#xff1a;<\/p>\n<p>Ready<\/p>\n<p>\u548c&#xff1a;<\/p>\n<p>Unacked<\/p>\n<p>\u4e0d\u8981\u6df7\u5728\u4e00\u8d77\u3002<\/p>\n<p>\u53ef\u4ee5\u7406\u89e3\u6210&#xff1a;<\/p>\n<p>Ready<\/p>\n<p>\u8fd8\u5728 RabbitMQ Queue \u91cc\u6392\u961f<\/p>\n<p>\u800c&#xff1a;<\/p>\n<p>Unacked<\/p>\n<p>\u5df2\u7ecf\u4ea4\u7ed9 Consumer<br \/>\n\u4f46\u662f Consumer \u8fd8\u6ca1\u5904\u7406\u5b8c<\/p>\n<p>RabbitMQ \u5b98\u65b9\u540c\u6837\u628a Queue \u4e2d\u6d88\u606f\u533a\u5206\u4e3a Ready \u548c Delivered-but-not-yet-acknowledged \u4e24\u79cd\u4e3b\u8981\u72b6\u6001\u3002<\/p>\n<hr \/>\n<h2>6. Ready \u5f88\u591a\u548c Unacked \u5f88\u591a\u5206\u522b\u8bf4\u660e\u4ec0\u4e48&#xff1f;<\/h2>\n<p>\u8fd9\u4e2a\u5224\u65ad\u5728\u6392\u67e5\u95ee\u9898\u65f6\u975e\u5e38\u6709\u7528\u3002<\/p>\n<h4>Ready \u4e00\u76f4\u5f88\u591a<\/h4>\n<p>\u4f8b\u5982&#xff1a;<\/p>\n<p>Ready &#061; 500000<\/p>\n<p>Unacked &#061; 10<\/p>\n<p>\u8bf4\u660e&#xff1a;<\/p>\n<p>\u5927\u91cf\u6d88\u606f\u8fd8\u5728 Queue \u91cc<\/p>\n<p>\u6d88\u8d39\u8005\u62ff\u6d88\u606f\u7684\u80fd\u529b\u4e0d\u8db3\u3002<\/p>\n<p>\u53ef\u80fd\u9700\u8981\u8003\u8651&#xff1a;<\/p>\n<p>\u589e\u52a0 Consumer<\/p>\n<p>\u63d0\u9ad8\u5e76\u53d1<\/p>\n<p>\u8c03\u6574 Prefetch<\/p>\n<p>\u63d0\u9ad8\u5355\u6761\u6d88\u606f\u5904\u7406\u901f\u5ea6<\/p>\n<hr \/>\n<h4>Unacked \u7279\u522b\u591a<\/h4>\n<p>\u4f8b\u5982&#xff1a;<\/p>\n<p>Ready &#061; 1000<\/p>\n<p>Unacked &#061; 100000<\/p>\n<p>\u8bf4\u660e\u5927\u91cf\u6d88\u606f\u5df2\u7ecf\u88ab Consumer \u62ff\u8d70&#xff1a;<\/p>\n<p>RabbitMQ<br \/>\n    \u2193\u2193\u2193\u2193\u2193<br \/>\nConsumer<\/p>\n<p>\u4f46\u662f\u8fdf\u8fdf\u6ca1\u6709 ACK\u3002<\/p>\n<p>\u8fd9\u65f6\u5019\u5c31\u5e94\u8be5\u91cd\u70b9\u68c0\u67e5&#xff1a;<\/p>\n<p>\u4e1a\u52a1\u5904\u7406\u662f\u4e0d\u662f\u5f88\u6162&#xff1f;<\/p>\n<p>\u6570\u636e\u5e93\u662f\u4e0d\u662f\u5361\u4e86&#xff1f;<\/p>\n<p>\u7b2c\u4e09\u65b9\u63a5\u53e3\u662f\u4e0d\u662f\u5f88\u6162&#xff1f;<\/p>\n<p>Prefetch \u662f\u4e0d\u662f\u8bbe\u7f6e\u5f97\u592a\u5927&#xff1f;<\/p>\n<p>\u6240\u4ee5&#xff1a;<\/p>\n<p>Ready<\/p>\n<p>\u66f4\u50cf&#xff1a;<\/p>\n<p>RabbitMQ \u4e2d\u6392\u961f\u7684\u4efb\u52a1<\/p>\n<p>\u800c&#xff1a;<\/p>\n<p>Unacked<\/p>\n<p>\u66f4\u50cf&#xff1a;<\/p>\n<p>Consumer \u624b\u91cc\u8fd8\u6ca1\u505a\u5b8c\u7684\u4efb\u52a1<\/p>\n<hr \/>\n<h2>7. \u6700\u76f4\u63a5\u7684\u89e3\u51b3\u529e\u6cd5&#xff1a;\u63d0\u9ad8\u6d88\u8d39\u901f\u5ea6<\/h2>\n<p>\u65e2\u7136\u79ef\u538b\u4ea7\u751f\u7684\u6839\u672c\u539f\u56e0\u662f&#xff1a;<\/p>\n<p>\u751f\u4ea7\u901f\u5ea6 &gt; \u6d88\u8d39\u901f\u5ea6<\/p>\n<p>\u90a3\u4e48\u89e3\u51b3\u65b9\u5411\u5176\u5b9e\u975e\u5e38\u660e\u786e&#xff1a;<\/p>\n<p>\u63d0\u9ad8\u6d88\u8d39\u901f\u5ea6<\/p>\n<p>\u4f8b\u5982\u539f\u6765&#xff1a;<\/p>\n<p>Producer&#xff1a;5000\/s<\/p>\n<p>Consumer&#xff1a;1000\/s<\/p>\n<p>\u5982\u679c\u628a Consumer \u63d0\u9ad8\u5230&#xff1a;<\/p>\n<p>6000\/s<\/p>\n<p>\u90a3\u4e48&#xff1a;<\/p>\n<p>\u751f\u4ea7&#xff1a;5000\/s<\/p>\n<p>\u6d88\u8d39&#xff1a;6000\/s<\/p>\n<p>\u4e0d\u4f46\u4e0d\u4f1a\u7ee7\u7eed\u79ef\u538b&#xff0c;\u8fd8\u53ef\u4ee5\u9010\u6e10\u6d88\u5316\u4e4b\u524d\u7684\u5386\u53f2\u79ef\u538b\u3002<\/p>\n<p>\u6240\u4ee5\u7b2c\u4e00\u4ef6\u4e8b\u60c5\u4e0d\u662f&#xff1a;<\/p>\n<p>\u75af\u72c2\u4fee\u6539 RabbitMQ \u53c2\u6570<\/p>\n<p>\u800c\u5e94\u8be5\u5148\u770b&#xff1a;<\/p>\n<p>Consumer \u4e3a\u4ec0\u4e48\u8fd9\u4e48\u6162&#xff1f;<\/p>\n<hr \/>\n<h2>8. \u5148\u4f18\u5316 Consumer \u81ea\u5df1<\/h2>\n<p>\u4f8b\u5982\u6d88\u8d39\u8005&#xff1a;<\/p>\n<p><span class=\"token annotation punctuation\">&#064;RabbitListener<\/span><span class=\"token punctuation\">(<\/span>queues <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#034;order.queue&#034;<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token keyword\">public<\/span> <span class=\"token keyword\">void<\/span> <span class=\"token function\">consume<\/span><span class=\"token punctuation\">(<\/span><span class=\"token class-name\">OrderMessage<\/span> message<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><\/p>\n<p>    <span class=\"token function\">queryDatabase<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>    <span class=\"token function\">callRemoteService<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>    <span class=\"token function\">updateDatabase<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>    <span class=\"token function\">sendHttpRequest<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u5047\u8bbe&#xff1a;<\/p>\n<p>\u67e5\u6570\u636e\u5e93&#xff1a;100ms<\/p>\n<p>\u8c03\u7528\u7b2c\u4e09\u65b9&#xff1a;500ms<\/p>\n<p>\u4fee\u6539\u6570\u636e\u5e93&#xff1a;100ms<\/p>\n<p>HTTP \u8bf7\u6c42&#xff1a;300ms<\/p>\n<p>\u4e00\u6761\u6d88\u606f\u53ef\u80fd\u9700\u8981&#xff1a;<\/p>\n<p>1 \u79d2<\/p>\n<p>\u4e00\u4e2a Consumer&#xff1a;<\/p>\n<p>1 \u79d2\u53ea\u80fd\u5904\u7406 1 \u6761<\/p>\n<p>\u90a3\u6d88\u606f\u5f53\u7136\u5f88\u5bb9\u6613\u79ef\u538b\u3002<\/p>\n<p>\u6240\u4ee5\u9996\u5148\u5e94\u8be5\u770b\u770b&#xff1a;<\/p>\n<p>SQL \u662f\u5426\u592a\u6162&#xff1f;<\/p>\n<p>\u6709\u6ca1\u6709\u5927\u91cf\u91cd\u590d\u67e5\u8be2&#xff1f;<\/p>\n<p>\u7b2c\u4e09\u65b9\u63a5\u53e3\u662f\u5426\u963b\u585e&#xff1f;<\/p>\n<p>\u80fd\u5426\u6279\u91cf\u5904\u7406&#xff1f;<\/p>\n<p>\u6709\u6ca1\u6709\u4e0d\u5fc5\u8981\u7684\u540c\u6b65\u64cd\u4f5c&#xff1f;<\/p>\n<p>\u5982\u679c&#xff1a;<\/p>\n<p>1000ms \/ \u6761<\/p>\n<p>\u4f18\u5316\u6210&#xff1a;<\/p>\n<p>100ms \/ \u6761<\/p>\n<p>\u90a3\u4e48\u5355\u4e2a Consumer \u7684\u541e\u5410\u91cf\u7406\u8bba\u4e0a\u5c31\u53ef\u80fd\u63d0\u9ad8\u5f88\u591a\u3002<\/p>\n<p>\u6240\u4ee5&#xff1a;<\/p>\n<p>\u89e3\u51b3\u6d88\u606f\u79ef\u538b\u6700\u4f18\u5148\u7684\u65b9\u6848&#xff0c;\u901a\u5e38\u8fd8\u662f\u51cf\u5c11\u6bcf\u6761\u6d88\u606f\u7684\u5904\u7406\u65f6\u95f4\u3002<\/p>\n<hr \/>\n<h2>9. \u7b2c\u4e8c\u79cd\u65b9\u6848&#xff1a;\u589e\u52a0\u6d88\u8d39\u8005\u5e76\u53d1<\/h2>\n<p>\u5047\u8bbe\u4e1a\u52a1\u4ee3\u7801\u6682\u65f6\u6ca1\u6709\u660e\u663e\u4f18\u5316\u7a7a\u95f4\u3002<\/p>\n<p>\u4e00\u4e2a Consumer&#xff1a;<\/p>\n<p>100 \u6761\/s<\/p>\n<p>\u90a3\u53ef\u4ee5\u589e\u52a0\u6d88\u8d39\u8005\u6570\u91cf&#xff1a;<\/p>\n<p>Consumer 1&#xff1a;100\/s<\/p>\n<p>Consumer 2&#xff1a;100\/s<\/p>\n<p>Consumer 3&#xff1a;100\/s<\/p>\n<p>Consumer 4&#xff1a;100\/s<\/p>\n<p>\u7406\u8bba\u603b\u6d88\u8d39\u80fd\u529b\u5c31\u53ef\u80fd\u63d0\u9ad8\u5230&#xff1a;<\/p>\n<p>400 \u6761\/s<\/p>\n<p>\u7ed3\u6784&#xff1a;<\/p>\n<p>               \u250c\u2192 Consumer 1<br \/>\n               \u2502<br \/>\norder.queue \u2500\u2500\u2500\u253c\u2192 Consumer 2<br \/>\n               \u2502<br \/>\n               \u251c\u2192 Consumer 3<br \/>\n               \u2502<br \/>\n               \u2514\u2192 Consumer 4<\/p>\n<p>\u540c\u4e00\u4e2a Queue \u7684\u591a\u4e2a Consumer \u4f1a\u7ade\u4e89\u6d88\u8d39\u6d88\u606f\u3002<\/p>\n<p>\u4e00\u6761\u6d88\u606f\u6b63\u5e38\u53ea\u4f1a\u4ea4\u7ed9\u5176\u4e2d\u4e00\u4e2a Consumer\u3002<\/p>\n<p>\u6240\u4ee5&#xff1a;<\/p>\n<p>\u589e\u52a0 Consumer<\/p>\n<p>\u5c31\u662f\u6700\u5e38\u89c1\u7684\u6a2a\u5411\u63d0\u9ad8\u6d88\u8d39\u80fd\u529b\u7684\u65b9\u6cd5\u4e4b\u4e00\u3002<\/p>\n<hr \/>\n<h2>10. Spring Boot \u600e\u4e48\u589e\u52a0\u6d88\u8d39\u8005\u5e76\u53d1&#xff1f;<\/h2>\n<p>Spring Boot \u53ef\u4ee5\u76f4\u63a5\u914d\u7f6e&#xff1a;<\/p>\n<p><span class=\"token key atrule\">spring<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">rabbitmq<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token key atrule\">listener<\/span><span class=\"token punctuation\">:<\/span><br \/>\n      <span class=\"token key atrule\">simple<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        <span class=\"token key atrule\">concurrency<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">3<\/span><br \/>\n        <span class=\"token key atrule\">max-concurrency<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">10<\/span><\/p>\n<p>\u5176\u4e2d&#xff1a;<\/p>\n<p>concurrency &#061; 3<\/p>\n<p>\u8868\u793a&#xff1a;<\/p>\n<p>\u521d\u59cb\u6700\u5c11\u521b\u5efa 3 \u4e2a\u6d88\u8d39\u8005<\/p>\n<p>\u800c&#xff1a;<\/p>\n<p>max-concurrency &#061; 10<\/p>\n<p>\u8868\u793a&#xff1a;<\/p>\n<p>\u8d1f\u8f7d\u8f83\u9ad8\u65f6\u6700\u591a\u53ef\u4ee5\u6269\u5c55\u5230 10 \u4e2a\u6d88\u8d39\u8005<\/p>\n<p>Spring AMQP \u5f53\u524d\u6587\u6863\u4e2d&#xff0c;SimpleMessageListenerContainer \u652f\u6301 concurrentConsumers \u548c maxConcurrentConsumers&#xff0c;\u5e76\u80fd\u591f\u6839\u636e\u8d1f\u8f7d\u5728\u4e24\u8005\u4e4b\u95f4\u52a8\u6001\u589e\u52a0\u6216\u51cf\u5c11\u6d88\u8d39\u8005&#xff1b;Spring Boot \u4e5f\u63d0\u4f9b\u4e86\u5bf9\u5e94\u7684 spring.rabbitmq.listener.simple.concurrency \u548c max-concurrency \u914d\u7f6e\u3002<\/p>\n<p>\u53ef\u4ee5\u7b80\u5355\u7406\u89e3\u6210&#xff1a;<\/p>\n<p>\u5e73\u65f6&#xff1a;<\/p>\n<p>Consumer<br \/>\nConsumer<br \/>\nConsumer<\/p>\n<p>\u6d88\u606f\u53d8\u591a&#xff1a;<\/p>\n<p>Consumer<br \/>\nConsumer<br \/>\nConsumer<br \/>\nConsumer<br \/>\nConsumer<br \/>\n&#8230;<\/p>\n<hr \/>\n<h2>11. Consumer \u8d8a\u591a\u8d8a\u597d\u5417&#xff1f;<\/h2>\n<p>\u5f53\u7136\u4e0d\u662f\u3002<\/p>\n<p>\u6bd4\u5982 Consumer \u6700\u7ec8\u90fd\u9700\u8981\u64cd\u4f5c&#xff1a;<\/p>\n<p>MySQL<\/p>\n<p>\u6570\u636e\u5e93\u6700\u591a\u53ea\u80fd\u7a33\u5b9a\u5904\u7406&#xff1a;<\/p>\n<p>2000 \u6b21\u8bf7\u6c42\/s<\/p>\n<p>\u4f60\u539f\u6765&#xff1a;<\/p>\n<p>5 \u4e2a Consumer<\/p>\n<p>\u5df2\u7ecf\u628a\u6570\u636e\u5e93\u8dd1\u5230&#xff1a;<\/p>\n<p>80% CPU<\/p>\n<p>\u8fd9\u65f6\u5019\u7a81\u7136\u589e\u52a0\u5230&#xff1a;<\/p>\n<p>50 \u4e2a Consumer<\/p>\n<p>\u7ed3\u679c\u53ef\u80fd\u4e0d\u662f\u6d88\u8d39\u901f\u5ea6\u63d0\u9ad8 10 \u500d\u3002<\/p>\n<p>\u800c\u662f&#xff1a;<\/p>\n<p>\u6570\u636e\u5e93\u8fde\u63a5\u6c60\u8017\u5c3d<\/p>\n<p>SQL \u53d8\u6162<\/p>\n<p>\u5927\u91cf\u8bf7\u6c42\u8d85\u65f6<\/p>\n<p>Consumer \u53cd\u800c\u8d8a\u6765\u8d8a\u6162<\/p>\n<p>\u6700\u7ec8&#xff1a;<\/p>\n<p>RabbitMQ \u6ca1\u6302<\/p>\n<p>Consumer \u6ca1\u6302<\/p>\n<p>MySQL \u5148\u6302\u4e86<\/p>\n<p>\u56e0\u6b64\u589e\u52a0 Consumer \u7684\u524d\u63d0\u662f&#xff1a;<\/p>\n<p>\u4e0b\u6e38\u8d44\u6e90\u8fd8\u80fd\u627f\u53d7\u66f4\u591a\u5e76\u53d1\u3002<\/p>\n<p>\u9700\u8981\u4e00\u8d77\u8003\u8651&#xff1a;<\/p>\n<p>CPU<\/p>\n<p>\u6570\u636e\u5e93<\/p>\n<p>Redis<\/p>\n<p>\u7b2c\u4e09\u65b9\u63a5\u53e3<\/p>\n<p>\u8fde\u63a5\u6c60<\/p>\n<p>\u7f51\u7edc\u5e26\u5bbd<\/p>\n<p>\u6240\u4ee5\u6d88\u606f\u79ef\u538b\u4e0d\u80fd\u53ea\u770b RabbitMQ\u3002<\/p>\n<hr \/>\n<h2>12. Prefetch \u662f\u4ec0\u4e48&#xff1f;<\/h2>\n<p>\u8bb2\u5b8c\u6d88\u8d39\u8005\u5e76\u53d1&#xff0c;\u5c31\u5230\u4e86 RabbitMQ \u4e2d\u975e\u5e38\u91cd\u8981\u7684\u53c2\u6570&#xff1a;<\/p>\n<p>Prefetch<\/p>\n<p>\u5b83\u7279\u522b\u5bb9\u6613\u88ab\u7406\u89e3\u9519\u3002<\/p>\n<p>\u5148\u5047\u8bbe&#xff1a;<\/p>\n<p>prefetch &#061; 10<\/p>\n<p>\u5b83\u5e76\u4e0d\u662f\u8bf4&#xff1a;<\/p>\n<p>Consumer \u4e00\u6b21\u6279\u91cf\u6267\u884c\u4e1a\u52a1 10 \u6761<\/p>\n<p>\u4e5f\u4e0d\u662f&#xff1a;<\/p>\n<p>\u521b\u5efa 10 \u4e2a\u7ebf\u7a0b<\/p>\n<p>\u800c\u662f&#xff1a;<\/p>\n<p>RabbitMQ \u6700\u591a\u5141\u8bb8\u8fd9\u4e2a Consumer \u540c\u65f6\u6301\u6709\u4e00\u5b9a\u6570\u91cf\u7684\u3001\u5df2\u7ecf\u6295\u9012\u4f46\u5c1a\u672a ACK \u7684\u6d88\u606f\u3002<\/p>\n<p>RabbitMQ \u5f53\u524d\u5b98\u65b9\u6587\u6863\u628a Consumer Prefetch \u5b9a\u4e49\u4e3a\u9650\u5236\u4e00\u4e2a Consumer \u53ef\u4ee5\u62e5\u6709\u591a\u5c11\u6761 outstanding \/ unacknowledged deliveries\u3002RabbitMQ \u4f1a\u628a prefetch count \u5206\u522b\u5e94\u7528\u5230\u5404\u4e2a Consumer\u3002<\/p>\n<p>\u4f8b\u5982&#xff1a;<\/p>\n<p>prefetch &#061; 3<\/p>\n<p>\u90a3\u4e48&#xff1a;<\/p>\n<p>RabbitMQ<br \/>\n   \u2193<br \/>\nMessage 1<br \/>\nMessage 2<br \/>\nMessage 3<br \/>\n   \u2193<br \/>\nConsumer<\/p>\n<p>\u5982\u679c\u8fd9 3 \u6761\u90fd\u8fd8\u6ca1\u6709 ACK&#xff1a;<\/p>\n<p>Unacked &#061; 3<\/p>\n<p>RabbitMQ \u5c31\u4e0d\u4f1a\u7ee7\u7eed\u65e0\u9650\u5730\u5f80\u8fd9\u4e2a Consumer \u624b\u91cc\u585e\u6d88\u606f\u3002<\/p>\n<p>\u7b49 Consumer&#xff1a;<\/p>\n<p>ACK Message 1<\/p>\n<p>\u817e\u51fa\u4e00\u4e2a\u4f4d\u7f6e&#xff1a;<\/p>\n<p>Unacked &#061; 2<\/p>\n<p>RabbitMQ \u624d\u53ef\u4ee5\u7ee7\u7eed\u53d1\u9001\u4e0b\u4e00\u6761\u3002<\/p>\n<hr \/>\n<h2>13. \u4e3a\u4ec0\u4e48\u9700\u8981 Prefetch&#xff1f;<\/h2>\n<p>\u5047\u8bbe\u5b8c\u5168\u4e0d\u9650\u5236\u3002<\/p>\n<p>RabbitMQ \u4e2d\u6709&#xff1a;<\/p>\n<p>100000 \u6761\u6d88\u606f<\/p>\n<p>Consumer A \u7f51\u7edc\u5f88\u5feb&#xff1a;<\/p>\n<p>RabbitMQ<br \/>\n    \u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193<br \/>\nConsumer A<\/p>\n<p>\u5927\u91cf\u6d88\u606f\u5168\u90e8\u88ab\u63a8\u8fc7\u53bb\u3002<\/p>\n<p>\u7ed3\u679c&#xff1a;<\/p>\n<p>Consumer A \u624b\u91cc\u5806\u4e86\u51e0\u4e07\u6761<\/p>\n<p>Consumer B \u5374\u6ca1\u5206\u5230\u591a\u5c11<\/p>\n<p>\u800c\u4e14\u5927\u91cf&#xff1a;<\/p>\n<p>Unacked<\/p>\n<p>\u6d88\u606f\u4f1a\u5360\u7528&#xff1a;<\/p>\n<p>Consumer \u5185\u5b58<\/p>\n<p>RabbitMQ \u8d44\u6e90<\/p>\n<p>\u6240\u4ee5 Prefetch \u76f8\u5f53\u4e8e\u544a\u8bc9 RabbitMQ&#xff1a;<\/p>\n<p>\u522b\u4e00\u6b21\u7ed9\u6211\u592a\u591a&#xff0c;\u6211\u5904\u7406\u5b8c\u4e00\u4e9b&#xff0c;\u4f60\u518d\u7ee7\u7eed\u7ed9\u3002<\/p>\n<p>\u8fd9\u5176\u5b9e\u662f\u4e00\u79cd&#xff1a;<\/p>\n<p>\u6d41\u91cf\u63a7\u5236<\/p>\n<hr \/>\n<h2>14. Prefetch \u592a\u5c0f\u4f1a\u600e\u4e48\u6837&#xff1f;<\/h2>\n<p>\u5047\u8bbe&#xff1a;<\/p>\n<p>prefetch &#061; 1<\/p>\n<p>\u6d41\u7a0b&#xff1a;<\/p>\n<p>RabbitMQ<br \/>\n   \u2193<br \/>\nMessage 1<br \/>\n   \u2193<br \/>\nConsumer<br \/>\n   \u2193<br \/>\n\u5904\u7406<br \/>\n   \u2193<br \/>\nACK<br \/>\n   \u2193<br \/>\nRabbitMQ<br \/>\n   \u2193<br \/>\nMessage 2<\/p>\n<p>Consumer \u6bcf\u6b21\u53ea\u80fd\u62e5\u6709&#xff1a;<\/p>\n<p>1 \u6761\u672a\u786e\u8ba4\u6d88\u606f<\/p>\n<p>\u4f18\u70b9&#xff1a;<\/p>\n<p>\u6d88\u606f\u5206\u914d\u6bd4\u8f83\u516c\u5e73<\/p>\n<p>Consumer \u5185\u5b58\u538b\u529b\u5c0f<\/p>\n<p>\u66f4\u9002\u5408\u5f88\u6162\u6216\u8005\u5f88\u5927\u7684\u6d88\u606f<\/p>\n<p>\u4f46\u5982\u679c Consumer \u672c\u8eab\u5904\u7406\u975e\u5e38\u5feb&#xff1a;<\/p>\n<p>\u5904\u7406\u5b8c<br \/>\n   \u2193<br \/>\n\u7b49\u4e0b\u4e00\u6761<br \/>\n   \u2193<br \/>\n\u518d\u5904\u7406<\/p>\n<p>\u9891\u7e41\u7b49\u5f85 Broker \u7ee7\u7eed\u6295\u9012&#xff0c;\u53ef\u80fd\u65e0\u6cd5\u5145\u5206\u5229\u7528\u6d88\u8d39\u80fd\u529b\u3002<\/p>\n<p>\u56e0\u6b64&#xff1a;<\/p>\n<p>prefetch \u592a\u5c0f<\/p>\n<p>\u53ef\u80fd\u9650\u5236\u541e\u5410\u91cf\u3002<\/p>\n<hr \/>\n<h2>15. Prefetch \u592a\u5927\u53c8\u4f1a\u600e\u4e48\u6837&#xff1f;<\/h2>\n<p>\u5047\u8bbe&#xff1a;<\/p>\n<p>prefetch &#061; 10000<\/p>\n<p>RabbitMQ \u53ef\u4ee5\u63d0\u524d\u7ed9\u4e00\u4e2a Consumer&#xff1a;<\/p>\n<p>10000 \u6761\u672a ACK \u6d88\u606f<\/p>\n<p>\u5982\u679c\u6bcf\u6761\u6d88\u606f&#xff1a;<\/p>\n<p>1MB<\/p>\n<p>\u7406\u8bba\u4e0a\u5c31\u53ef\u80fd\u5f62\u6210\u975e\u5e38\u5927\u7684\u5ba2\u6237\u7aef\u5185\u5b58\u538b\u529b\u3002<\/p>\n<p>\u800c\u4e14\u591a\u4e2a Consumer \u65f6&#xff1a;<\/p>\n<p>Consumer A<\/p>\n<p>\u53ef\u80fd\u63d0\u524d\u62ff\u8d70\u5927\u91cf\u6d88\u606f\u3002<\/p>\n<p>\u5176\u4ed6 Consumer&#xff1a;<\/p>\n<p>Consumer B<br \/>\nConsumer C<\/p>\n<p>\u53cd\u800c\u6ca1\u6709\u591a\u5c11\u6d88\u606f\u53ef\u4ee5\u5904\u7406\u3002<\/p>\n<p>RabbitMQ \u5b98\u65b9\u4e5f\u63d0\u9192&#xff0c;\u9ad8\u8fbe\u6570\u5343\u751a\u81f3\u66f4\u591a\u7684 Prefetch \u53ef\u80fd\u5e26\u6765\u548c\u81ea\u52a8\u786e\u8ba4\u7c7b\u4f3c\u7684\u8fc7\u8f7d\u95ee\u9898&#xff0c;\u5e76\u589e\u52a0 Broker \u7aef\u672a\u786e\u8ba4\u6d88\u606f\u76f8\u5173\u7684\u5185\u5b58\u4f7f\u7528\u3002<\/p>\n<p>\u6240\u4ee5&#xff1a;<\/p>\n<p>Prefetch \u4e0d\u662f\u8d8a\u5927\u8d8a\u5feb\u3002<\/p>\n<hr \/>\n<h2>16. Spring Boot \u600e\u4e48\u8bbe\u7f6e Prefetch&#xff1f;<\/h2>\n<p>\u53ef\u4ee5&#xff1a;<\/p>\n<p><span class=\"token key atrule\">spring<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">rabbitmq<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token key atrule\">listener<\/span><span class=\"token punctuation\">:<\/span><br \/>\n      <span class=\"token key atrule\">simple<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        <span class=\"token key atrule\">prefetch<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">20<\/span><\/p>\n<p>\u8868\u793a\u6bcf\u4e2a Consumer&#xff1a;<\/p>\n<p>\u6700\u591a\u62e5\u6709 20 \u6761\u672a ACK \u6d88\u606f<\/p>\n<p>Spring Boot \u5f53\u524d\u914d\u7f6e\u6587\u6863\u5bf9\u8fd9\u4e2a\u53c2\u6570\u7684\u63cf\u8ff0\u5c31\u662f&#xff1a;<\/p>\n<p>Maximum number of unacknowledged messages<br \/>\nthat can be outstanding at each consumer<\/p>\n<p>\u4e5f\u5c31\u662f\u6bcf\u4e2a Consumer \u6700\u591a\u5141\u8bb8\u591a\u5c11\u6761\u5c1a\u672a\u786e\u8ba4\u7684\u6d88\u606f\u3002<\/p>\n<p>\u4f8b\u5982\u540c\u65f6\u914d\u7f6e&#xff1a;<\/p>\n<p><span class=\"token key atrule\">spring<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">rabbitmq<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token key atrule\">listener<\/span><span class=\"token punctuation\">:<\/span><br \/>\n      <span class=\"token key atrule\">simple<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        <span class=\"token key atrule\">concurrency<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">5<\/span><br \/>\n        <span class=\"token key atrule\">prefetch<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">20<\/span><\/p>\n<p>\u90a3\u4e48\u7406\u8bba\u4e0a&#xff1a;<\/p>\n<p>5 \u4e2a Consumer<\/p>\n<p>\u6bcf\u4e2a\u6700\u591a&#xff1a;<\/p>\n<p>20 \u6761 Unacked<\/p>\n<p>\u6574\u4f53\u6700\u591a\u53ef\u80fd\u5b58\u5728\u5927\u7ea6&#xff1a;<\/p>\n<p>5 \u00d7 20<\/p>\n<p>&#061; 100 \u6761<\/p>\n<p>\u5df2\u7ecf\u6295\u9012\u7ed9\u8fd9\u4e9b Consumer\u3001\u4f46\u5c1a\u672a\u786e\u8ba4\u7684\u6d88\u606f\u3002<\/p>\n<hr \/>\n<h2>17. Spring AMQP \u9ed8\u8ba4 Prefetch \u662f\u591a\u5c11&#xff1f;<\/h2>\n<p>\u5f53\u524d Spring AMQP \u6587\u6863\u4e2d&#xff1a;<\/p>\n<p>\u9ed8\u8ba4 prefetch &#061; 250<\/p>\n<p>\u8fd9\u662f\u4e3a\u4e86\u8ba9\u5904\u7406\u901f\u5ea6\u8f83\u5feb\u7684 Consumer \u4fdd\u6301\u8f83\u9ad8\u5229\u7528\u7387\u3002<\/p>\n<p>\u4e0d\u8fc7\u5b98\u65b9\u540c\u65f6\u6307\u51fa&#xff0c;\u5728\u4e0b\u9762\u8fd9\u4e9b\u573a\u666f\u5e94\u8be5\u8003\u8651\u964d\u4f4e Prefetch&#xff1a;<\/p>\n<p>\u6d88\u606f\u4f53\u5f88\u5927<\/p>\n<p>\u6d88\u606f\u5904\u7406\u5f88\u6162<\/p>\n<p>\u8981\u6c42\u4e25\u683c\u987a\u5e8f<\/p>\n<p>\u591a\u4e2a Consumer \u4e0b\u5e0c\u671b\u5206\u914d\u66f4\u52a0\u5747\u5300<\/p>\n<p>\u5c24\u5176\u4e25\u683c\u987a\u5e8f\u573a\u666f&#xff0c;\u5b98\u65b9\u5efa\u8bae\u5c06 Prefetch \u964d\u5230&#xff1a;<\/p>\n<p>1<\/p>\n<p>\u6240\u4ee5\u535a\u5ba2\u91cc\u4e0d\u8981\u5199\u6210&#xff1a;<\/p>\n<p>prefetch \u4e00\u5b9a\u8bbe\u7f6e\u4e3a\u591a\u5c11\u6700\u597d<\/p>\n<p>\u56e0\u4e3a\u5b83\u5e76\u4e0d\u5b58\u5728\u4e00\u4e2a\u9002\u7528\u4e8e\u6240\u6709\u4e1a\u52a1\u7684\u56fa\u5b9a\u503c\u3002<\/p>\n<hr \/>\n<h2>18. Prefetch \u548c Concurrency \u5230\u5e95\u6709\u4ec0\u4e48\u533a\u522b&#xff1f;<\/h2>\n<p>\u8fd9\u662f\u8fd9\u4e00\u7bc7\u6700\u9700\u8981\u533a\u5206\u7684\u5730\u65b9\u3002<\/p>\n<h4>Concurrency<\/h4>\n<p>\u63a7\u5236&#xff1a;<\/p>\n<p>\u6709\u591a\u5c11 Consumer \u540c\u65f6\u5e72\u6d3b<\/p>\n<p>\u4f8b\u5982&#xff1a;<\/p>\n<p>concurrency &#061; 5<\/p>\n<p>\u5c31\u662f&#xff1a;<\/p>\n<p>Consumer 1<br \/>\nConsumer 2<br \/>\nConsumer 3<br \/>\nConsumer 4<br \/>\nConsumer 5<\/p>\n<hr \/>\n<h4>Prefetch<\/h4>\n<p>\u63a7\u5236&#xff1a;<\/p>\n<p>\u6bcf\u4e2a Consumer<br \/>\n\u6700\u591a\u63d0\u524d\u62ff\u591a\u5c11\u6761\u672a ACK \u6d88\u606f<\/p>\n<p>\u4f8b\u5982&#xff1a;<\/p>\n<p>prefetch &#061; 20<\/p>\n<p>\u5c31\u662f&#xff1a;<\/p>\n<p>Consumer 1 \u2192 \u6700\u591a 20 \u6761 Unacked<\/p>\n<p>Consumer 2 \u2192 \u6700\u591a 20 \u6761 Unacked<\/p>\n<p>&#8230;<\/p>\n<p>\u6240\u4ee5&#xff1a;<\/p>\n<p>Concurrency<br \/>\n    \u2193<br \/>\n\u6709\u591a\u5c11\u4e2a\u4eba\u5e72\u6d3b<\/p>\n<p>Prefetch<br \/>\n    \u2193<br \/>\n\u6bcf\u4e2a\u4eba\u624b\u91cc\u6700\u591a\u53ef\u4ee5\u62ff\u591a\u5c11\u4efb\u52a1<\/p>\n<p>\u8fd9\u4e2a\u6bd4\u55bb\u975e\u5e38\u597d\u8bb0\u3002<\/p>\n<hr \/>\n<h2>19. \u7528\u9910\u5385\u7406\u89e3 Concurrency \u548c Prefetch<\/h2>\n<p>\u5047\u8bbe\u9910\u5385\u53a8\u623f&#xff1a;<\/p>\n<p>\u8ba2\u5355 Queue<\/p>\n<p>\u53a8\u5e08&#xff1a;<\/p>\n<p>Consumer<\/p>\n<h4>Concurrency &#061; 3<\/h4>\n<p>\u4ee3\u8868&#xff1a;<\/p>\n<p>\u6709 3 \u4e2a\u53a8\u5e08<\/p>\n<p>\u53a8\u5e08 A<\/p>\n<p>\u53a8\u5e08 B<\/p>\n<p>\u53a8\u5e08 C<\/p>\n<hr \/>\n<h4>Prefetch &#061; 5<\/h4>\n<p>\u4ee3\u8868&#xff1a;<\/p>\n<p>\u6bcf\u4e2a\u53a8\u5e08\u684c\u5b50\u4e0a\u6700\u591a\u53ef\u4ee5\u63d0\u524d\u653e 5 \u5f20\u8ba2\u5355<\/p>\n<p>\u4e8e\u662f&#xff1a;<\/p>\n<p>Queue<br \/>\n  \u2193<br \/>\n\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<br \/>\n\u2502 \u53a8\u5e08 A   \u2502 \u2190 \u6700\u591a 5 \u5355<br \/>\n\u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524<br \/>\n\u2502 \u53a8\u5e08 B   \u2502 \u2190 \u6700\u591a 5 \u5355<br \/>\n\u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524<br \/>\n\u2502 \u53a8\u5e08 C   \u2502 \u2190 \u6700\u591a 5 \u5355<br \/>\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<\/p>\n<p>\u5982\u679c&#xff1a;<\/p>\n<p>Prefetch \u5f88\u5927<\/p>\n<p>\u5c31\u50cf\u4e00\u6b21\u7ed9\u67d0\u4e2a\u53a8\u5e08\u684c\u4e0a\u5806&#xff1a;<\/p>\n<p>500 \u5f20\u8ba2\u5355<\/p>\n<p>\u4e0d\u4ec5\u684c\u5b50\u5806\u6ee1\u4e86&#xff0c;\u4e5f\u53ef\u80fd\u5bfc\u81f4\u5176\u4ed6\u53a8\u5e08\u6ca1\u6709\u4efb\u52a1\u3002<\/p>\n<p>\u5982\u679c&#xff1a;<\/p>\n<p>Prefetch \u592a\u5c0f<\/p>\n<p>\u53c8\u50cf\u53a8\u5e08\u505a\u5b8c\u4e00\u9053\u83dc\u4ee5\u540e&#xff1a;<\/p>\n<p>\u5fc5\u987b\u91cd\u65b0\u8dd1\u5230\u524d\u53f0\u62ff\u4e0b\u4e00\u5f20\u8ba2\u5355<\/p>\n<p>\u4e5f\u53ef\u80fd\u964d\u4f4e\u6548\u7387\u3002<\/p>\n<p>\u6240\u4ee5\u9700\u8981\u627e\u5230&#xff1a;<\/p>\n<p>\u5408\u9002\u7684\u503c<\/p>\n<p>\u800c\u4e0d\u662f&#xff1a;<\/p>\n<p>\u8d8a\u5927\u8d8a\u597d<\/p>\n<hr \/>\n<h2>20. \u7b2c\u4e09\u79cd\u65b9\u6848&#xff1a;\u589e\u52a0\u5e94\u7528\u5b9e\u4f8b<\/h2>\n<p>\u5047\u8bbe\u73b0\u5728\u4e00\u53f0\u673a\u5668\u8fd0\u884c&#xff1a;<\/p>\n<p>OrderConsumer<\/p>\n<p>\u5373\u4f7f\u7ebf\u7a0b\u5e76\u53d1\u5f00\u5f97\u518d\u591a&#xff1a;<\/p>\n<p>concurrency &#061; 50<\/p>\n<p>\u6700\u7ec8\u8fd8\u662f\u5171\u4eab&#xff1a;<\/p>\n<p>\u4e00\u53f0\u673a\u5668\u7684 CPU<br \/>\n\u5185\u5b58<br \/>\n\u7f51\u7edc<\/p>\n<p>\u5f53\u5355\u673a\u5df2\u7ecf\u5230\u8fbe\u74f6\u9888&#xff0c;\u5c31\u9700\u8981&#xff1a;<\/p>\n<p>\u6a2a\u5411\u6269\u5bb9<\/p>\n<p>\u4f8b\u5982\u539f\u6765&#xff1a;<\/p>\n<p>RabbitMQ<br \/>\n    \u2193<br \/>\nApplication A<\/p>\n<p>\u6269\u5bb9\u4ee5\u540e&#xff1a;<\/p>\n<p>             \u250c\u2192 Application A<br \/>\n             \u2502<br \/>\nRabbitMQ \u2500\u2500\u2500\u2500\u253c\u2192 Application B<br \/>\n             \u2502<br \/>\n             \u2514\u2192 Application C<\/p>\n<p>\u4e09\u4e2a\u5e94\u7528\u5b9e\u4f8b\u90fd\u76d1\u542c&#xff1a;<\/p>\n<p>order.queue<\/p>\n<p>RabbitMQ \u4f1a\u628a\u6d88\u606f\u5206\u53d1\u7ed9\u4e0d\u540c Consumer\u3002<\/p>\n<p>\u56e0\u6b64\u603b\u6d88\u8d39\u80fd\u529b\u53ef\u4ee5\u8fdb\u4e00\u6b65\u63d0\u5347\u3002<\/p>\n<hr \/>\n<h2>21. \u7ebf\u7a0b\u6269\u5bb9\u548c\u673a\u5668\u6269\u5bb9\u6709\u4ec0\u4e48\u533a\u522b&#xff1f;<\/h2>\n<h4>\u589e\u52a0 Concurrency<\/h4>\n<p>\u5c5e\u4e8e&#xff1a;<\/p>\n<p>\u5355\u4e2a\u5e94\u7528\u5185\u90e8\u6269\u5bb9<\/p>\n<p>\u6bd4\u5982&#xff1a;<\/p>\n<p>1 \u4e2a JVM<\/p>\n<p>\u91cc\u9762 10 \u4e2a Consumer<\/p>\n<hr \/>\n<h4>\u589e\u52a0\u5e94\u7528\u5b9e\u4f8b<\/h4>\n<p>\u5c5e\u4e8e&#xff1a;<\/p>\n<p>\u6a2a\u5411\u6269\u5bb9<\/p>\n<p>\u4f8b\u5982&#xff1a;<\/p>\n<p>JVM A \u2192 10 Consumers<\/p>\n<p>JVM B \u2192 10 Consumers<\/p>\n<p>JVM C \u2192 10 Consumers<\/p>\n<p>\u4e8e\u662f&#xff1a;<\/p>\n<p>\u603b\u5171 30 \u4e2a Consumer<\/p>\n<p>\u53ef\u4ee5\u7ee7\u7eed\u63d0\u9ad8\u6574\u4f53\u6d88\u8d39\u80fd\u529b\u3002<\/p>\n<p>\u6240\u4ee5\u901a\u5e38&#xff1a;<\/p>\n<p>\u5148\u4f18\u5316\u5355\u6761\u5904\u7406\u901f\u5ea6<\/p>\n<p>       \u2193<\/p>\n<p>\u9002\u5f53\u63d0\u9ad8 Consumer \u5e76\u53d1<\/p>\n<p>       \u2193<\/p>\n<p>\u5355\u673a\u8fbe\u5230\u74f6\u9888<\/p>\n<p>       \u2193<\/p>\n<p>\u589e\u52a0\u5e94\u7528\u5b9e\u4f8b<\/p>\n<p>\u8fd9\u662f\u6bd4\u8f83\u81ea\u7136\u7684\u6269\u5bb9\u8def\u5f84\u3002<\/p>\n<hr \/>\n<h2>22. \u4e34\u65f6\u51fa\u73b0\u51e0\u5341\u4e07\u6761\u79ef\u538b\u600e\u4e48\u529e&#xff1f;<\/h2>\n<p>\u5047\u8bbe\u5e73\u65f6\u7cfb\u7edf\u8fd0\u884c\u6b63\u5e38\u3002<\/p>\n<p>\u7a81\u7136\u67d0\u4e2a Consumer&#xff1a;<\/p>\n<p>\u5b95\u673a 30 \u5206\u949f<\/p>\n<p>RabbitMQ \u5df2\u7ecf\u5806\u79ef&#xff1a;<\/p>\n<p>50 \u4e07\u6761\u6d88\u606f<\/p>\n<p>\u73b0\u5728 Consumer \u6062\u590d\u4e86\u3002<\/p>\n<p>\u4f46\u6b63\u5e38\u751f\u4ea7\u901f\u5ea6&#xff1a;<\/p>\n<p>2000\/s<\/p>\n<p>Consumer \u6b63\u5e38\u6d88\u8d39\u901f\u5ea6\u4e5f\u662f&#xff1a;<\/p>\n<p>2000\/s<\/p>\n<p>\u90a3\u610f\u5473\u7740&#xff1a;<\/p>\n<p>\u65b0\u6d88\u606f\u521a\u597d\u5168\u90e8\u6d88\u8d39\u6389<\/p>\n<p>\u4e4b\u524d\u90a3&#xff1a;<\/p>\n<p>50 \u4e07\u6761<\/p>\n<p>\u6c38\u8fdc\u4e5f\u6d88\u5316\u4e0d\u5b8c\u3002<\/p>\n<p>\u8fd9\u65f6\u5019\u5fc5\u987b\u8ba9&#xff1a;<\/p>\n<p>\u6d88\u8d39\u901f\u5ea6 &gt; \u65b0\u6d88\u606f\u751f\u4ea7\u901f\u5ea6<\/p>\n<p>\u4f8b\u5982\u4e34\u65f6\u6269\u5bb9&#xff1a;<\/p>\n<p>\u6d88\u8d39\u80fd\u529b&#xff1a;<\/p>\n<p>8000\/s<\/p>\n<p>\u65b0\u6d88\u606f&#xff1a;<\/p>\n<p>2000\/s<\/p>\n<p>\u90a3\u4e48\u6bcf\u79d2\u53ef\u4ee5\u989d\u5916\u6e05\u7406&#xff1a;<\/p>\n<p>8000 &#8211; 2000<\/p>\n<p>&#061; 6000 \u6761\u5386\u53f2\u6d88\u606f<\/p>\n<p>\u539f\u6765&#xff1a;<\/p>\n<p>500000 \u6761<\/p>\n<p>\u7406\u8bba\u4e0a\u5927\u7ea6&#xff1a;<\/p>\n<p>500000 \u00f7 6000<\/p>\n<p>\u2248 83 \u79d2<\/p>\n<p>\u80fd\u591f\u9010\u6e10\u6d88\u5316\u3002<\/p>\n<p>\u6240\u4ee5\u5904\u7406\u5386\u53f2\u79ef\u538b\u7684\u5173\u952e\u662f&#xff1a;<\/p>\n<p>\u5fc5\u987b\u6682\u65f6\u63d0\u4f9b\u8d85\u8fc7\u5f53\u524d\u751f\u4ea7\u901f\u5ea6\u7684\u989d\u5916\u6d88\u8d39\u80fd\u529b\u3002<\/p>\n<hr \/>\n<h2>23. \u52a0 Consumer \u8fd8\u662f\u4e0d\u591f\u600e\u4e48\u529e&#xff1f;<\/h2>\n<p>\u5047\u8bbe\u5df2\u7ecf&#xff1a;<\/p>\n<p>Consumer \u00d7 50<\/p>\n<p>\u4f46\u79ef\u538b\u4ecd\u7136\u8d8a\u6765\u8d8a\u591a\u3002<\/p>\n<p>\u8fd9\u65f6\u5019\u8bf4\u660e\u95ee\u9898\u53ef\u80fd\u5df2\u7ecf\u4e0d\u53ea\u662f Consumer \u6570\u91cf\u3002<\/p>\n<p>\u4f8b\u5982&#xff1a;<\/p>\n<p>\u6570\u636e\u5e93\u5df2\u7ecf\u5230\u6781\u9650<\/p>\n<p>Redis \u5230\u6781\u9650<\/p>\n<p>\u4e0b\u6e38\u670d\u52a1\u9650\u6d41<\/p>\n<p>\u7f51\u7edc\u5e26\u5bbd\u5230\u6781\u9650<\/p>\n<p>\u7ee7\u7eed\u52a0 Consumer \u53cd\u800c&#xff1a;<\/p>\n<p>\u628a\u66f4\u591a\u538b\u529b\u4f20\u9012\u7ed9\u4e0b\u6e38<\/p>\n<p>\u6240\u4ee5\u5e94\u8be5\u91cd\u65b0\u5206\u6790\u6574\u4e2a\u94fe\u8def&#xff1a;<\/p>\n<p>RabbitMQ<br \/>\n    \u2193<br \/>\nConsumer<br \/>\n    \u2193<br \/>\nMySQL<br \/>\n    \u2193<br \/>\nRedis<br \/>\n    \u2193<br \/>\nThird Party API<\/p>\n<p>\u5230\u5e95\u54ea\u4e00\u6bb5\u624d\u662f\u771f\u6b63\u74f6\u9888\u3002<\/p>\n<p>\u8fd9\u5c31\u662f\u4e3a\u4ec0\u4e48&#xff1a;<\/p>\n<p>RabbitMQ \u6d88\u606f\u79ef\u538b\u5176\u5b9e\u662f\u7cfb\u7edf\u541e\u5410\u80fd\u529b\u4e0d\u8db3\u7684\u8868\u73b0&#xff0c;\u800c\u4e0d\u4e00\u5b9a\u662f RabbitMQ \u81ea\u5df1\u7684\u95ee\u9898\u3002<\/p>\n<hr \/>\n<h2>24. \u80fd\u4e0d\u80fd\u9650\u5236 Queue \u6700\u5927\u957f\u5ea6&#xff1f;<\/h2>\n<p>\u53ef\u4ee5\u3002<\/p>\n<p>RabbitMQ \u652f\u6301\u7ed9 Queue \u914d\u7f6e&#xff1a;<\/p>\n<p>\u6700\u5927\u6d88\u606f\u6570\u91cf<\/p>\n<p>\u6700\u5927\u6d88\u606f\u603b\u5b57\u8282\u6570<\/p>\n<p>\u4e5f\u5c31\u662f&#xff1a;<\/p>\n<p>x-max-length<\/p>\n<p>x-max-length-bytes<\/p>\n<p>\u5f53\u524d\u5b98\u65b9\u6587\u6863\u8fd8\u652f\u6301\u4e0d\u540c\u7684\u6ea2\u51fa\u7b56\u7565&#xff0c;\u4f8b\u5982&#xff1a;<\/p>\n<p>drop-head<\/p>\n<p>reject-publish<\/p>\n<p>reject-publish-dlx<\/p>\n<p>RabbitMQ \u5b98\u65b9\u66f4\u63a8\u8350\u901a\u8fc7 Policy \u7ba1\u7406 Queue Length Limit\u3002<\/p>\n<p>\u4f46\u9700\u8981\u6ce8\u610f&#xff1a;<\/p>\n<p>\u8bbe\u7f6e Queue \u6700\u5927\u957f\u5ea6\u5e76\u4e0d\u662f\u201c\u89e3\u51b3\u6d88\u606f\u79ef\u538b\u201d\u3002<\/p>\n<p>\u5b83\u53ea\u662f\u9632\u6b62&#xff1a;<\/p>\n<p>Queue \u65e0\u9650\u589e\u957f<\/p>\n<p>\u5982\u679c\u751f\u4ea7\u901f\u5ea6\u8fd8\u662f&#xff1a;<\/p>\n<p>5000\/s<\/p>\n<p>\u6d88\u8d39\u901f\u5ea6\u8fd8\u662f&#xff1a;<\/p>\n<p>1000\/s<\/p>\n<p>\u6839\u672c\u77db\u76fe\u4f9d\u7136\u5b58\u5728\u3002<\/p>\n<p>\u751a\u81f3\u8fbe\u5230\u9650\u5236\u4ee5\u540e&#xff0c;\u8fd8\u9700\u8981\u8003\u8651&#xff1a;<\/p>\n<p>\u6d88\u606f\u88ab\u62d2\u7edd\u600e\u4e48\u529e&#xff1f;<\/p>\n<p>\u6d88\u606f\u88ab\u4e22\u5f03\u600e\u4e48\u529e&#xff1f;<\/p>\n<p>\u662f\u5426\u8fdb\u5165 DLX&#xff1f;<\/p>\n<p>\u6240\u4ee5 Queue Limit \u66f4\u50cf&#xff1a;<\/p>\n<p>\u4fdd\u62a4\u63aa\u65bd<\/p>\n<p>\u800c\u4e0d\u662f&#xff1a;<\/p>\n<p>\u6027\u80fd\u4f18\u5316\u63aa\u65bd<\/p>\n<hr \/>\n<h2>25. \u600e\u4e48\u5224\u65ad\u5230\u5e95\u8be5\u589e\u52a0 Consumer \u8fd8\u662f\u8c03 Prefetch&#xff1f;<\/h2>\n<p>RabbitMQ Management UI \u4e2d\u8fd8\u6709\u4e00\u4e2a\u5f88\u6709\u4ef7\u503c\u7684\u6307\u6807&#xff1a;<\/p>\n<p>Consumer Capacity<\/p>\n<p>\u5b83\u4ee5\u524d\u53eb&#xff1a;<\/p>\n<p>Consumer Utilisation<\/p>\n<p>RabbitMQ \u5f53\u524d\u6587\u6863\u8bf4\u660e&#xff0c;\u8fd9\u4e2a\u6307\u6807\u53ef\u4ee5\u5e2e\u52a9\u5224\u65ad Queue \u662f\u5426\u53ef\u80fd\u901a\u8fc7&#xff1a;<\/p>\n<p>\u589e\u52a0 Consumer<\/p>\n<p>\u7f29\u77ed Consumer \u5904\u7406\u65f6\u95f4<\/p>\n<p>\u63d0\u9ad8 Prefetch<\/p>\n<p>\u83b7\u5f97\u66f4\u9ad8\u7684\u6295\u9012\u80fd\u529b\u3002<\/p>\n<p>\u6240\u4ee5\u5b9e\u9645\u6392\u67e5\u65f6\u4e0d\u8981\u53ea\u76ef\u7740&#xff1a;<\/p>\n<p>Queue \u6709\u591a\u5c11\u6761\u6d88\u606f<\/p>\n<p>\u8fd8\u5e94\u8be5\u4e00\u8d77\u770b&#xff1a;<\/p>\n<p>Ready<\/p>\n<p>Unacked<\/p>\n<p>Publish Rate<\/p>\n<p>Ack Rate<\/p>\n<p>Consumer Count<\/p>\n<p>Consumer Capacity<\/p>\n<p>\u8fd9\u4e9b\u6307\u6807\u7ec4\u5408\u8d77\u6765\u624d\u80fd\u5224\u65ad\u771f\u6b63\u7684\u95ee\u9898\u3002<\/p>\n<hr \/>\n<h2>26. \u4e00\u5957\u6bd4\u8f83\u5b9e\u7528\u7684\u6d88\u606f\u79ef\u538b\u6392\u67e5\u601d\u8def<\/h2>\n<p>\u770b\u5230&#xff1a;<\/p>\n<p>Queue \u6d88\u606f\u8d8a\u6765\u8d8a\u591a<\/p>\n<p>\u4e0d\u8981\u4e0a\u6765\u5c31&#xff1a;<\/p>\n<p>prefetch &#061; 10000<\/p>\n<p>\u6216\u8005&#xff1a;<\/p>\n<p>concurrency &#061; 100<\/p>\n<p>\u66f4\u5408\u7406\u7684\u6392\u67e5\u987a\u5e8f\u662f&#xff1a;<\/p>\n<p>\u53d1\u73b0\u6d88\u606f\u79ef\u538b<br \/>\n      \u2193<br \/>\n\u751f\u4ea7\u901f\u5ea6\u662f\u591a\u5c11&#xff1f;<br \/>\n      \u2193<br \/>\n\u6d88\u8d39\u901f\u5ea6\u662f\u591a\u5c11&#xff1f;<br \/>\n      \u2193<br \/>\nConsumer \u662f\u5426\u5f02\u5e38&#xff1f;<br \/>\n      \u2193<br \/>\n\u5355\u6761\u6d88\u606f\u5904\u7406\u4e3a\u4ec0\u4e48\u6162&#xff1f;<br \/>\n      \u2193<br \/>\nCPU \/ DB \/ Redis \/ \u7b2c\u4e09\u65b9\u662f\u5426\u5df2\u7ecf\u5230\u74f6\u9888&#xff1f;<br \/>\n      \u2193<br \/>\n\u8c03\u6574\u6d88\u8d39\u8005\u5e76\u53d1<br \/>\n      \u2193<br \/>\n\u5408\u7406\u8c03\u6574 Prefetch<br \/>\n      \u2193<br \/>\n\u9700\u8981\u65f6\u6c34\u5e73\u6269\u5bb9\u5b9e\u4f8b<\/p>\n<p>\u5982\u679c\u6700\u7ec8\u53d1\u73b0&#xff1a;<\/p>\n<p>\u4e00\u4e2a Queue \u672c\u8eab\u5df2\u7ecf\u6210\u4e3a\u6781\u9ad8\u541e\u5410\u74f6\u9888<\/p>\n<p>\u5219\u53ef\u80fd\u9700\u8981\u8fdb\u4e00\u6b65\u8003\u8651&#xff1a;<\/p>\n<p>\u62c6\u5206 Queue<\/p>\n<p>\u4e1a\u52a1\u5206\u7247<\/p>\n<p>RabbitMQ Streams<\/p>\n<p>RabbitMQ \u5f53\u524d\u5b98\u65b9\u6587\u6863\u4e5f\u6307\u51fa&#xff0c;\u5355\u4e2a Queue Replica \u7684\u70ed\u70b9\u6267\u884c\u8def\u5f84\u53d7\u5230\u5355\u4e2a CPU Core \u7684\u9650\u5236&#xff0c;\u5bf9\u4e8e\u903c\u8fd1\u5355 Queue \u541e\u5410\u6781\u9650\u7684\u573a\u666f&#xff0c;\u5e94\u8003\u8651\u591a\u4e2a Queue&#xff0c;\u6216\u8005 Streams \/ Partitioned Streams\u3002<\/p>\n<p>\u4e0d\u8fc7\u8fd9\u4e00\u90e8\u5206\u5df2\u7ecf\u5c5e\u4e8e\u6bd4\u8f83\u6df1\u5165\u7684\u6027\u80fd\u8bbe\u8ba1\u4e86\u3002<\/p>\n<p>\u5165\u95e8\u9636\u6bb5\u77e5\u9053&#xff1a;<\/p>\n<p>\u4e00\u4e2a Queue \u4e5f\u4e0d\u662f\u65e0\u9650\u541e\u5410<\/p>\n<p>\u5373\u53ef\u3002<\/p>\n<hr \/>\n<h2>27. \u628a\u6d88\u606f\u79ef\u538b\u95ee\u9898\u603b\u7ed3\u6210\u4e00\u4e2a\u516c\u5f0f<\/h2>\n<p>\u5176\u5b9e\u8fd9\u7bc7\u6700\u6838\u5fc3\u7684\u4e1c\u897f\u975e\u5e38\u7b80\u5355&#xff1a;<\/p>\n<p>\u751f\u4ea7\u901f\u5ea6 &gt; \u6d88\u8d39\u901f\u5ea6<br \/>\n       \u2193<br \/>\n\u6d88\u606f\u79ef\u538b<\/p>\n<p>\u89e3\u51b3\u95ee\u9898&#xff1a;<\/p>\n<p>\u63d0\u9ad8\u6d88\u8d39\u901f\u5ea6<\/p>\n<p>\u4e3b\u8981\u6709\u4e09\u79cd\u65b9\u5f0f&#xff1a;<\/p>\n<p>\u2460 \u5355\u6761\u6d88\u606f\u5904\u7406\u66f4\u5feb<\/p>\n<p>\u2461 \u66f4\u591a Consumer \u5e76\u53d1<\/p>\n<p>\u2462 \u66f4\u591a\u5e94\u7528\u5b9e\u4f8b<\/p>\n<p>\u800c&#xff1a;<\/p>\n<p>Prefetch<\/p>\n<p>\u4e3b\u8981\u8d1f\u8d23&#xff1a;<\/p>\n<p>\u63a7\u5236\u6bcf\u4e2a Consumer \u624b\u91cc<br \/>\n\u6700\u591a\u6709\u591a\u5c11\u6761\u672a ACK \u6d88\u606f<\/p>\n<p>\u5b83\u53ef\u4ee5\u5f71\u54cd\u541e\u5410\u548c\u6d88\u606f\u5206\u914d&#xff0c;\u4f46&#xff1a;<\/p>\n<p>Prefetch \u672c\u8eab\u4e0d\u80fd\u628a\u4e00\u4e2a\u5f88\u6162\u7684\u4e1a\u52a1\u903b\u8f91\u7a81\u7136\u53d8\u5feb\u3002<\/p>\n<h2>\u603b\u7ed3<\/h2>\n<p>RabbitMQ \u6d88\u606f\u79ef\u538b\u7684\u6839\u672c\u539f\u56e0\u5c31\u662f&#xff1a;<\/p>\n<p>Producer<br \/>\n\u751f\u4ea7\u592a\u5feb<\/p>\n<p>     &gt;<\/p>\n<p>Consumer<br \/>\n\u6d88\u8d39\u592a\u6162<\/p>\n<p>\u77ed\u65f6\u95f4\u79ef\u538b&#xff1a;<\/p>\n<p>\u5c5e\u4e8e RabbitMQ \u524a\u5cf0\u7684\u6b63\u5e38\u73b0\u8c61<\/p>\n<p>\u4f46\u957f\u671f\u4e0d\u65ad\u589e\u957f&#xff1a;<\/p>\n<p>\u8bf4\u660e\u6d88\u8d39\u80fd\u529b\u4e0d\u8db3<\/p>\n<p>\u89e3\u51b3\u95ee\u9898\u65f6&#xff0c;\u53ef\u4ee5\u6309\u7167&#xff1a;<\/p>\n<p>\u4f18\u5316\u4e1a\u52a1\u4ee3\u7801<br \/>\n      \u2193<br \/>\n\u63d0\u9ad8 Consumer \u5e76\u53d1<br \/>\n      \u2193<br \/>\n\u5408\u7406\u8c03\u6574 Prefetch<br \/>\n      \u2193<br \/>\n\u589e\u52a0\u5e94\u7528\u5b9e\u4f8b<\/p>\n<p>\u9010\u6b65\u5904\u7406\u3002<\/p>\n<p>\u5176\u4e2d\u4e00\u5b9a\u8981\u533a\u5206&#xff1a;<\/p>\n<p>Concurrency<br \/>\n    \u2193<br \/>\n\u63a7\u5236\u6709\u591a\u5c11 Consumer \u540c\u65f6\u5de5\u4f5c<\/p>\n<p>\u548c&#xff1a;<\/p>\n<p>Prefetch<br \/>\n    \u2193<br \/>\n\u63a7\u5236\u6bcf\u4e2a Consumer<br \/>\n\u6700\u591a\u6301\u6709\u591a\u5c11\u6761\u672a ACK \u6d88\u606f<\/p>\n<p>\u53ef\u4ee5\u7528\u4e00\u53e5\u8bdd\u8bb0&#xff1a;<\/p>\n<p>Concurrency \u51b3\u5b9a\u6709\u591a\u5c11\u4eba\u5e72\u6d3b&#xff0c;Prefetch \u51b3\u5b9a\u6bcf\u4e2a\u4eba\u624b\u91cc\u6700\u591a\u62ff\u591a\u5c11\u4efb\u52a1\u3002<\/p>\n<p>\u800c\u6392\u67e5\u6d88\u606f\u79ef\u538b\u65f6&#xff0c;\u4e0d\u8981\u53ea\u770b&#xff1a;<\/p>\n<p>Queue Length<\/p>\n<p>\u8fd8\u5e94\u8be5\u5173\u6ce8&#xff1a;<\/p>\n<p>Ready<\/p>\n<p>Unacked<\/p>\n<p>Publish Rate<\/p>\n<p>Ack Rate<\/p>\n<p>Consumer Count<\/p>\n<p>Consumer Capacity<\/p>\n<p>\u6700\u540e\u9700\u8981\u8bb0\u4f4f&#xff1a;<\/p>\n<p>\u6d88\u606f\u79ef\u538b\u5f88\u591a\u65f6\u5019\u53ea\u662f\u8868\u8c61&#xff0c;\u771f\u6b63\u7684\u95ee\u9898\u5f80\u5f80\u662f\u6574\u6761\u6d88\u8d39\u94fe\u8def\u7684\u5904\u7406\u80fd\u529b\u8ddf\u4e0d\u4e0a\u751f\u4ea7\u901f\u5ea6\u3002<\/p>\n<p>\u6240\u4ee5 RabbitMQ \u6027\u80fd\u4f18\u5316\u5e76\u4e0d\u662f\u5355\u7eaf&#xff1a;<\/p>\n<p>\u628a\u67d0\u4e2a\u53c2\u6570\u8c03\u5927<\/p>\n<p>\u800c\u662f\u627e\u5230&#xff1a;<\/p>\n<p>\u771f\u6b63\u7684\u7cfb\u7edf\u74f6\u9888<\/p>\n<p>\u518d\u51b3\u5b9a\u5230\u5e95\u5e94\u8be5&#xff1a;<\/p>\n<p>\u4f18\u5316\u4ee3\u7801<\/p>\n<p>\u589e\u52a0\u6d88\u8d39\u8005<\/p>\n<p>\u8c03\u6574 Prefetch<\/p>\n<p>\u6269\u5bb9\u673a\u5668<\/p>\n<p>\u8fd8\u662f\u4f18\u5316\u6570\u636e\u5e93\u548c\u4e0b\u6e38\u670d\u52a1<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u9762\u6211\u4eec\u5df2\u7ecf\u628a RabbitMQ \u7684\u4e3b\u8981\u529f\u80fd\u57fa\u672c\u8bb2\u5b8c\u4e86&#xff1a;<br \/>\nProducer\u2193<br \/>\nExchange\u2193<br \/>\nQueue\u2193<br \/>\nConsumer\u4ee5\u53ca\u6d88\u606f\u53ef\u9760\u6027&#xff1a;<br \/>\nConfirm\u2193<br \/>\n\u6301\u4e45\u5316\u2193<br \/>\nACK\u2193<br \/>\nRetry\u2193<br \/>\nDLQ\u2193<br \/>\n\u5e42\u7b49\u4f46\u771f\u6b63\u628a RabbitMQ \u7528\u5230\u4e1a\u52a1\u4e2d\u4ee5\u540e&#xff0c;\u8fd8\u4f1a\u9047\u5230\u4e00\u4e2a\u975e\u5e38\u73b0\u5b9e\u7684\u95ee\u9898&#xff1a;\u751f\u4ea7\u8005\u53d1\u9001\u6d88\u606f\u592a\u5feb&#xff0c;\u6d88\u8d39\u8005\u5904\u7406\u4e0d\u8fc7\u6765\u600e\u4e48\u529e&#xff1f;\u6bd4\u5982&#xff1a;<br \/>\nProducer&#xff1a;\u6bcf\u79d2\u53d1\u9001 50<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[663,664,292],"topic":[],"class_list":["post-102013","post","type-post","status-publish","format-standard","hentry","category-server","tag-rabbitmq","tag-664","tag-292"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>RabbitMQ \u6d88\u606f\u79ef\u538b\u600e\u4e48\u529e\uff1fPrefetch\u3001\u6d88\u8d39\u8005\u5e76\u53d1\u4e0e\u6269\u5bb9 - \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\/102013.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"RabbitMQ \u6d88\u606f\u79ef\u538b\u600e\u4e48\u529e\uff1fPrefetch\u3001\u6d88\u8d39\u8005\u5e76\u53d1\u4e0e\u6269\u5bb9 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u524d\u9762\u6211\u4eec\u5df2\u7ecf\u628a RabbitMQ \u7684\u4e3b\u8981\u529f\u80fd\u57fa\u672c\u8bb2\u5b8c\u4e86&#xff1a; Producer\u2193 Exchange\u2193 Queue\u2193 Consumer\u4ee5\u53ca\u6d88\u606f\u53ef\u9760\u6027&#xff1a; Confirm\u2193 \u6301\u4e45\u5316\u2193 ACK\u2193 Retry\u2193 DLQ\u2193 \u5e42\u7b49\u4f46\u771f\u6b63\u628a RabbitMQ \u7528\u5230\u4e1a\u52a1\u4e2d\u4ee5\u540e&#xff0c;\u8fd8\u4f1a\u9047\u5230\u4e00\u4e2a\u975e\u5e38\u73b0\u5b9e\u7684\u95ee\u9898&#xff1a;\u751f\u4ea7\u8005\u53d1\u9001\u6d88\u606f\u592a\u5feb&#xff0c;\u6d88\u8d39\u8005\u5904\u7406\u4e0d\u8fc7\u6765\u600e\u4e48\u529e&#xff1f;\u6bd4\u5982&#xff1a; Producer&#xff1a;\u6bcf\u79d2\u53d1\u9001 50\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/102013.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-07T19:42:34+00:00\" \/>\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=\"6 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/102013.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/102013.html\",\"name\":\"RabbitMQ \u6d88\u606f\u79ef\u538b\u600e\u4e48\u529e\uff1fPrefetch\u3001\u6d88\u8d39\u8005\u5e76\u53d1\u4e0e\u6269\u5bb9 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-07T19:42:34+00:00\",\"dateModified\":\"2026-09-07T19:42:34+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/102013.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/102013.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/102013.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"RabbitMQ \u6d88\u606f\u79ef\u538b\u600e\u4e48\u529e\uff1fPrefetch\u3001\u6d88\u8d39\u8005\u5e76\u53d1\u4e0e\u6269\u5bb9\"}]},{\"@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":"RabbitMQ \u6d88\u606f\u79ef\u538b\u600e\u4e48\u529e\uff1fPrefetch\u3001\u6d88\u8d39\u8005\u5e76\u53d1\u4e0e\u6269\u5bb9 - \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\/102013.html","og_locale":"zh_CN","og_type":"article","og_title":"RabbitMQ \u6d88\u606f\u79ef\u538b\u600e\u4e48\u529e\uff1fPrefetch\u3001\u6d88\u8d39\u8005\u5e76\u53d1\u4e0e\u6269\u5bb9 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u524d\u9762\u6211\u4eec\u5df2\u7ecf\u628a RabbitMQ \u7684\u4e3b\u8981\u529f\u80fd\u57fa\u672c\u8bb2\u5b8c\u4e86&#xff1a; Producer\u2193 Exchange\u2193 Queue\u2193 Consumer\u4ee5\u53ca\u6d88\u606f\u53ef\u9760\u6027&#xff1a; Confirm\u2193 \u6301\u4e45\u5316\u2193 ACK\u2193 Retry\u2193 DLQ\u2193 \u5e42\u7b49\u4f46\u771f\u6b63\u628a RabbitMQ \u7528\u5230\u4e1a\u52a1\u4e2d\u4ee5\u540e&#xff0c;\u8fd8\u4f1a\u9047\u5230\u4e00\u4e2a\u975e\u5e38\u73b0\u5b9e\u7684\u95ee\u9898&#xff1a;\u751f\u4ea7\u8005\u53d1\u9001\u6d88\u606f\u592a\u5feb&#xff0c;\u6d88\u8d39\u8005\u5904\u7406\u4e0d\u8fc7\u6765\u600e\u4e48\u529e&#xff1f;\u6bd4\u5982&#xff1a; Producer&#xff1a;\u6bcf\u79d2\u53d1\u9001 50","og_url":"https:\/\/www.wsisp.com\/helps\/102013.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-07T19:42:34+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"6 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/102013.html","url":"https:\/\/www.wsisp.com\/helps\/102013.html","name":"RabbitMQ \u6d88\u606f\u79ef\u538b\u600e\u4e48\u529e\uff1fPrefetch\u3001\u6d88\u8d39\u8005\u5e76\u53d1\u4e0e\u6269\u5bb9 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-07T19:42:34+00:00","dateModified":"2026-09-07T19:42:34+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/102013.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/102013.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/102013.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"RabbitMQ \u6d88\u606f\u79ef\u538b\u600e\u4e48\u529e\uff1fPrefetch\u3001\u6d88\u8d39\u8005\u5e76\u53d1\u4e0e\u6269\u5bb9"}]},{"@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\/102013","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=102013"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/102013\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=102013"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=102013"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=102013"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=102013"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}