mrwhyxxk opened a new issue, #2701:
URL: https://github.com/apache/brpc/issues/2701

   **Is your feature request related to a problem? (你需要的功能是否与某个问题有关?)**
   代码如下,业务需求是:rpc提前返回给上游,然后server读执行后续的耗时操作(落盘)。
   
![image](https://github.com/user-attachments/assets/9c3bd1eb-ddd5-48a4-8401-9b344b64e385)
   
   **Describe the solution you'd like (描述你期望的解决方法)**
   1、我能否将brpc的rq视作一个mpmc的队列,这样就不用在回调中入队,后台消费线程出队?
   2、如果可以,能否在done->Run()之后,“用户的耗时操作”之前,利用令牌桶进行控速
   
   **Describe alternatives you've considered (描述你想到的折衷方案)**
   
   
   **Additional context/screenshots (更多上下文/截图)**
   
   


-- 
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: dev-unsubscr...@brpc.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org

Reply via email to