Re: [I] brpc异步server使用方式 (brpc)

2024-06-14 Thread via GitHub
zhangyachen closed issue #2657: brpc异步server使用方式 URL: https://github.com/apache/brpc/issues/2657 -- 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-uns

Re: [I] brpc异步server使用方式 (brpc)

2024-06-03 Thread via GitHub
wwbmmm commented on issue #2657: URL: https://github.com/apache/brpc/issues/2657#issuecomment-2145298662 > 好的,我想再确认一下您的建议: > > 1. SayHello中**直接调用** process_thread函数。 > 2. process_thread中也没有必要进行promise和future的操作。 > 3. TRITONSERVER_InferenceRequestSetResponseCallback中**捕获done,**,c

Re: [I] brpc异步server使用方式 (brpc)

2024-06-03 Thread via GitHub
zhangyachen commented on issue #2657: URL: https://github.com/apache/brpc/issues/2657#issuecomment-2144667481 好的,我想再确认一下您的建议: 1. SayHello中**直接调用** process_thread函数。 2. process_thread中也没有必要进行promise和future的操作。 3. TRITONSERVER_InferenceRequestSetResponseCallback中**捕获done,**,callback收到

Re: [I] brpc异步server使用方式 (brpc)

2024-06-03 Thread via GitHub
wwbmmm commented on issue #2657: URL: https://github.com/apache/brpc/issues/2657#issuecomment-2144632657 你通过future.get()的方式本质上还是阻塞当前线程来等待结果,那么使用异步接口就意义不大了。你可以不使用future.get(),而是在TRITONSERVER_InferenceRequestSetResponseCallback 设置的callback函数中调用done->Run()来发送回复。 这样的话,使用bthread_start_backgr

[I] brpc异步server使用方式 (brpc)

2024-06-02 Thread via GitHub
zhangyachen opened a new issue, #2657: URL: https://github.com/apache/brpc/issues/2657 **Is your feature request related to a problem? (你需要的功能是否与某个问题有关?)** 我正在从grpc切换到brpc框架,想请教一下brpc异步server的使用方式问题。 ### 背景: 在我们需要实现rpc server接口中,会调用一个异步接口async(),调用后立即返回。 当async背后的逻辑处理完成,会调用提前设置好