EarthChen commented on issue #9342:
URL: https://github.com/apache/dubbo/issues/9342#issuecomment-986414535


   > 如果中文需要经过base64编码,这样对前端调试解析并不友好,意味着需要base64解码。
   - base64是因为grpc header 规定了-bin 的都要 base64,当然你可以 url encode,只不过 base64兼容更广
   
   > dubbo定义的前缀没了,但中文乱码任然存在。
   - 乱码这个问题,将在下个版本修复它
   
   > 关于是2 UNKNOWN还是13 INTERNAL,更适合携带业务异常,或许dubbo可以从规范入手,做个规约说明
   - grpc 除了框架异常,其他均是 unknown,所以这里为了保持一致
   - 总得来说,如果需要业务异常进行处理,建议增加 attach 使用 filter 在两端进行异常转换,不要使用 grpc-message
   
   > dubbo tri协议是对grpc协议的缺陷或不优雅进行补足,并做增强,而不是改变,导致不能平滑迁移(只改controller层)
   - 对于 unary 方法,dubbo 中不写`onNext`和`onCompleted`是为了兼容 dubbo2,并不是为了兼容 grpc 的写法。
   - tri 和 grpc 的兼容只限于互通
   


-- 
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: [email protected]

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