sniperHW / chuck

high performance and easily use asynchronous network library for C/Lua
52 stars 32 forks source link

有增加对mysql支持的计划吗 #26

Open yfengworld opened 6 years ago

yfengworld commented 6 years ago

现实中mysql一般是数据库选型首选,看你的代码是单线程,加入mysql不是很好处理。你有支持的计划吗?或者提供下设计思路

sniperHW commented 6 years ago

暂时没有,我最近的项目都改用golang了。可以考虑代理服务。

sniperHW commented 6 years ago

https://github.com/openresty/lua-resty-mysql 用这个也行,chuck有基于coroutine的socket,替换里面的socket调用就行了

yfengworld commented 6 years ago

https://github.com/openresty/lua-resty-mysql性能这块能满足吗 ?用golang的话怎么处理热更的?

sniperHW commented 6 years ago

你要怎样的性能标准,用lua就不必太纠结单机性能了。 滚服,停止进程接受新的请求,现有请求执行完毕后重启。