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

当协议越来越多时候如何分模块管理? #69

Open
teahouse opened this issue Aug 9, 2017 · 2 comments
Open

当协议越来越多时候如何分模块管理? #69

teahouse opened this issue Aug 9, 2017 · 2 comments

Comments

@teahouse
Copy link

teahouse commented Aug 9, 2017

1、.package的结构体是否固定需要?里面的type和session有何作用,是否可变?
2、如”get 1 {}",这里的1是否有上限?get命名标准是什么?
3、如“result 0 : *datastruct(id)",这里的key字段一定要是结构体datastruct里面的字段吗?
4、当协议越来越多,规模越来越大,如何分模块管理?有没有什么好的建议?
我以前没接触过protobuf这类型的协议,云大能给点小小建议吗?非常感谢!

@cloudwu
Copy link
Owner

cloudwu commented Aug 10, 2017

  1. 如果你不理解,就不需要,也不必使用。
  2. id 尽量连续,最大建议到 32K 。
  3. 是。
  4. 分写到不同的文件中,然后加载的时候把不同文件读入连接在一起。

@teahouse
Copy link
Author

嗯嗯, 了解了,非常感谢云大的建议!!!

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

2 participants