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


   > 可以在同一个brpc server同时支持brpc stream和普通的brpc unary,后者是可以兼容其他协议的,不知道能不能解决你的问题
   > 
   > > > stream用起来挺不错,性能也好,不过也还有些不完善的地方,比如rpcz就不支持
   > > 
   > > 
   > > stream我看了,不太符合我的要求:
   > > 1.不支持除baidu_std协议之外的其他协议,我需要用到redis的RESP协议
   > > 
2.封装耦合非常紧密,没办法直接利用stream,直接在上面加入其他协议支持,例如Ctrl这里就有一个专门的存放streamID的private对象,正常复用没办法使用
   
   brpc unary?这个我第一次看到,是新特性么,我去看下文档
   其实我需求很简单,就是用现有框架(不局限于brpc)做一个redis的从库
   因为redis从库有:
   1.fd必须全双工,不能只成为server或者client
   2.成为client时协议与server时协议不同(都是RESP协议但是格式不太一样)
   3.需要解析RDB、AOF不同格式
   4.需要支持类似UDP的发送之后不回复(REPLCONF ACK {offset})


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