brpc
brpc copied to clipboard
brpc streaming 自动切分大消息讨论/ brpc streaming auto cutting big message
Is your feature request related to a problem? (你需要的功能是否与某个问题有关?) brpc streaming
Describe the solution you'd like (描述你期望的解决方法) 需求可以简化为send 端如何切分, 接收端如何合并回来
- 做在协议层
- 在 iobuffer 上切分
The requirement can be simplified as how to split when sending and how to merge when receiving
- At the protocol layer
- Split on iobuffer
Describe alternatives you've considered (描述你想到的折衷方案)
Additional context/screenshots (更多上下文/截图)
协议里面是有一个字段 处理这个的,实现一下就好了
@chenzhangyi 是的 has_continuation, 但是可能要考虑同一个 stream 上并发消息的切分, 可能会有乱序, 这个场景需要考虑吗 这个字段很早就有了 改两行就 ok 了 但是一直没实现 是有啥顾虑吗
https://github.com/apache/incubator-brpc/pull/1947/files @chenzhangyi 帮忙看看