Yes. I would recommend using protobuf in that scenario. Protobuf alone 
won't meet your needs though. You need a wire protocol. For my projects, I 
implemented an Apache Mina Codec for TCP and UDP on the Java side and a C++ 
counterpart in ACE (Adaptive Communications Environment). Multiple message 
types on a single connection is supported with protobuf extensions. This 
implementation can saturate a 1Gb network connection with a single stream 
passing 10s of thousands of messages a sec at > 900Mbps with zero bit 
errors.


On Thursday, December 20, 2012 9:40:04 AM UTC-5, crotty.ch...@gmail.com 
wrote:
>
> True enough, but the marshalling/unmarshalling performance can be measured.
>
> I guess my question would have been better worded as...
>
> "I have a project that needs to send objects between a Java and a C++ 
> service at a rate of up to several thousand object/second.  Would you 
> recommend using protocol buffers in such a scenario?"
>
>
>
> On Thursday, December 20, 2012 9:09:31 AM UTC-5, 肖锋 wrote:
>>
>>
>> Protobuf is a data marshaling library. How is its performance related to 
>> the way you used to transfer the data? I think the two are independent.
>>  
>>
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/protobuf/-/dQY-yPg2c-UJ.
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to