zhoumo02 commented on issue #2344:
URL: https://github.com/apache/brpc/issues/2344#issuecomment-1706491366

   你好!
   
   改成全异步的是一个方案;如果不想改成全异步的,可以考虑发送rpc的线程在polling 
线程的外部,发送rpc的线程是单独的,发送rpc的时候,brpc内部可以考虑将rpc的发送过程封装成一个任务注入到polling 
线程中去执行,这样发送rpc的线程因为在外部,所以不会阻塞polling线程,这个方案是我们内部一些业务采纳的方案,效果也是不错的;或者就是用bthread,在polling线程中增加同步的支持,这个我们内部正在设计研发


-- 
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