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

优化建议 #26

Open
liweiyuan opened this issue Oct 26, 2018 · 0 comments
Open

优化建议 #26

liweiyuan opened this issue Oct 26, 2018 · 0 comments

Comments

@liweiyuan
Copy link

image
这地方可以用生产者消费者模式,把取出的数据扔到一个队列中,无论时Console,okhttp,es从队列中去数据,避免图中轮询的线程死亡,我本地测试的时候发现,okhttp发送数据失败后,轮询queue的线程就死亡了,队列内数据会暴涨。

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

1 participant