You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2021/07/19 02:18:29 UTC

[GitHub] [incubator-brpc] wwbmmm commented on pull request #1457: Implement SerializedResponse and example code

wwbmmm commented on pull request #1457:
URL: https://github.com/apache/incubator-brpc/pull/1457#issuecomment-882181283


   > 这个pr的功能和attachment_data似乎是重复的
   
   这个的使用场景不是attachment,而是用于实现baidu_std协议的多语言客户端(如PHP、Python等语言)。
   比如在PHP语言的场景下,用户不能接受从 二进制序列化数据 <-> C++ pb对象 <-> PHP pb对象,这意味着每次修改proto都需要重新编译C++代码,成本过高,而且还增加了额外的性能开销。解决方案是C++代码只负责 二进制序列化数据的收发,然后由更上层的代码实现二进制序列化数据 <-> PHP pb对象的直接转换。


-- 
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: dev-unsubscribe@brpc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org