On Nov 28, 2011, at 3:55 PM, Martin Sustrik wrote:

> On 28/11/11 15:36, Jakub Witkowski wrote:
> 
>> ... has evolved well beyond initial assumptions into a "universal"
>> monstrosity that requires massive amount of careful work to produce and
>> parse back. Example: SOAP.
> 
> I would also add that 0MQ's separation of transport from serialisation 
> allows you to choose the least monstrous monstrosity for serialisation 
> purposes :)


Agreed -- I like this separation and like the fact that you left it out.  0MQ 
is really just one piece of our puzzle.  It would be nice if it fit in easily 
with the other pieces we need.

And as I said, it is a great fit for the PUB/SUB bit, but here where most of 
the code already exists it would be nice if there were some way to act as a 
drop-in replacement for alternate transport types.

> 
>> On the other hand, making a "RPC-like" system, fully customized to your
>> application based on ZMQ is very simple; it more or less involves
>> copy-pasting the dealer/router pattern from the examples and  putting in
>> your business logic in. Toss in Google Protocol Buffers and suddenly you
>> have a full featured solution that is both easy to write and very, very
>> fast.
> 
> I don't know which language you are using 0MQ from but it's quite 
> possible that the language binding already supports some kind of 
> serialisation.
> 

We're starting with C++ and Go, but will also probably want to support Python 
components.  So I don't want to use any language-specific serialization.  
Protobufs are a good fit for us.   

> If not so, try searching the web. I guess someone have already combined 
> 0mq with some serialisation library and uploaded the result somewhere.

Very straightforward in the simple case:

// Setup snipped
if err = header.Marshal(h); err != nil {
                return
}
head := header.Bytes()

// Send off to transport layer...

Matt

> 
> Martin
> 
> _______________________________________________
> zeromq-dev mailing list
> [email protected]
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev

_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to