forked from beastmouth/beastmouth.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
643 lines (388 loc) · 19.3 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="keywords" content="Hexo Theme Keep">
<meta name="description" content="Hexo Theme Keep">
<meta name="author" content="大黄">
<title>
DH大黄
</title>
<link rel="stylesheet" href="/css/style.css">
<link rel="shortcut icon" href="/images/logo.svg">
<link rel="stylesheet" href="/css/font-awesome.min.css">
<script id="hexo-configurations">
let KEEP = window.KEEP || {};
KEEP.hexo_config = {"hostname":"blog.huangbangjing.cn","root":"/","language":"en","path":"search.xml"};
KEEP.theme_config = {"toc":{"enable":true,"number":false,"expand_all":true,"init_open":true},"style":{"primary_color":"#0066CC","avatar":"/images/avatar.svg","favicon":"/images/logo.svg","article_img_align":"center","left_side_width":"260px","content_max_width":"920px","hover":{"shadow":true,"scale":true},"first_screen":{"enable":true,"background_img":"/images/bg.svg","description":"stay gold","backgound_img":"/images/bg.svg"},"scroll":{"progress_bar":{"enable":true},"percent":{"enable":true}}},"local_search":{"enable":true,"preload":true},"code_copy":{"enable":true,"style":"default"},"pjax":{"enable":false},"lazyload":{"enable":true},"version":"3.4.5"};
KEEP.language_ago = {"second":"%s seconds ago","minute":"%s minutes ago","hour":"%s hours ago","day":"%s days ago","week":"%s weeks ago","month":"%s months ago","year":"%s years ago"};
</script>
<meta name="generator" content="Hexo 5.4.0"></head>
<body>
<div class="progress-bar-container">
<span class="scroll-progress-bar"></span>
</div>
<main class="page-container">
<div class="first-screen-container flex-center fade-in-down-animation">
<div class="content flex-center">
<div class="description">
stay gold
</div>
<div class="s-icon-list">
<span class="s-icon-item github">
<a target="_blank" href="https://github.com/beastmouth">
<i class="fab fa-github"></i>
</a>
</span>
<span class="s-icon-item weixin">
<a target="_blank" href="/images/wechat.jpeg">
<i class="fab fa-weixin"></i>
</a>
</span>
<span class="s-icon-item email">
<a href="mailto:[email protected]">
<i class="fas fa-envelope"></i>
</a>
</span>
</div>
</div>
</div>
<div class="page-main-content">
<div class="page-main-content-top">
<header class="header-wrapper">
<div class="header-content has-first-screen">
<div class="left">
<a class="logo-title" href="/">
DH大黄
</a>
</div>
<div class="right">
<div class="pc">
<ul class="menu-list">
<li class="menu-item">
<a class="active"
href="/"
>
HOME
</a>
</li>
<li class="menu-item">
<a class=""
href="/archives"
>
ARCHIVES
</a>
</li>
<li class="menu-item">
<a class=""
href="/categories"
>
CATEGORIES
</a>
</li>
<li class="menu-item">
<a class=""
href="/about"
>
ABOUT
</a>
</li>
<li class="menu-item search search-popup-trigger">
<i class="fas fa-search"></i>
</li>
</ul>
</div>
<div class="mobile">
<div class="icon-item search search-popup-trigger"><i class="fas fa-search"></i></div>
<div class="icon-item menu-bar">
<div class="menu-bar-middle"></div>
</div>
</div>
</div>
</div>
<div class="header-drawer">
<ul class="drawer-menu-list">
<li class="drawer-menu-item flex-center">
<a class="active"
href="/">HOME</a>
</li>
<li class="drawer-menu-item flex-center">
<a class=""
href="/archives">ARCHIVES</a>
</li>
<li class="drawer-menu-item flex-center">
<a class=""
href="/categories">CATEGORIES</a>
</li>
<li class="drawer-menu-item flex-center">
<a class=""
href="/about">ABOUT</a>
</li>
</ul>
</div>
<div class="window-mask"></div>
</header>
</div>
<div class="page-main-content-middle">
<div class="main-content">
<div class="home-content-container fade-in-down-animation">
<ul class="home-article-list">
<li class="home-article-item">
<h3 class="home-article-title">
<a href="/2021/12/23/%E8%BF%9C%E7%A8%8B%E8%B0%83%E7%94%A8/">
远程调用
</a>
</h3>
<div class="home-article-content markdown-body">
远程调用服务消费者Consumer远程调用流程主要可以用一下的这张流程图表示
流程图
主要流程主要为以下的几个步骤
调用对应的代理类
被InvokerInvacationHandler拦截
ClusterInvoker经过路由过滤,负载均衡,选择其...
</div>
<div class="home-article-meta-info-container">
<div class="home-article-meta-info">
<span><i class="fas fa-history"></i> <span class="home-article-date" data-date="Thu Dec 23 2021 17:05:17 GMT+0000">2021-12-23</span></span>
<span class="home-article-category"><i class="fas fa-folder"></i>
<ul>
<li>
<a href="/categories/Dubbo/">Dubbo</a>
</li>
</ul>
</span>
</div>
<a href="/2021/12/23/%E8%BF%9C%E7%A8%8B%E8%B0%83%E7%94%A8/">Read more <i class="fas fa-angle-right"></i></a>
</div>
</li>
<li class="home-article-item">
<h3 class="home-article-title">
<a href="/2021/12/23/%E6%9C%8D%E5%8A%A1%E5%BC%95%E7%94%A8/">
服务引用
</a>
</h3>
<div class="home-article-content markdown-body">
服务引用服务引用的流程可以概括为以下五点
两种模式(饿汉式/懒汉式)
组装URL并向注册中心注册
获取服务提供者信息并根据协议(默认Dubbo协议)开始Invoker的创建流程
通过Cluster包装Invoker(默认FailoverCluste...
</div>
<div class="home-article-meta-info-container">
<div class="home-article-meta-info">
<span><i class="fas fa-history"></i> <span class="home-article-date" data-date="Thu Dec 23 2021 17:05:07 GMT+0000">2021-12-23</span></span>
<span class="home-article-category"><i class="fas fa-folder"></i>
<ul>
<li>
<a href="/categories/Dubbo/">Dubbo</a>
</li>
</ul>
</span>
</div>
<a href="/2021/12/23/%E6%9C%8D%E5%8A%A1%E5%BC%95%E7%94%A8/">Read more <i class="fas fa-angle-right"></i></a>
</div>
</li>
<li class="home-article-item">
<h3 class="home-article-title">
<a href="/2021/12/23/%E6%9C%8D%E5%8A%A1%E6%9A%B4%E9%9C%B2/">
服务暴露
</a>
</h3>
<div class="home-article-content markdown-body">
服务暴露服务暴露的流程可以概括为以下四点
组装URL
创建Invoker代理类,封装真正的实现类
通过URL选择对应的协议暴露(产生Exporter对象)
向注册中心注册提供者信息
概括成一句话就是:
在SpringIOC容器刷新完毕后 (exp...
</div>
<div class="home-article-meta-info-container">
<div class="home-article-meta-info">
<span><i class="fas fa-history"></i> <span class="home-article-date" data-date="Thu Dec 23 2021 17:04:56 GMT+0000">2021-12-23</span></span>
<span class="home-article-category"><i class="fas fa-folder"></i>
<ul>
<li>
<a href="/categories/Dubbo/">Dubbo</a>
</li>
</ul>
</span>
</div>
<a href="/2021/12/23/%E6%9C%8D%E5%8A%A1%E6%9A%B4%E9%9C%B2/">Read more <i class="fas fa-angle-right"></i></a>
</div>
</li>
<li class="home-article-item">
<h3 class="home-article-title">
<a href="/2021/12/19/Broker%E6%B6%88%E6%81%AF%E5%AD%98%E5%82%A8%E7%AF%87/">
Broker消息存储篇
</a>
</h3>
<div class="home-article-content markdown-body">
Broker是如何存储消息的流程图RocketMQ存储消息的主要流程图如下
然后我们从上往下细说下里面的流程
写入CommitLog1234567891011121314151617181920212223242526272829303132333...
</div>
<div class="home-article-meta-info-container">
<div class="home-article-meta-info">
<span><i class="fas fa-history"></i> <span class="home-article-date" data-date="Sun Dec 19 2021 19:13:31 GMT+0000">2021-12-19</span></span>
<span class="home-article-category"><i class="fas fa-folder"></i>
<ul>
<li>
<a href="/categories/RocketMQ/">RocketMQ</a>
</li>
</ul>
</span>
</div>
<a href="/2021/12/19/Broker%E6%B6%88%E6%81%AF%E5%AD%98%E5%82%A8%E7%AF%87/">Read more <i class="fas fa-angle-right"></i></a>
</div>
</li>
<li class="home-article-item">
<h3 class="home-article-title">
<a href="/2021/12/09/RocketMQ%E7%94%9F%E4%BA%A7%E8%80%85/">
RocketMQ生产者
</a>
</h3>
<div class="home-article-content markdown-body">
书接上文,今天我们来说说RocketMQ生产者发送消息
生产者发送消息
生产者发送消息的主要流程图如上图所示。具体的代码由于比较多,我就不在这边贴出来的。
主要讲一下我认为比较重要的点
消息队列负载均衡Producer会每隔30s从Namesrv获...
</div>
<div class="home-article-meta-info-container">
<div class="home-article-meta-info">
<span><i class="fas fa-history"></i> <span class="home-article-date" data-date="Thu Dec 09 2021 20:53:00 GMT+0000">2021-12-09</span></span>
<span class="home-article-category"><i class="fas fa-folder"></i>
<ul>
<li>
<a href="/categories/RocketMQ/">RocketMQ</a>
</li>
</ul>
</span>
</div>
<a href="/2021/12/09/RocketMQ%E7%94%9F%E4%BA%A7%E8%80%85/">Read more <i class="fas fa-angle-right"></i></a>
</div>
</li>
<li class="home-article-item">
<h3 class="home-article-title">
<a href="/2021/12/08/%E5%86%99%E4%B8%80%E7%AF%87RocketMQ%E5%8D%B7%E6%96%87%E8%AE%A9%E8%87%AA%E5%B7%B1%E5%86%B7%E9%9D%99%E4%B8%80%E4%B8%8B/">
写一篇RocketMQ卷文让自己冷静一下
</a>
</h3>
<div class="home-article-content markdown-body">
不吃(烧烤)不喝(奶茶可乐)看了好久才概括出这么一点点东西,希望大佬们能够有耐心看一看,遇到说的不对的地方,也欢迎在评论区或者私信与我交流
另外完整版的代码注释,我在我的github上也添加了,感兴趣的小伙伴也可以点击这个链接去看一波 githu...
</div>
<div class="home-article-meta-info-container">
<div class="home-article-meta-info">
<span><i class="fas fa-history"></i> <span class="home-article-date" data-date="Wed Dec 08 2021 14:56:51 GMT+0000">2021-12-08</span></span>
<span class="home-article-category"><i class="fas fa-folder"></i>
<ul>
<li>
<a href="/categories/RocketMQ/">RocketMQ</a>
</li>
</ul>
</span>
</div>
<a href="/2021/12/08/%E5%86%99%E4%B8%80%E7%AF%87RocketMQ%E5%8D%B7%E6%96%87%E8%AE%A9%E8%87%AA%E5%B7%B1%E5%86%B7%E9%9D%99%E4%B8%80%E4%B8%8B/">Read more <i class="fas fa-angle-right"></i></a>
</div>
</li>
</ul>
<div class="home-paginator">
<div class="paginator">
</div>
</div>
</div>
</div>
</div>
<div class="page-main-content-bottom">
<footer class="footer">
<div class="info-container">
<div class="copyright-info info-item">
©
<span>2021</span>
-
2021 <i class="fas fa-heart icon-animate"></i> <a href="/">大黄</a>
</div>
<div class="theme-info info-item">
Powered by <a target="_blank" href="https://hexo.io">Hexo</a> | Theme <a class="theme-version" target="_blank" href="https://github.com/XPoet/hexo-theme-keep">Keep v3.4.5</a>
</div>
</div>
</footer>
</div>
</div>
<div class="right-bottom-side-tools">
<div class="side-tools-container">
<ul class="side-tools-list">
<li class="tools-item tool-font-adjust-plus flex-center">
<i class="fas fa-search-plus"></i>
</li>
<li class="tools-item tool-font-adjust-minus flex-center">
<i class="fas fa-search-minus"></i>
</li>
<li class="tools-item tool-expand-width flex-center">
<i class="fas fa-arrows-alt-h"></i>
</li>
<li class="tools-item tool-dark-light-toggle flex-center">
<i class="fas fa-moon"></i>
</li>
<!-- rss -->
<li class="tools-item tool-scroll-to-bottom flex-center">
<i class="fas fa-arrow-down"></i>
</li>
</ul>
<ul class="exposed-tools-list">
<li class="tools-item tool-toggle-show flex-center">
<i class="fas fa-cog fa-spin"></i>
</li>
<li class="tools-item tool-scroll-to-top flex-center">
<i class="arrow-up fas fa-arrow-up"></i>
<span class="percent"></span>
</li>
</ul>
</div>
</div>
<div class="image-viewer-container">
<img src="">
</div>
<div class="search-pop-overlay">
<div class="popup search-popup">
<div class="search-header">
<span class="search-input-field-pre">
<i class="fas fa-keyboard"></i>
</span>
<div class="search-input-container">
<input autocomplete="off"
autocorrect="off"
autocapitalize="off"
placeholder="Search..."
spellcheck="false"
type="search"
class="search-input"
>
</div>
<span class="popup-btn-close">
<i class="fas fa-times"></i>
</span>
</div>
<div id="search-result">
<div id="no-result">
<i class="fas fa-spinner fa-pulse fa-5x fa-fw"></i>
</div>
</div>
</div>
</div>
</main>
<script src="/js/utils.js"></script>
<script src="/js/main.js"></script>
<script src="/js/header-shrink.js"></script>
<script src="/js/back2top.js"></script>
<script src="/js/dark-light-toggle.js"></script>
<script src="/js/local-search.js"></script>
<script src="/js/code-copy.js"></script>
<script src="/js/lazyload.js"></script>
<div class="post-scripts">
</div>
</body>
</html>