Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问代码最近有更新吗? #2

Open
airx opened this issue Dec 23, 2018 · 3 comments
Open

请问代码最近有更新吗? #2

airx opened this issue Dec 23, 2018 · 3 comments

Comments

@airx
Copy link

airx commented Dec 23, 2018

另外有没简单的文档说明呢

@airx
Copy link
Author

airx commented Dec 23, 2018

比如客户端来看:_sessionId,_groupId,_buildNum分别是是什么意思,有什么作用?

@shoutrain
Copy link
Owner

@airx 最近没有更新,抱歉回答晚了。
_seesionId是唯一标识一个连接会话的,一般通信服务都会用到
_groupId是通信组,就好像微信群这种概念,就是一个群的ID,不同业务应用不同考虑
_buildNum是build号,一般和version对应,比如我们的程序,version是1.0.0,build是20190308001之类的,方便和客户端比对,比如客户端有新旧版本,可能老的版本需要升级才能使用新的服务。

其特点如下:

  1. 一个线程控制一个组的连接,连接最大个数可以配置
  2. 一个进程可以设定有多少个组,可以配置
  3. 内存提前分配,通过配置决定大小,运行中很少有内存波动(运行中,可控代码部分没有new和delete)
    看连接的负载需要,长连接并发从几万~百万

@wjkhappy14
Copy link

100

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants