callmedachang's Blog


  • 首页

  • 分类

  • 归档

  • 标签

Nsq-SourceCode-Guide-1-bootstrap-of-nsqd

发表于 2020-09-24

Nsq SourceCode Guide 1 - bootstrap of nsqd

我是一个gopher。

最近在研究NSQ的源码,具体源码阅读逻辑以及原理基本写在了注释上。

本篇先来看下NSQ是怎么启动的。

阅读全文 »

nsqd

发表于 2020-09-24

Think Abount 《A Million WebSockets and Go》

发表于 2020-09-20

Think Abount 《A Million WebSockets and Go》

背景

我之前写过一个长链服务,使用的是ws协议。单机的连接数(4c4g)大约在3.2W左右。然后当时看到了《A Million WebSockets and Go》 这边文字。文章作者单机建立了 300W的连接,我当时感到十分诧异,因为但从read、writer、writerChannel、readBuffer、writerBuffer等这些资源的创建就需要至少50-80G的内存。带着疑问我读完了作者的文章,所以我想分享一下。

阅读全文 »

http2flowControl

发表于 2020-07-26

HTTP2的流控制

协议中怎么说?

协议中对流量控制的目的和特点有清晰的描述

Flow control (Section 5.2)helps to ensure that only data that can be used by a receiver is transmitted.

流量控制有助于确保只传播接受者需要使用的数据数据。

阅读全文 »

golangGC

发表于 2020-07-26

有关golang垃圾回收一些自己的理解

看看官方是怎么解释的

阅读全文 »

counter

发表于 2020-07-26

计数抽象服务

点赞、关注、评论等社区服务的基础抽象服务

阅读全文 »

golangType

发表于 2020-07-25

深入理解golang类型系统

正文开始之前,想抛出一些小问题,读者可以看下,且带着小问题继续往下看

阅读全文 »

something_redis

发表于 2019-04-05

redis something…

Nginx's Smooth Weighted Round-Robin Balanceing

发表于 2019-02-11 | 分类于 arithmetic

Nginx’s Smooth Weighted Round-Robin Balanceing

golang实现的nginx的加权轮训算法

阅读全文 »

String Matching Arithmetic-KMP

发表于 2019-01-09 | 分类于 arithmetic

String Matching Arithmetic-KMP

golang 实现KMP算法

阅读全文 »
12…4
callmedachang

callmedachang

nothing but not null

31 日志
13 分类
25 标签
© 2020 callmedachang
由 Hexo 强力驱动
主题 - NexT.Muse