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

sofa server是否支持异步处理请求 #173

Closed
fengyindiehun opened this issue Dec 27, 2016 · 3 comments
Closed

sofa server是否支持异步处理请求 #173

fengyindiehun opened this issue Dec 27, 2016 · 3 comments

Comments

@fengyindiehun
Copy link

业务场景如下:server端对每个请求都需要通过http调用第三方服务,平均响应时间为50ms
如果server端线程数设置为1的话是否qps极限约为20,server端线程数设置为32的话,qps极限约为32 * 20?
sofa是否有某种机制对每个请求进行异步处理,不阻塞当前工作线程的执行?

@qinzuoyan
Copy link
Collaborator

qinzuoyan commented Dec 27, 2016 via email

@fengyindiehun
Copy link
Author

@qinzuoyan
由于业务场景的特殊性,对每个 http 请求 server 端都需要对请求第三方的结果进行汇总并分析,并将分析结果返回给 client,所以即使采用异步 http 库,sofa server 也必须 hold 住当前请求。不知道我的理解有没有误

@cyshi
Copy link
Collaborator

cyshi commented Dec 28, 2016

听你的描述 觉得和sofa server已经没有关系了 系统吞吐取决于第三方的http服务

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

3 participants