V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
csfreshman
V2EX  ›  程序员

有没有比较完整的 protobuf 教程?

  •  
  •   csfreshman · Sep 21, 2021 · 3591 views
    This topic created in 1688 days ago, the information mentioned may be changed or developed.

    谷歌官网的入门教程比较简略,而且是英文版的,求推荐最好是中文版的 protobuf 教程。 原因是近期跳槽后,发现新东家的 proto 文件动不动就几千行,原来通信 request 和 response 定义的比较简单,这次真的刷新了我的认知。

    7 replies    2021-09-22 11:15:43 +08:00
    SingeeKing
        1
    SingeeKing  
    PRO
       Sep 21, 2021
    protobuf 官网文档(及 Generated Code 说明) + gRPC 官网 + 对应语言的 gen 程序源码,看这三个够了

    几千行无非就是定义的字段和 API 多了点,本质其实就那点东西
    csfreshman
        2
    csfreshman  
    OP
       Sep 21, 2021
    @SingeeKing 官网的入门教程看了几遍了,gen 程序源码这个没必要看吧
    csfreshman
        3
    csfreshman  
    OP
       Sep 21, 2021
    @SingeeKing 我的目的是想学习各种用法,暂时没时间去研究源码实现。
    freestyle
        4
    freestyle  
       Sep 21, 2021 via iPhone
    labulaka521
        5
    labulaka521  
       Sep 21, 2021
    感觉这个就是熟悉一下语法基本就可以干活了吧,如果高端点的就根据 proto 文件来写个插件来生成一些文件,可以熟悉下一些简单的 gen 程序
    julyclyde
        6
    julyclyde  
       Sep 22, 2021
    动不动几千行也都是字段说明吧,都是业务相关的
    对这个技术,我觉得应该是了解、建立概念就行了啊
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3287 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 63ms · UTC 12:33 · PVG 20:33 · LAX 05:33 · JFK 08:33
    ♥ Do have faith in what you're doing.