[zeromq-dev] Is zmq suitable for p2p protocols?
Michel Pelletier
pelletier.michel at gmail.com
Fri Apr 13 00:50:13 CEST 2012
2012/4/12 Jorge Timón <timon.elviejo at gmail.com>:
> Hi, we're discussing some things about a distributed protocol in the
> ripple forum and I proposed to use ZeroMQ to build a prototype server.
> We want the p2p protocol to be transport independent but we're going
> to probably just use TCP as a start.
> I posted here before to ask about the possibilities of extending zmq
> to use tor, i2p, etc. Thank you for your answers then.
> This protocol was what I had in mind. Do you think zmq would be useful
> for building our protocol or Ryan's right and we should stick to TCP
> alone.
>
> On 4/12/12, Ryan Fugger <arv at ryanfugger.com> wrote:
>> 2012/4/12 Jorge Timón <timon.elviejo at gmail.com>:
>>> What do you think about using ZeroMQ for constructing the prototype?
>>>
>>
>> ZeroMQ seems to be for organizing communication within a single
>> application, not for building distributed protocols.
0mq is perfect for building distributed protocols. Think of the
person-years that have gone into 0mq and all the language bindings and
documentation. You can write this all yourself with tcp of course,
but you are setting yourself up for a lot of work.
I would suggest starting by reading the 0mq guide. Then read it
again. If after that small amount of time investment you feel writing
your own framework is the way to go, then by all means go for it. But
I think you'll find 0mq can do everything you need now, and everything
you don't know you need yet but will need soon.
-Michel
More information about the zeromq-dev
mailing list