Skip to content

Commit 4875b97

Browse files
rename
1 parent 853b3e0 commit 4875b97

20 files changed

+136
-37
lines changed

404.html

+11
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,17 @@ <h1 class="error-emoji"></h1>
316316
<div class="icon-links">
317317

318318

319+
<a href="[email protected]" rel="me noopener" class="iconfont"
320+
title="email" target="_blank"
321+
>
322+
<svg class="icon" viewBox="0 0 1451 1024" version="1.1"
323+
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
324+
width="36" height="36">
325+
<path d="M664.781909 681.472759 0 97.881301C0 3.997201 71.046997 0 71.046997 0L474.477909 0 961.649408 0 1361.641813 0C1361.641813 0 1432.688811 3.997201 1432.688811 97.881301L771.345323 681.472759C771.345323 681.472759 764.482731 685.154773 753.594283 688.65053L753.594283 688.664858C741.602731 693.493018 729.424896 695.068979 718.077952 694.839748 706.731093 695.068979 694.553173 693.493018 682.561621 688.664858L682.561621 688.65053C671.644501 685.140446 664.781909 681.472759 664.781909 681.472759L664.781909 681.472759ZM718.063616 811.603883C693.779541 811.016482 658.879232 802.205449 619.10784 767.734955 542.989056 701.759633 0 212.052267 0 212.052267L0 942.809523C0 942.809523 0 1024 83.726336 1024L682.532949 1024 753.579947 1024 1348.948139 1024C1432.688811 1024 1432.688811 942.809523 1432.688811 942.809523L1432.688811 212.052267C1432.688811 212.052267 893.138176 701.759633 817.019477 767.734955 777.248 802.205449 742.347691 811.03081 718.063616 811.603883L718.063616 811.603883Z"></path>
326+
</svg>
327+
328+
</a>
329+
319330
<a href="https://github.com/testerxiaodong" rel="me noopener" class="iconfont"
320331
title="github" target="_blank"
321332
>

about/index.html

+11
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,17 @@ <h3 id="关于我">关于我</h3>
452452
<div class="icon-links">
453453

454454

455+
<a href="[email protected]" rel="me noopener" class="iconfont"
456+
title="email" target="_blank"
457+
>
458+
<svg class="icon" viewBox="0 0 1451 1024" version="1.1"
459+
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
460+
width="36" height="36">
461+
<path d="M664.781909 681.472759 0 97.881301C0 3.997201 71.046997 0 71.046997 0L474.477909 0 961.649408 0 1361.641813 0C1361.641813 0 1432.688811 3.997201 1432.688811 97.881301L771.345323 681.472759C771.345323 681.472759 764.482731 685.154773 753.594283 688.65053L753.594283 688.664858C741.602731 693.493018 729.424896 695.068979 718.077952 694.839748 706.731093 695.068979 694.553173 693.493018 682.561621 688.664858L682.561621 688.65053C671.644501 685.140446 664.781909 681.472759 664.781909 681.472759L664.781909 681.472759ZM718.063616 811.603883C693.779541 811.016482 658.879232 802.205449 619.10784 767.734955 542.989056 701.759633 0 212.052267 0 212.052267L0 942.809523C0 942.809523 0 1024 83.726336 1024L682.532949 1024 753.579947 1024 1348.948139 1024C1432.688811 1024 1432.688811 942.809523 1432.688811 942.809523L1432.688811 212.052267C1432.688811 212.052267 893.138176 701.759633 817.019477 767.734955 777.248 802.205449 742.347691 811.03081 718.063616 811.603883L718.063616 811.603883Z"></path>
462+
</svg>
463+
464+
</a>
465+
455466
<a href="https://github.com/testerxiaodong" rel="me noopener" class="iconfont"
456467
title="github" target="_blank"
457468
>

categories/index.html

+12-1
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ <h2 class="archive-year">
323323
</time>
324324
<span class="archive-post-title">
325325
<a href="/post/gorabbitmq%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/" class="archive-post-link">
326-
RabbitMQ学习笔记
326+
【Go】RabbitMQ学习笔记
327327
</a>
328328
</span>
329329
</div>
@@ -344,6 +344,17 @@ <h2 class="archive-year">
344344
<div class="icon-links">
345345

346346

347+
<a href="[email protected]" rel="me noopener" class="iconfont"
348+
title="email" target="_blank"
349+
>
350+
<svg class="icon" viewBox="0 0 1451 1024" version="1.1"
351+
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
352+
width="36" height="36">
353+
<path d="M664.781909 681.472759 0 97.881301C0 3.997201 71.046997 0 71.046997 0L474.477909 0 961.649408 0 1361.641813 0C1361.641813 0 1432.688811 3.997201 1432.688811 97.881301L771.345323 681.472759C771.345323 681.472759 764.482731 685.154773 753.594283 688.65053L753.594283 688.664858C741.602731 693.493018 729.424896 695.068979 718.077952 694.839748 706.731093 695.068979 694.553173 693.493018 682.561621 688.664858L682.561621 688.65053C671.644501 685.140446 664.781909 681.472759 664.781909 681.472759L664.781909 681.472759ZM718.063616 811.603883C693.779541 811.016482 658.879232 802.205449 619.10784 767.734955 542.989056 701.759633 0 212.052267 0 212.052267L0 942.809523C0 942.809523 0 1024 83.726336 1024L682.532949 1024 753.579947 1024 1348.948139 1024C1432.688811 1024 1432.688811 942.809523 1432.688811 942.809523L1432.688811 212.052267C1432.688811 212.052267 893.138176 701.759633 817.019477 767.734955 777.248 802.205449 742.347691 811.03081 718.063616 811.603883L718.063616 811.603883Z"></path>
354+
</svg>
355+
356+
</a>
357+
347358
<a href="https://github.com/testerxiaodong" rel="me noopener" class="iconfont"
348359
title="github" target="_blank"
349360
>

categories/rabbitmq/index.html

+12-1
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ <h2 class="archive-name">分类: RabbitMQ</h2>
311311
</time>
312312
<span class="archive-post-title">
313313
<a href="/post/gorabbitmq%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/" class="archive-post-link">
314-
RabbitMQ学习笔记
314+
【Go】RabbitMQ学习笔记
315315
</a>
316316
</span>
317317
</div>
@@ -350,6 +350,17 @@ <h2 class="archive-name">分类: RabbitMQ</h2>
350350
<div class="icon-links">
351351

352352

353+
<a href="[email protected]" rel="me noopener" class="iconfont"
354+
title="email" target="_blank"
355+
>
356+
<svg class="icon" viewBox="0 0 1451 1024" version="1.1"
357+
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
358+
width="36" height="36">
359+
<path d="M664.781909 681.472759 0 97.881301C0 3.997201 71.046997 0 71.046997 0L474.477909 0 961.649408 0 1361.641813 0C1361.641813 0 1432.688811 3.997201 1432.688811 97.881301L771.345323 681.472759C771.345323 681.472759 764.482731 685.154773 753.594283 688.65053L753.594283 688.664858C741.602731 693.493018 729.424896 695.068979 718.077952 694.839748 706.731093 695.068979 694.553173 693.493018 682.561621 688.664858L682.561621 688.65053C671.644501 685.140446 664.781909 681.472759 664.781909 681.472759L664.781909 681.472759ZM718.063616 811.603883C693.779541 811.016482 658.879232 802.205449 619.10784 767.734955 542.989056 701.759633 0 212.052267 0 212.052267L0 942.809523C0 942.809523 0 1024 83.726336 1024L682.532949 1024 753.579947 1024 1348.948139 1024C1432.688811 1024 1432.688811 942.809523 1432.688811 942.809523L1432.688811 212.052267C1432.688811 212.052267 893.138176 701.759633 817.019477 767.734955 777.248 802.205449 742.347691 811.03081 718.063616 811.603883L718.063616 811.603883Z"></path>
360+
</svg>
361+
362+
</a>
363+
353364
<a href="https://github.com/testerxiaodong" rel="me noopener" class="iconfont"
354365
title="github" target="_blank"
355366
>

categories/rabbitmq/index.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
<language>zh-cn</language>
99
<lastBuildDate>Mon, 31 Jul 2023 00:02:07 +0800</lastBuildDate><atom:link href="https://www.cengdong.top/categories/rabbitmq/index.xml" rel="self" type="application/rss+xml" />
1010
<item>
11-
<title>RabbitMQ学习笔记</title>
11+
<title>【Go】RabbitMQ学习笔记</title>
1212
<link>https://www.cengdong.top/post/gorabbitmq%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/</link>
1313
<pubDate>Mon, 31 Jul 2023 00:02:07 +0800</pubDate>
1414

1515
<guid>https://www.cengdong.top/post/gorabbitmq%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/</guid>
16-
<description></description>
16+
<description>1. 介绍 RabbitMQ is the most widely deployed open source message broker. 直接把RabbitMQ官网的介绍抄过来:它是部署最广泛的消息代理 2. 作用 消息代理中间件的作用: 削峰:大量请求写入消息</description>
1717
</item>
1818

1919
</channel>

images/WechatIMG75.jpg

82.8 KB
Loading

images/WechatIMG76.jpg

253 KB
Loading

images/rabbitmq-hello-world.png

4.17 KB
Loading

images/消费者1.png

47 KB
Loading

images/消费者2.png

43 KB
Loading

images/生产者.png

68 KB
Loading

index.html

+13-2
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@
307307
<header class="post-header">
308308
<h1 class="post-title">
309309

310-
<a class="post-link" href="/post/gorabbitmq%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/">RabbitMQ学习笔记</a>
310+
<a class="post-link" href="/post/gorabbitmq%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/">【Go】RabbitMQ学习笔记</a>
311311
</h1>
312312

313313

@@ -354,7 +354,7 @@ <h1 class="post-title">
354354
<div class="post-content">
355355

356356
<div class="post-summary">
357-
357+
1. 介绍 RabbitMQ is the most widely deployed open source message broker. 直接把RabbitMQ官网的介绍抄过来:它是部署最广泛的消息代理 2. 作用 消息代理中间件的作用: 削峰:大量请求写入消息
358358
</div>
359359
<div class="read-more">
360360
<a href="/post/gorabbitmq%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/" class="read-more-link"
@@ -400,6 +400,17 @@ <h1 class="post-title">
400400
<div class="icon-links">
401401

402402

403+
<a href="[email protected]" rel="me noopener" class="iconfont"
404+
title="email" target="_blank"
405+
>
406+
<svg class="icon" viewBox="0 0 1451 1024" version="1.1"
407+
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
408+
width="36" height="36">
409+
<path d="M664.781909 681.472759 0 97.881301C0 3.997201 71.046997 0 71.046997 0L474.477909 0 961.649408 0 1361.641813 0C1361.641813 0 1432.688811 3.997201 1432.688811 97.881301L771.345323 681.472759C771.345323 681.472759 764.482731 685.154773 753.594283 688.65053L753.594283 688.664858C741.602731 693.493018 729.424896 695.068979 718.077952 694.839748 706.731093 695.068979 694.553173 693.493018 682.561621 688.664858L682.561621 688.65053C671.644501 685.140446 664.781909 681.472759 664.781909 681.472759L664.781909 681.472759ZM718.063616 811.603883C693.779541 811.016482 658.879232 802.205449 619.10784 767.734955 542.989056 701.759633 0 212.052267 0 212.052267L0 942.809523C0 942.809523 0 1024 83.726336 1024L682.532949 1024 753.579947 1024 1348.948139 1024C1432.688811 1024 1432.688811 942.809523 1432.688811 942.809523L1432.688811 212.052267C1432.688811 212.052267 893.138176 701.759633 817.019477 767.734955 777.248 802.205449 742.347691 811.03081 718.063616 811.603883L718.063616 811.603883Z"></path>
410+
</svg>
411+
412+
</a>
413+
403414
<a href="https://github.com/testerxiaodong" rel="me noopener" class="iconfont"
404415
title="github" target="_blank"
405416
>

index.xml

+6-6
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
</item>
3333

3434
<item>
35-
<title>RabbitMQ学习笔记</title>
35+
<title>【Go】RabbitMQ学习笔记</title>
3636
<link>https://www.cengdong.top/post/gorabbitmq%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/</link>
3737
<pubDate>Mon, 31 Jul 2023 00:02:07 +0800</pubDate>
3838

@@ -79,9 +79,9 @@
7979
&lt;h2 id=&#34;6-安装rabbitmq&#34;&gt;6. 安装RabbitMQ&lt;/h2&gt;
8080
&lt;p&gt;我的虚拟机已经安装好&lt;code&gt;Docker&lt;/code&gt;,通过Docker安装带web可视化插件的&lt;code&gt;RabbitMQ&lt;/code&gt;,其中5672是服务端的端口,15672是web可视化的端口&lt;/p&gt;
8181
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-shell&#34; data-lang=&#34;shell&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;docker run --name rabbit --restart&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;always -p 15672:15672 -p 5672:5672 -d rabbitmq:management
82-
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;img src=&#34;https://www.cengdong.top/images/hugo/WechatIMG75.jpg&#34; alt=&#34;WechatIMG75.jpeg&#34;&gt;
82+
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;img src=&#34;https://www.cengdong.top/images/WechatIMG75.jpg&#34; alt=&#34;WechatIMG75.jpeg&#34;&gt;
8383
访问web管理界面,用户名密码都是&lt;code&gt;guest&lt;/code&gt;&lt;/p&gt;
84-
&lt;p&gt;&lt;img src=&#34;https://www.cengdong.top/images/hugo/WechatIMG76.jpg&#34; alt=&#34;WechatIMG76.jpeg&#34;&gt;&lt;/p&gt;
84+
&lt;p&gt;&lt;img src=&#34;https://www.cengdong.top/images/WechatIMG76.jpg&#34; alt=&#34;WechatIMG76.jpeg&#34;&gt;&lt;/p&gt;
8585
&lt;h2 id=&#34;7-创建项目&#34;&gt;7. 创建项目&lt;/h2&gt;
8686
&lt;ul&gt;
8787
&lt;li&gt;创建目录:&lt;code&gt;mkdir rabbitmq-demo&lt;/code&gt;&lt;/li&gt;
@@ -379,11 +379,11 @@
379379
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;go run send.go Fourth message....
380380
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;go run send.go Fifth message.....
381381
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;生产者
382-
&lt;img src=&#34;https://www.cengdong.top/images/hugo/%E7%94%9F%E4%BA%A7%E8%80%85.png&#34; alt=&#34;生产者.png&#34;&gt;&lt;/p&gt;
382+
&lt;img src=&#34;https://www.cengdong.top/images/%E7%94%9F%E4%BA%A7%E8%80%85.png&#34; alt=&#34;生产者.png&#34;&gt;&lt;/p&gt;
383383
&lt;p&gt;消费者1
384-
&lt;img src=&#34;https://www.cengdong.top/images/hugo/%E6%B6%88%E8%B4%B9%E8%80%851.png&#34; alt=&#34;消费者1.png&#34;&gt;&lt;/p&gt;
384+
&lt;img src=&#34;https://www.cengdong.top/images/%E6%B6%88%E8%B4%B9%E8%80%851.png&#34; alt=&#34;消费者1.png&#34;&gt;&lt;/p&gt;
385385
&lt;p&gt;消费者2
386-
&lt;img src=&#34;https://www.cengdong.top/images/hugo/%E6%B6%88%E8%B4%B9%E8%80%852.png&#34; alt=&#34;消费者2.png&#34;&gt;&lt;/p&gt;
386+
&lt;img src=&#34;https://www.cengdong.top/images/%E6%B6%88%E8%B4%B9%E8%80%852.png&#34; alt=&#34;消费者2.png&#34;&gt;&lt;/p&gt;
387387
&lt;p&gt;消费者1消费了消息135,消费者2消费了消息24,这样提高了消费者消费的能力,并且由于工作队列模式默认的消息分发机制是轮询,官网称之为&lt;code&gt;Fair dispatch&lt;/code&gt;(公平调度)&lt;/p&gt;
388388
&lt;p&gt;当有多个消费者时,每个消费者的消费能力不一样,轮询的方式会有问题。&lt;/p&gt;
389389
&lt;h3 id=&#34;112-设置预取值的工作队列方式&#34;&gt;11.2 设置预取值的工作队列方式&lt;/h3&gt;

0 commit comments

Comments
 (0)