-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
962 lines (567 loc) · 33.7 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
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="generator" content="Hugo 0.55.0-DEV with theme Tranquilpeak 0.4.3-SNAPSHOT">
<meta name="author" content="苏连云">
<meta name="keywords" content="">
<meta name="description" content="">
<meta property="og:description" content="">
<meta property="og:type" content="website">
<meta property="og:title" content="苏连云的博客">
<meta name="twitter:title" content="苏连云的博客">
<meta property="og:url" content="https://tangxusc.github.io/">
<meta property="twitter:url" content="https://tangxusc.github.io/">
<meta property="og:site_name" content="苏连云的博客">
<meta property="og:description" content="">
<meta name="twitter:description" content="">
<meta property="og:locale" content="en-us">
<meta name="twitter:card" content="summary">
<meta property="og:image" content="https://tangxusc.github.io/photo.png">
<meta property="twitter:image" content="https://tangxusc.github.io/photo.png">
<title>苏连云的博客</title>
<link rel="icon" href="https://tangxusc.github.io/favicon.png">
<link rel="alternate" type="application/rss+xml" title="RSS" href="https://tangxusc.github.io/index.xml">
<link rel="canonical" href="https://tangxusc.github.io/">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" integrity="sha256-eZrrJcwDc/3uDhsdt61sL2oOBY362qM3lon1gyExkL0=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.4/jquery.fancybox.min.css" integrity="sha256-vuXZ9LGmmwtjqFX1F+EKin1ThZMub58gKULUyf0qECk=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.4/helpers/jquery.fancybox-thumbs.min.css" integrity="sha256-SEa4XYAHihTcEP1f5gARTB2K26Uk8PsndQYHQC1f4jU=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://tangxusc.github.io/css/style-nnm2spxvve8onlujjlegkkytaehyadd4ksxc1hyzzq9a2wvtrgbljqyulomn.min.css" />
</head>
<body>
<div id="blog">
<header id="header" data-behavior="1">
<i id="btn-open-sidebar" class="fa fa-lg fa-bars"></i>
<div class="header-title">
<a class="header-title-link" href="https://tangxusc.github.io/">苏连云的博客</a>
</div>
<a class="header-right-picture "
href="https://tangxusc.github.io/#about">
<img class="header-picture" src="https://tangxusc.github.io/photo.png" alt="Author's picture" />
</a>
</header>
<nav id="sidebar" data-behavior="1">
<div class="sidebar-container">
<div class="sidebar-profile">
<a href="https://tangxusc.github.io/#about">
<img class="sidebar-profile-picture" src="https://tangxusc.github.io/photo.png" alt="Author's picture" />
</a>
<h4 class="sidebar-profile-name">苏连云</h4>
<h5 class="sidebar-profile-bio">酒剑仙,醉仙酒</h5>
</div>
<ul class="sidebar-buttons">
<li class="sidebar-button">
<a class="sidebar-button-link " href="https://tangxusc.github.io/">
<i class="sidebar-button-icon fa fa-lg fa-home"></i>
<span class="sidebar-button-desc">Home</span>
</a>
</li>
<li class="sidebar-button">
<a class="sidebar-button-link " href="https://tangxusc.github.io/categories">
<i class="sidebar-button-icon fa fa-lg fa-bookmark"></i>
<span class="sidebar-button-desc">Categories</span>
</a>
</li>
<li class="sidebar-button">
<a class="sidebar-button-link " href="https://tangxusc.github.io/tags">
<i class="sidebar-button-icon fa fa-lg fa-tags"></i>
<span class="sidebar-button-desc">Tags</span>
</a>
</li>
<li class="sidebar-button">
<a class="sidebar-button-link " href="https://tangxusc.github.io/archives">
<i class="sidebar-button-icon fa fa-lg fa-archive"></i>
<span class="sidebar-button-desc">Archives</span>
</a>
</li>
<li class="sidebar-button">
<a class="sidebar-button-link " href="https://tangxusc.github.io/#about">
<i class="sidebar-button-icon fa fa-lg fa-question"></i>
<span class="sidebar-button-desc">About</span>
</a>
</li>
</ul>
<ul class="sidebar-buttons">
<li class="sidebar-button">
<a class="sidebar-button-link " href="https://github.com/tangxusc" target="_blank" rel="noopener">
<i class="sidebar-button-icon fa fa-lg fa-github"></i>
<span class="sidebar-button-desc">GitHub</span>
</a>
</li>
<li class="sidebar-button">
<a class="sidebar-button-link " href="https://shang.qq.com/wpa/qunwpa?idkey=927a7bf9677916a933d37dd47c45793d995d9af556579ca633ce0a7af2084d41" target="_blank" rel="noopener">
<i class="sidebar-button-icon fa fa-lg fa-qq"></i>
<span class="sidebar-button-desc">QQG:59593364</span>
</a>
</li>
</ul>
<ul class="sidebar-buttons">
</ul>
</div>
</nav>
<div id="main" data-behavior="1"
class="
hasCoverMetaIn
">
<section class="postShorten-group main-content-wrap">
<article class="postShorten postShorten--thumbnailimg-bottom" itemscope itemType="http://schema.org/BlogPosting">
<div class="postShorten-wrap">
<div class="postShorten-header">
<h1 class="postShorten-title" itemprop="headline">
<a class="link-unstyled" href="https://tangxusc.github.io/2019/12/%E4%BD%BF%E7%94%A8docker%E6%90%AD%E5%BB%BAelasticsearch%E9%9B%86%E7%BE%A4/">
使用docker搭建Elasticsearch集群
</a>
</h1>
<div class="postShorten-meta post-meta">
<time itemprop="datePublished" datetime="2019-12-04T14:15:59+08:00">
December 4, 2019
</time>
<span>in</span>
<a class="category-link" href="https://tangxusc.github.io/categories/es">es</a>
</div>
</div>
<div class="postShorten-excerpt" itemprop="articleBody">
<p>本文将使用docker搭建两个节点的Elasticsearch集群,并使用kibana做数据展示.</p>
<p>
<a href="https://tangxusc.github.io/2019/12/%E4%BD%BF%E7%94%A8docker%E6%90%AD%E5%BB%BAelasticsearch%E9%9B%86%E7%BE%A4/" class="postShorten-excerpt_link link">Continue reading</a>
</p>
</div>
</div>
</article>
<article class="postShorten postShorten--thumbnailimg-bottom" itemscope itemType="http://schema.org/BlogPosting">
<div class="postShorten-wrap">
<div class="postShorten-header">
<h1 class="postShorten-title" itemprop="headline">
<a class="link-unstyled" href="https://tangxusc.github.io/2019/11/go-module%E5%A6%82%E4%BD%95%E5%8F%91%E5%B8%83v2%E5%8F%8A%E4%BB%A5%E4%B8%8A%E7%89%88%E6%9C%AC/">
Go Module如何发布v2及以上版本
</a>
</h1>
<div class="postShorten-meta post-meta">
<time itemprop="datePublished" datetime="2019-11-15T09:15:59+08:00">
November 15, 2019
</time>
<span>in</span>
<a class="category-link" href="https://tangxusc.github.io/categories/golang">golang</a>
</div>
</div>
<div class="postShorten-excerpt" itemprop="articleBody">
<blockquote>
<p>本文由 <a href="http://ksria.com/simpread/">简悦 SimpRead</a> 转码, 原文地址 <a href="https://blog.cyeam.com/go/2019/03/12/go-version">https://blog.cyeam.com/go/2019/03/12/go-version</a></p>
</blockquote>
<p>用上 go mod 之后,依赖包都是通过版本打 tag 的形式确定版本号。比如 <code>github.com/mnhkahn/gogogo v1.0.9</code>。每次都改动都是在累加低位的版本号,一直这么用也挺安逸的。突然有一天,我的一个底层包需要大改,导致和之前的版本彻底不兼容,这种情况下如何设置版本号,如何能让调用方成功接入?</p>
<p>
<a href="https://tangxusc.github.io/2019/11/go-module%E5%A6%82%E4%BD%95%E5%8F%91%E5%B8%83v2%E5%8F%8A%E4%BB%A5%E4%B8%8A%E7%89%88%E6%9C%AC/" class="postShorten-excerpt_link link">Continue reading</a>
</p>
</div>
</div>
</article>
<article class="postShorten postShorten--thumbnailimg-bottom" itemscope itemType="http://schema.org/BlogPosting">
<div class="postShorten-wrap">
<div class="postShorten-header">
<h1 class="postShorten-title" itemprop="headline">
<a class="link-unstyled" href="https://tangxusc.github.io/2019/11/protobuf3%E8%AF%AD%E8%A8%80%E6%8C%87%E5%8D%97/">
Protobuf3语言指南
</a>
</h1>
<div class="postShorten-meta post-meta">
<time itemprop="datePublished" datetime="2019-11-15T09:15:59+08:00">
November 15, 2019
</time>
<span>in</span>
<a class="category-link" href="https://tangxusc.github.io/categories/proto">proto</a>
</div>
</div>
<div class="postShorten-excerpt" itemprop="articleBody">
<blockquote>
<p>本文由 <a href="http://ksria.com/simpread/">简悦 SimpRead</a> 转码,原文地址 <a href="https://blog.csdn.net/u011518120/article/details/54604615">https://blog.csdn.net/u011518120/article/details/54604615</a>
英文原文:[Language Guide (proto3)](<a href="https://developers.google.com/protocol-buffers/docs/proto3?hl=zh-cn#gen">https://developers.google.com/protocol-buffers/docs/proto3?hl=zh-cn#gen</a></p>
</blockquote>
<p>这个指南描述了如何使用 Protocol buffer 语言去描述你的 protocol buffer 数据, 包括 .proto 文件符号和如何从. proto 文件生成类。</p>
<p>
<a href="https://tangxusc.github.io/2019/11/protobuf3%E8%AF%AD%E8%A8%80%E6%8C%87%E5%8D%97/" class="postShorten-excerpt_link link">Continue reading</a>
</p>
</div>
</div>
</article>
<article class="postShorten postShorten--thumbnailimg-bottom" itemscope itemType="http://schema.org/BlogPosting">
<div class="postShorten-wrap">
<div class="postShorten-header">
<h1 class="postShorten-title" itemprop="headline">
<a class="link-unstyled" href="https://tangxusc.github.io/2019/11/golang-select-case%E5%AE%9E%E7%8E%B0%E6%9C%BA%E5%88%B6/">
golang select-case实现机制
</a>
</h1>
<div class="postShorten-meta post-meta">
<time itemprop="datePublished" datetime="2019-11-15T09:15:59+08:00">
November 15, 2019
</time>
<span>in</span>
<a class="category-link" href="https://tangxusc.github.io/categories/golang">golang</a>
</div>
</div>
<div class="postShorten-excerpt" itemprop="articleBody">
<blockquote>
<p>本文由 <a href="http://ksria.com/simpread/">简悦 SimpRead</a> 转码, 原文地址 <a href="https://hitzhangjie.github.io/jekyll/update/2018/05/19/golang-select-case%E5%AE%9E%E7%8E%B0%E6%9C%BA%E5%88%B6.html">https://hitzhangjie.github.io/jekyll/update/2018/05/19/golang-select-case%E5%AE%9E%E7%8E%B0%E6%9C%BA%E5%88%B6.html</a></p>
</blockquote>
<p>在介绍 select-case 实现机制之前,最好先了解下 chan 操作规则,明白 goroutine 何时阻塞,又在什么时机被唤醒,这对后续理解 select-case 实现有帮助。所以接下来先介绍 chan 操作规则,然后再介绍 select-case 的实现。</p>
<p>
<a href="https://tangxusc.github.io/2019/11/golang-select-case%E5%AE%9E%E7%8E%B0%E6%9C%BA%E5%88%B6/" class="postShorten-excerpt_link link">Continue reading</a>
</p>
</div>
</div>
</article>
<article class="postShorten postShorten--thumbnailimg-bottom" itemscope itemType="http://schema.org/BlogPosting">
<div class="postShorten-wrap">
<div class="postShorten-header">
<h1 class="postShorten-title" itemprop="headline">
<a class="link-unstyled" href="https://tangxusc.github.io/2019/11/%E4%BA%86%E8%A7%A3raft%E5%85%B1%E8%AF%86%E7%AE%97%E6%B3%95/">
了解Raft共识算法
</a>
</h1>
<div class="postShorten-meta post-meta">
<time itemprop="datePublished" datetime="2019-11-15T09:15:59+08:00">
November 15, 2019
</time>
<span>in</span>
<a class="category-link" href="https://tangxusc.github.io/categories/raft">Raft</a>
</div>
</div>
<div class="postShorten-excerpt" itemprop="articleBody">
<blockquote>
<p>这篇文章总结了迭戈·奥加罗(Diego Ongaro)和约翰·奥斯特豪特(John Ousterhout)在论文<a href="https://www.usenix.org/system/files/conference/atc14/atc14-paper-ongaro.pdf">《寻找</a>可理解的共识算法》中提出的Raft共识算法。所有拉引语均来自该论文。</p>
<p>在正常操作中,只有一个领导者,其他所有服务器都是跟随者。</p>
<p>追随者是被动的:他们自己不发出请求,而只是响应领导者和候选人的请求。</p>
<p>领导者处理所有客户请求(如果客户联系关注者,则关注者将其重定向到领导者)。</p>
<p>第三种状态,候选人,用于选举新领导人。</p>
</blockquote>
<p>
<a href="https://tangxusc.github.io/2019/11/%E4%BA%86%E8%A7%A3raft%E5%85%B1%E8%AF%86%E7%AE%97%E6%B3%95/" class="postShorten-excerpt_link link">Continue reading</a>
</p>
</div>
</div>
</article>
<article class="postShorten postShorten--thumbnailimg-bottom" itemscope itemType="http://schema.org/BlogPosting">
<div class="postShorten-wrap">
<div class="postShorten-header">
<h1 class="postShorten-title" itemprop="headline">
<a class="link-unstyled" href="https://tangxusc.github.io/2019/11/%E4%BD%BF%E7%94%A8go%E5%A4%84%E7%90%86%E6%AF%8F%E5%88%86%E9%92%9F%E7%99%BE%E4%B8%87%E8%AF%B7%E6%B1%82/">
使用Go处理每分钟百万请求
</a>
</h1>
<div class="postShorten-meta post-meta">
<time itemprop="datePublished" datetime="2019-11-15T09:15:59+08:00">
November 15, 2019
</time>
<span>in</span>
<a class="category-link" href="https://tangxusc.github.io/categories/golang">golang</a>
</div>
</div>
<div class="postShorten-excerpt" itemprop="articleBody">
<p>这篇文章在medium上很火,作者以实际案例来分析,讲得很好。</p>
<p>我们经常听说使用Go的goroutine和channel很容易实现高并发,那是不是全部代码都放在goroutine中运行就可以实现高并发程序了呢?很显然并不是。</p>
<p>这篇文章将教大家如何一步一步写出一个简单的, 高并发的Go程序。</p>
<p>
<a href="https://tangxusc.github.io/2019/11/%E4%BD%BF%E7%94%A8go%E5%A4%84%E7%90%86%E6%AF%8F%E5%88%86%E9%92%9F%E7%99%BE%E4%B8%87%E8%AF%B7%E6%B1%82/" class="postShorten-excerpt_link link">Continue reading</a>
</p>
</div>
</div>
</article>
<article class="postShorten postShorten--thumbnailimg-bottom" itemscope itemType="http://schema.org/BlogPosting">
<div class="postShorten-wrap">
<div class="postShorten-header">
<h1 class="postShorten-title" itemprop="headline">
<a class="link-unstyled" href="https://tangxusc.github.io/2019/08/%E6%B5%85%E8%B0%88%E8%AE%A4%E8%AF%81%E7%9A%84%E5%8F%91%E5%B1%95%E5%8E%86%E5%8F%B2%E5%8F%8A%E6%96%B9%E5%90%91/">
浅谈认证的发展历史及方向
</a>
</h1>
<div class="postShorten-meta post-meta">
<time itemprop="datePublished" datetime="2019-08-21T14:15:59+08:00">
August 21, 2019
</time>
<span>in</span>
<a class="category-link" href="https://tangxusc.github.io/categories/auth">auth</a>
</div>
</div>
<div class="postShorten-excerpt" itemprop="articleBody">
<p>在企业信息系统的建设过程中,认证是我们必须面临的问题,从用户的登录,PC端,移动端,智能设备的访问,到关键业务的强身份认证,多因子确认,从实现业务操作安全,到实现转账,系统间的通信,与外部系统的集成等等都少不聊认证的参与,而当今云计算容器化的崛起,认证方式也从最初的cookie,session等手段发展到了现在的多端登录,多因子强认证,多端扫码,api令牌,用户目录等多种方式,并且针对用户的认证方式和手段的创新从未停止过,也会一直不断发展.</p>
<p>本文将与大家一起从认证的角度看看系统建设中的那些事.</p>
<p>
<a href="https://tangxusc.github.io/2019/08/%E6%B5%85%E8%B0%88%E8%AE%A4%E8%AF%81%E7%9A%84%E5%8F%91%E5%B1%95%E5%8E%86%E5%8F%B2%E5%8F%8A%E6%96%B9%E5%90%91/" class="postShorten-excerpt_link link">Continue reading</a>
</p>
</div>
</div>
</article>
<div class="pagination-bar">
<ul class="pagination">
<li class="pagination-next">
<a class="btn btn--default btn--small" href="https://tangxusc.github.io/page/2/">
<span>OLDER POSTS</span>
<i class="fa fa-angle-right text-base icon-ml"></i>
</a>
</li>
<li class="pagination-number">page 1 of 15</li>
</ul>
</div>
</section>
<footer id="footer" class="main-content-wrap">
<span class="copyrights">
© 2019 苏连云. All Rights Reserved
</span>
</footer>
</div>
</div>
<div id="about">
<div id="about-card">
<div id="about-btn-close">
<i class="fa fa-remove"></i>
</div>
<img id="about-card-picture" src="https://tangxusc.github.io/photo.png" alt="Author's picture" />
<h4 id="about-card-name">苏连云</h4>
<div id="about-card-bio">酒剑仙,醉仙酒</div>
<div id="about-card-job">
<i class="fa fa-briefcase"></i>
<br/>
小农民
</div>
<div id="about-card-location">
<i class="fa fa-map-marker"></i>
<br/>
chengdu
</div>
</div>
</div>
<div id="algolia-search-modal" class="modal-container">
<div class="modal">
<div class="modal-header">
<span class="close-button"><i class="fa fa-close"></i></span>
<a href="https://algolia.com" target="_blank" rel="noopener" class="searchby-algolia text-color-light link-unstyled">
<span class="searchby-algolia-text text-color-light text-small">by</span>
<img class="searchby-algolia-logo" src="https://www.algolia.com/static_assets/images/press/downloads/algolia-light.svg">
</a>
<i class="search-icon fa fa-search"></i>
<form id="algolia-search-form">
<input type="text" id="algolia-search-input" name="search"
class="form-control input--large search-input" placeholder="Search" />
</form>
</div>
<div class="modal-body">
<div class="no-result text-color-light text-center">no post found</div>
<div class="results">
<div class="media">
<div class="media-body">
<a class="link-unstyled" href="https://tangxusc.github.io/2019/12/%E4%BD%BF%E7%94%A8docker%E6%90%AD%E5%BB%BAelasticsearch%E9%9B%86%E7%BE%A4/">
<h3 class="media-heading">使用docker搭建Elasticsearch集群</h3>
</a>
<span class="media-meta">
<span class="media-date text-small">
Dec 12, 2019
</span>
</span>
<div class="media-content hide-xs font-merryweather"><p>本文将使用docker搭建两个节点的Elasticsearch集群,并使用kibana做数据展示.</p></div>
</div>
<div style="clear:both;"></div>
<hr>
</div>
<div class="media">
<div class="media-body">
<a class="link-unstyled" href="https://tangxusc.github.io/2019/11/go-module%E5%A6%82%E4%BD%95%E5%8F%91%E5%B8%83v2%E5%8F%8A%E4%BB%A5%E4%B8%8A%E7%89%88%E6%9C%AC/">
<h3 class="media-heading">Go Module如何发布v2及以上版本</h3>
</a>
<span class="media-meta">
<span class="media-date text-small">
Nov 11, 2019
</span>
</span>
<div class="media-content hide-xs font-merryweather"><blockquote>
<p>本文由 <a href="http://ksria.com/simpread/">简悦 SimpRead</a> 转码, 原文地址 <a href="https://blog.cyeam.com/go/2019/03/12/go-version">https://blog.cyeam.com/go/2019/03/12/go-version</a></p>
</blockquote>
<p>用上 go mod 之后,依赖包都是通过版本打 tag 的形式确定版本号。比如 <code>github.com/mnhkahn/gogogo v1.0.9</code>。每次都改动都是在累加低位的版本号,一直这么用也挺安逸的。突然有一天,我的一个底层包需要大改,导致和之前的版本彻底不兼容,这种情况下如何设置版本号,如何能让调用方成功接入?</p></div>
</div>
<div style="clear:both;"></div>
<hr>
</div>
<div class="media">
<div class="media-body">
<a class="link-unstyled" href="https://tangxusc.github.io/2019/11/protobuf3%E8%AF%AD%E8%A8%80%E6%8C%87%E5%8D%97/">
<h3 class="media-heading">Protobuf3语言指南</h3>
</a>
<span class="media-meta">
<span class="media-date text-small">
Nov 11, 2019
</span>
</span>
<div class="media-content hide-xs font-merryweather"><blockquote>
<p>本文由 <a href="http://ksria.com/simpread/">简悦 SimpRead</a> 转码,原文地址 <a href="https://blog.csdn.net/u011518120/article/details/54604615">https://blog.csdn.net/u011518120/article/details/54604615</a>
英文原文:[Language Guide (proto3)](<a href="https://developers.google.com/protocol-buffers/docs/proto3?hl=zh-cn#gen">https://developers.google.com/protocol-buffers/docs/proto3?hl=zh-cn#gen</a></p>
</blockquote>
<p>这个指南描述了如何使用 Protocol buffer 语言去描述你的 protocol buffer 数据, 包括 .proto 文件符号和如何从. proto 文件生成类。</p></div>
</div>
<div style="clear:both;"></div>
<hr>
</div>
<div class="media">
<div class="media-body">
<a class="link-unstyled" href="https://tangxusc.github.io/2019/11/golang-select-case%E5%AE%9E%E7%8E%B0%E6%9C%BA%E5%88%B6/">
<h3 class="media-heading">golang select-case实现机制</h3>
</a>
<span class="media-meta">
<span class="media-date text-small">
Nov 11, 2019
</span>
</span>
<div class="media-content hide-xs font-merryweather"><blockquote>
<p>本文由 <a href="http://ksria.com/simpread/">简悦 SimpRead</a> 转码, 原文地址 <a href="https://hitzhangjie.github.io/jekyll/update/2018/05/19/golang-select-case%E5%AE%9E%E7%8E%B0%E6%9C%BA%E5%88%B6.html">https://hitzhangjie.github.io/jekyll/update/2018/05/19/golang-select-case%E5%AE%9E%E7%8E%B0%E6%9C%BA%E5%88%B6.html</a></p>
</blockquote>
<p>在介绍 select-case 实现机制之前,最好先了解下 chan 操作规则,明白 goroutine 何时阻塞,又在什么时机被唤醒,这对后续理解 select-case 实现有帮助。所以接下来先介绍 chan 操作规则,然后再介绍 select-case 的实现。</p></div>
</div>
<div style="clear:both;"></div>
<hr>
</div>
<div class="media">
<div class="media-body">
<a class="link-unstyled" href="https://tangxusc.github.io/2019/11/%E4%BA%86%E8%A7%A3raft%E5%85%B1%E8%AF%86%E7%AE%97%E6%B3%95/">
<h3 class="media-heading">了解Raft共识算法</h3>
</a>
<span class="media-meta">
<span class="media-date text-small">
Nov 11, 2019
</span>
</span>
<div class="media-content hide-xs font-merryweather"><blockquote>
<p>这篇文章总结了迭戈·奥加罗(Diego Ongaro)和约翰·奥斯特豪特(John Ousterhout)在论文<a href="https://www.usenix.org/system/files/conference/atc14/atc14-paper-ongaro.pdf">《寻找</a>可理解的共识算法》中提出的Raft共识算法。所有拉引语均来自该论文。</p>
<p>在正常操作中,只有一个领导者,其他所有服务器都是跟随者。</p>
<p>追随者是被动的:他们自己不发出请求,而只是响应领导者和候选人的请求。</p>
<p>领导者处理所有客户请求(如果客户联系关注者,则关注者将其重定向到领导者)。</p>
<p>第三种状态,候选人,用于选举新领导人。</p>
</blockquote></div>
</div>
<div style="clear:both;"></div>
<hr>
</div>
<div class="media">
<div class="media-body">
<a class="link-unstyled" href="https://tangxusc.github.io/2019/11/%E4%BD%BF%E7%94%A8go%E5%A4%84%E7%90%86%E6%AF%8F%E5%88%86%E9%92%9F%E7%99%BE%E4%B8%87%E8%AF%B7%E6%B1%82/">
<h3 class="media-heading">使用Go处理每分钟百万请求</h3>
</a>
<span class="media-meta">
<span class="media-date text-small">
Nov 11, 2019
</span>
</span>
<div class="media-content hide-xs font-merryweather"><p>这篇文章在medium上很火,作者以实际案例来分析,讲得很好。</p>
<p>我们经常听说使用Go的goroutine和channel很容易实现高并发,那是不是全部代码都放在goroutine中运行就可以实现高并发程序了呢?很显然并不是。</p>
<p>这篇文章将教大家如何一步一步写出一个简单的, 高并发的Go程序。</p></div>
</div>
<div style="clear:both;"></div>
<hr>
</div>
<div class="media">
<div class="media-body">
<a class="link-unstyled" href="https://tangxusc.github.io/2019/08/%E6%B5%85%E8%B0%88%E8%AE%A4%E8%AF%81%E7%9A%84%E5%8F%91%E5%B1%95%E5%8E%86%E5%8F%B2%E5%8F%8A%E6%96%B9%E5%90%91/">
<h3 class="media-heading">浅谈认证的发展历史及方向</h3>
</a>
<span class="media-meta">
<span class="media-date text-small">
Aug 8, 2019
</span>
</span>
<div class="media-content hide-xs font-merryweather"><p>在企业信息系统的建设过程中,认证是我们必须面临的问题,从用户的登录,PC端,移动端,智能设备的访问,到关键业务的强身份认证,多因子确认,从实现业务操作安全,到实现转账,系统间的通信,与外部系统的集成等等都少不聊认证的参与,而当今云计算容器化的崛起,认证方式也从最初的cookie,session等手段发展到了现在的多端登录,多因子强认证,多端扫码,api令牌,用户目录等多种方式,并且针对用户的认证方式和手段的创新从未停止过,也会一直不断发展.</p>
<p>本文将与大家一起从认证的角度看看系统建设中的那些事.</p></div>
</div>
<div style="clear:both;"></div>
<hr>
</div>
<div class="media">
<div class="media-body">
<a class="link-unstyled" href="https://tangxusc.github.io/2019/07/%E6%8A%80%E6%9C%AF%E7%BB%8F%E7%90%86%E6%B1%82%E6%B1%82%E4%BD%A0%E5%88%AB%E5%86%8D%E4%B9%B1%E6%94%B9%E6%95%B0%E6%8D%AE%E5%BA%93%E8%BF%9E%E6%8E%A5%E6%B1%A0%E7%9A%84%E5%A4%A7%E5%B0%8F%E4%BA%86/">
<h3 class="media-heading">技术经理:求求你,别再乱改数据库连接池的大小了!</h3>
</a>
<span class="media-meta">
<span class="media-date text-small">
Jul 7, 2019
</span>
</span>
<div class="media-content hide-xs font-merryweather"><p>基本上来说,大部分项目都需要跟数据库做交互,那么,数据库连接池的大小设置成多大合适呢?
一些开发老鸟可能还会告诉你:<strong>没关系,尽量设置的大些,比如设置成 200,这样数据库性能会高些,吞吐量也会大些!</strong>
你也许会点头称是,真的是这样吗?看完这篇文章,也许会颠覆你的认知哦!</p></div>
</div>
<div style="clear:both;"></div>
<hr>
</div>
<div class="media">
<div class="media-body">
<a class="link-unstyled" href="https://tangxusc.github.io/2019/07/%E4%BD%BF%E7%94%A8spring-5%E5%AE%9E%E7%8E%B0%E5%93%8D%E5%BA%94%E5%BC%8F%E5%BE%AE%E6%9C%8D%E5%8A%A1%E6%9E%B6%E6%9E%84-%E7%AE%80%E6%B4%81%E7%89%88/">
<h3 class="media-heading">使用Spring 5实现响应式微服务架构-简洁版</h3>
</a>
<span class="media-meta">
<span class="media-date text-small">
Jul 7, 2019
</span>
</span>
<div class="media-content hide-xs font-merryweather"><p>随着以 Dubbo、Spring Cloud 等框架为代表的分布式服务调用和治理工具的大行其道,以及以 Docker、Kubernetes 等容器技术的日渐成熟,微服务架构(Microservices Architecture)毫无疑问是近年来最热门的一种服务化架构模式。所谓微服务,就是一些具有足够小的粒度、能够相互协作且自治的服务体系。正因为每个微服务都比较简单,仅关注于完成一个业务功能,所以具备技术、业务和组织上的优势 <sup>[1]</sup>。</p></div>
</div>
<div style="clear:both;"></div>
<hr>
</div>
<div class="media">
<div class="media-body">
<a class="link-unstyled" href="https://tangxusc.github.io/2019/05/%E8%BF%88%E5%90%91istio-13-%E8%87%AA%E5%AE%9A%E4%B9%89adapter%E4%BF%AE%E6%94%B9%E8%AF%B7%E6%B1%82%E5%A4%B4/">
<h3 class="media-heading">迈向istio-13 自定义adapter(修改请求头)</h3>
</a>
<span class="media-meta">
<span class="media-date text-small">
May 5, 2019
</span>
</span>
<div class="media-content hide-xs font-merryweather"><p>在istio中mixer组件负责策略控制和遥测收集数据,是高度模块化和可扩展的组件.</p>
<p>mixer处理不同基础设施后端的灵活性是通过适配器模型插件来实现的,每个插件都被成为<code>Adapter</code>,用户通过配置使用Adapter向mixer注册自身,并设置适配规则,绑定模板,mixer通过和每个插件进行grpc连接,对策略和遥测进行操作</p></div>
</div>
<div style="clear:both;"></div>
<hr>
</div>
</div>
</div>
<div class="modal-footer">
<p class="results-count text-medium"
data-message-zero="no post found"
data-message-one="1 post found"
data-message-other="{n} posts found">
103 posts found
</p>
</div>
</div>
</div>
<div id="cover" style="background-image:url('https://tangxusc.github.io/images/cover.jpg');"></div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js" integrity="sha256-/BfiIkHlHoVihZdc6TFuj7MmJ0TWcWsMXkeDFwhi0zw=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.7/js/jquery.fancybox.min.js" integrity="sha256-GEAnjcTqVP+vBp3SSc8bEDQqvWAZMiHyUSIorrWwH50=" crossorigin="anonymous"></script>
<script src="https://tangxusc.github.io/js/script-qi9wbxp2ya2j6p7wx1i6tgavftewndznf4v0hy2gvivk1rxgc3lm7njqb6bz.min.js"></script>
<script lang="javascript">
window.onload = updateMinWidth;
window.onresize = updateMinWidth;
document.getElementById("sidebar").addEventListener("transitionend", updateMinWidth);
function updateMinWidth() {
var sidebar = document.getElementById("sidebar");
var main = document.getElementById("main");
main.style.minWidth = "";
var w1 = getComputedStyle(main).getPropertyValue("min-width");
var w2 = getComputedStyle(sidebar).getPropertyValue("width");
var w3 = getComputedStyle(sidebar).getPropertyValue("left");
main.style.minWidth = `calc(${w1} - ${w2} - ${w3})`;
}
</script>
<script>
$(document).ready(function() {
hljs.configure({ classPrefix: '', useBR: false });
$('pre.code-highlight > code, pre > code').each(function(i, block) {
if (!$(this).hasClass('codeblock')) {
$(this).addClass('codeblock');
}
hljs.highlightBlock(block);
});
});
</script>
</body>
</html>