yanglimingcn opened a new pull request, #2215:
URL: https://github.com/apache/brpc/pull/2215

   ### What problem does this PR solve?
   1、应用不同接口的处理逻辑不尽相同,qps和延迟也不尽相同,很多时候我们想为某些接口预留一定的能力,比如heartbeat接口或者其它控制层面的接口。
   
2、应用有些接口延迟比较高,如果这些接口的请求比较多(超过worker数量)会导致其它请求的延迟增加,对于延迟敏感接口产生影响。因此需要将这些延迟高的接口独立出来。
   
3、不同接口处理逻辑上的不同也需要独立线程池的划分,比如,io请求要提交到绑定了磁盘设备驱动的线程上,在这个特定的线程上磁盘设备驱动完成io的提交和收割工作。
   
4、一些阻塞worker线程的调用会让这些worker线程不可用,影响bthread的调度,比如worker1排队很多请求,前边一个请求要阻塞worker,虽然后续请求会被调度到其它worker,但是这个过程使任务在不同worker间调度,还是有很多消耗的。
   5、不同应用逻辑差异很大,很难在应用层根据服务或者方法将任务很细致的划分到不同线程池,代码实现复杂度很高,在框架层面实现能更加简单。
   Issue Number:
   
   Problem Summary:
   
   ### What is changed and the side effects?
   
   Changed:
   
   Side effects:
   - Performance effects(性能影响):
   
   - Breaking backward compatibility(向后兼容性): 
   
   ---
   ### Check List:
   - Please make sure your changes are compilable(请确保你的更改可以通过编译).
   - When providing us with a new feature, it is best to add related 
tests(如果你向我们增加一个新的功能, 请添加相关测试).
   - Please follow [Contributor Covenant Code of 
Conduct](../../master/CODE_OF_CONDUCT.md).(请遵循贡献者准则).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to