[zeromq-dev] Complete Python Example

Martin Sustrik sustrik at fastmq.com
Tue Apr 21 17:17:31 CEST 2009


First thing you should be aware of is that AMQP is a protocol that 
requires two parts of the system: the broker and the clients.

0MQ at the moment implements only the client part of the protocol. This 
means that you have to use some other implementation of AMQP for the 
broker - 0MQ uses version 0.9.1 of the protocol thus you'll have to use 
OpenAMQ (www.openamq.org), RabbitMQ will follow in implementing 
AMQP/0.9.1 shortly.

Once the broker is running you can use 0MQ client to connect to it. 
However, be aware that the AMQP support is still in 'experimental' phase 
and misses some AMQP features.

In overall, if what you want is AMQP and you don't care about 
performance I would suggest using a different AMQP implementation.

If performance is paramount concern I would suggest using 0MQ with it's 
native protocol instead of AMQP. In such case have a look at Python 
performance tests in perf/test/zmq subdirectory of the source tree.

If what you *really* need is AMQP and ultra high performance combined 
you can experiment with 0MQ client + OpenAMQ broker combination.


kfadnis wrote:
> Hi,
> I am new to AMQP and am trying to implement an exchange style 
> application in python. Is there a complete python example that shows the 
> threading and other aspects of Zmq ?
> I ask because I was studying the exchange example for c++ and I couldn't 
> find a counterpart for the "create()" method and dispatcher and locator 
> classes in Python ?
> I understand this probably very basic but any help would be appreciate.
> Thank you.
> ------------------------------------------------------------------------
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev

More information about the zeromq-dev mailing list