[protobuf] incompatible type changes philosophy

2012-05-08 Thread Jeremy Stribling
I'm working on a project to upgrade- and downgrade-proof a distributed system that uses protobufs to communicate data between instances of a C ++ program. I'm trying to cover all possible cases for data schema changes between versions of my programs, and I was hoping to get some insight from the c

Re: [protobuf] incompatible type changes philosophy

2012-05-08 Thread Jeremy Stribling
On 05/08/2012 06:04 PM, Daniel Wright wrote: On Tue, May 8, 2012 at 4:42 PM, Jeremy Stribling <mailto:st...@nicira.com>> wrote: I'm working on a project to upgrade- and downgrade-proof a distributed system that uses protobufs to communicate data between instan

Re: [protobuf] incompatible type changes philosophy

2012-05-09 Thread Jeremy Stribling
On 05/09/2012 04:41 AM, Evan Jones wrote: On May 8, 2012, at 21:26 , Jeremy Stribling wrote: Thanks for the response. As you say, this solution is painful because you can't enable the optimization until the old version of the program is completely deprecated. This is somewhat simple i

Re: [protobuf] incompatible type changes philosophy

2012-05-10 Thread Jeremy Stribling
On 05/10/2012 07:52 AM, Evan Jones wrote: On May 9, 2012, at 15:26 , Jeremy Stribling wrote: * There are two nodes, 1 and 2, running version A of the software. * They exchange messages containing protobuf P, which contains a string field F. * We write a new version B of the software, which