Did you use the automatically-generated "abstract service" code, or did you do the "recently recommended" "make your own code-generator plugin" to do the implementation?
What do you think of these 2 alternatives? On Aug 27, 3:43 pm, Evan Jones <[email protected]> wrote: > Navigateur wrote: > > So, say I took a Java implementation from somewhere, and a C++ > > implementation from somewhere else, and a C# implementation from > > somewhere else, would they just easily inter-work (say if I specified > > the same transport channel or something)? > > Almost certainly not. While the service definitions and the data format > are defined by the protobuf library, an RPC implementation needs to pass > some additional data between the end points (eg. what method to invoke, > potentially other options). The format of this data is not specified, so > implementations are incompatible. > > > If not, is it easy to make them inter-work? Is it a good idea or > > practical to try to do so? If so, what are the basic steps? > > I suspect it wouldn't be very difficult. Mostly it would be an issue of > having a bunch of implementors agree on a wire protocol. However, as a > third party, I suspect it would be hard, since you won't understand the > protocol. > > I think part of the issue is that most people "roll their own" > interchange protocol on top of protocol buffers, since it is pretty easy > to do. However, if you want a "ready to use" RPC system, protocol > buffers aren't your best choice. > > That said: If you are desperate and willing to put in some effort, I > have a C++ and Java implementation of the protocol buffers RPC > interfaces that I've been using. It isn't the best thing in the world, > and you'll need to put in some effort to get it to work in some other > project, but it is available under a BSD license. > > Hope this helps, > > Evan > > -- > Evan Joneshttp://evanjones.ca/ -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.
