Proto file simple contains/defines the "contract" between your server and 
clients so in a nutshell you'll be using same objects/messages between your 
server and clients. If you are not planning to change the "contract" and/or 
version it, you can simply use a single proto file for both the client and 
server.

But, if you'll need to extend your protocol messages in the future, 
obviously you'll be maintaining different versions of proto file 
descriptors across the server and client projects of yours.

On Monday, April 14, 2014 11:50:53 AM UTC+3, Ido Ran wrote:
>
> I have a project in which I'm using Protbuf.
> Both the client and the server are written in the same language.
>
> Is that good practice to share the .proto file between the two projects?
> Or should I hold two separate files of .proto ?
>
> Thank you,
> Ido.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to