ActiveMQ implementation of protobuf

2009-09-18 Thread ijuma
Hey all, I ran across the following and thought it may be of interest to this list: http://hiramchirino.com/blog/2009/09/activemq-protobuf-implementation-rocks.html Best, Ismael --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Success story issue with reading limited number of bytes from a stream

2009-09-18 Thread Martin Bravenboer
Hi all, In case you enjoy success stories: at LogicBlox we have recently started using Protocol Buffers for a protocol between our Datalog database server (written in C++) and our Datalog compiler (written in Java). We use protobuf in two different configurations: over sockets between separate

Re: Success story issue with reading limited number of bytes from a stream

2009-09-18 Thread Martin Bravenboer
Hi Kenton, For the problem I observed, the Refresh() call hang on a message of 2 bytes. I'll try to reproduce a small example and get back to you. Cheers, Martin On Fri, Sep 18, 2009 at 1:53 PM, Kenton Varda ken...@google.com wrote: That Refresh() call should only block if there are no bytes

serialize message to UDP socket

2009-09-18 Thread jayt0...@gmail.com
Hello all, I am having trouble figuring out how to serialize data over a socket utilizing UDP protocol. I am in C++ environment. When writing to the socket without protocol buffers, I use the standard sendto() socket call which allows me to specify the port and IP address of the intended

Re: serialize message to UDP socket

2009-09-18 Thread jayt0...@gmail.com
One other thing I wanted to say was that I chose to use CodedOutputStream to send data because ultimately I have to manually encode a length prefix in front of my PB message. With the C++ environment, I understand that this is the only way to do this (ugh is right; I am sure this is a common

Re: ActiveMQ implementation of protobuf

2009-09-18 Thread Kenton Varda
Hmm, your bean and buffer classes sound conceptually equivalent to my builder and message classes. Regarding lazy parsing, this is certainly something we've considered before, but it introduces a lot of problems: 1) Every getter method must now first check whether the message is parsed, and parse

Re: ActiveMQ implementation of protobuf

2009-09-18 Thread Kenton Varda
I think the usual way we would have solved this problem at Google would be to have the message payload be encoded separately and embedded in the envelope as a bytes field, e.g.: message Envelope { required string to_address = 1; optional string from_address = 2; required bytes

Re: ActiveMQ implementation of protobuf

2009-09-18 Thread hi...@hiramchirino.com
Firstly, I want to clarify that I did not write the benchmark that I plugged into. There is no ill intent. I published the benchmark so that folks take the time to look into why my implementation performed so much better. I think it's good to have healthy discussions about the pros and cons of

Email Processor Job-work At Home.Make $200+ Daily

2009-09-18 Thread Delsie Odebralski
Would you like to be your own boss and work from home?We guarantee that you will be paid $15 to $25 per email that you process successfully. http://processemailonline.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google