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

code-push-server 是否能够解决高并发 #18

Closed
xiongcaichang opened this issue Nov 11, 2016 · 4 comments
Closed

code-push-server 是否能够解决高并发 #18

xiongcaichang opened this issue Nov 11, 2016 · 4 comments

Comments

@xiongcaichang
Copy link

如果我们的app需求:同时数十万的客户端在哪请求更新,请问code-push-server 的数据库机制能够解决吗?谢啦

@lisong
Copy link
Owner

lisong commented Nov 11, 2016

没有做过压力测试,用nginx做负载均衡,支持水平扩展,瓶颈确实在数据库端。如果配上数据库5.7并发10万应该没有问题。只有updateCheck需要为此做下优化,加缓存。考虑到只有打开app的时候才请求更新,所以就没有做此优化

@lisong
Copy link
Owner

lisong commented Nov 11, 2016

也可以考虑在前面加varnish缓存可能效果会更好。

@lisong
Copy link
Owner

lisong commented Nov 11, 2016

http://itbilu.com/nodejs/npm/VydcPndib.html
现在可以通过配置读写分离解决并发问题。多加slave机器

@lisong
Copy link
Owner

lisong commented Nov 14, 2016

v2.0.10 中 updateCheck Api 添加了redis cache。这样高并发不成问题了

@lisong lisong closed this as completed Nov 14, 2016
ludufre pushed a commit to ludufre/code-push-server that referenced this issue Nov 1, 2021
fix(deps): update dependency fs-extra to v7.0.1
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