brpc icon indicating copy to clipboard operation
brpc copied to clipboard

brpc streaming 自动切分大消息讨论/ brpc streaming auto cutting big message

Open Aaaaaaron opened this issue 4 years ago • 3 comments

Is your feature request related to a problem? (你需要的功能是否与某个问题有关?) brpc streaming

Describe the solution you'd like (描述你期望的解决方法) 需求可以简化为send 端如何切分, 接收端如何合并回来

  1. 做在协议层
  2. 在 iobuffer 上切分

The requirement can be simplified as how to split when sending and how to merge when receiving

  1. At the protocol layer
  2. Split on iobuffer

Describe alternatives you've considered (描述你想到的折衷方案)

Additional context/screenshots (更多上下文/截图)

Aaaaaaron avatar Sep 14 '21 08:09 Aaaaaaron

协议里面是有一个字段 处理这个的,实现一下就好了

chenzhangyi avatar Sep 15 '21 08:09 chenzhangyi

@chenzhangyi 是的 has_continuation, 但是可能要考虑同一个 stream 上并发消息的切分, 可能会有乱序, 这个场景需要考虑吗 这个字段很早就有了 改两行就 ok 了 但是一直没实现 是有啥顾虑吗

Aaaaaaron avatar Oct 11 '21 13:10 Aaaaaaron

https://github.com/apache/incubator-brpc/pull/1947/files @chenzhangyi 帮忙看看

Aaaaaaron avatar Oct 08 '22 08:10 Aaaaaaron