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

关于数据文件的管理 #8

Closed
ayamzh opened this issue Mar 2, 2022 · 1 comment
Closed

关于数据文件的管理 #8

ayamzh opened this issue Mar 2, 2022 · 1 comment

Comments

@ayamzh
Copy link

ayamzh commented Mar 2, 2022

生成的pb和相应语言代码是要自己在代码库里管理,程序里进行本地文件读取么?可否做成lubanserver 生成数据文件后,数据文件自动同步到etcd之类的配置中心,游戏server启动后自动在本地内存缓存所有配置数据并利用watch机制订阅etcd里得数据变化,实现数据热更。这种比较适合游戏服务端的使用场景。

@pirunxi
Copy link
Contributor

pirunxi commented Mar 2, 2022

加载配置时,你提供一个自定义Loader就行了,从哪儿加载都是可以的。 你加QQ群 692890842 ,在群里给你更多详细回答。

@pirunxi pirunxi closed this as completed Mar 2, 2022
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