We are considering using Protocol Buffers for communicating between a python & a node.js service that each live in their own repos.
.proto files must be accessible to both repos, how should we share the
We are currently considering:
.protofiles, and making it a git subtree of all our services
.protofiles, publishing both a private python module and private node module on push, and requiring the modules from the respective services
.protofiles, and specifying the repository as the destination of a
What is the standard way to share
.proto files between repositories?
This depends on your development process.
A git subtree / submodule seems like a sensible solution for most purposes. If you had more downstream projects, publishing a ready-made module would make sense, as then the protobuf generator wouldn’t be needed for every project.
We, in the same situation, used 3 repos: server-side was written in c++, client-side in actionscript 3, and protobufs was in the third, and was used both of them. For a big team, and big project I think it was a good choice.