bailiyang commented on issue #1047:
URL: https://github.com/apache/incubator-brpc/issues/1047#issuecomment-622347261


   > @bailiyang 
这块如果能有个option支持普通rpc的保序就好了,你要是改好了回头可以提个PR?看到好几个人问过这个问题了。我的场景下用stream保证了顺序,不过普通rpc要是能保序还是挺方便的
   
   
可能没办法向你说的这样做到普通rpc保序,目前的写法跟redis-server一样,执行做在parse里面而不是process里面,这样可以在拆协议之前就保证有序触发用户自定义的回调
   但是这同时带来了一个新的问题:不切成多个bthread触发回调,单线程触发性能无法发挥了
   我们公司为这个专门做了一个uid相关的排队锁保证强制有序,但是涉及到no_steal的bthread改动,改动非常大,提了pr但是他们没合入


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

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