gRPC / Protobuf interface versioning

前端 未结 3 1508
故里飘歌
故里飘歌 2021-01-01 20:24

Let\'s say we use gRCP/Protobuf to connect many application. Those application are developped and released at their own team, with their own speed. Over time there will be d

3条回答
  •  误落风尘
    2021-01-01 21:15

    One way to do this would be to add a custom option and set that option at the top of your .proto file, like this:

    option (my_app.version) = 3;
    

    Then in each language you can examine the value of that option and indicate it as your version number.

提交回复
热议问题