On Tue, Jan 15, 2013 at 12:37 PM, Eagy, Taylor <[email protected]>wrote:
> Rafael, > > > > Thanks for responding. The only reason why I said it wouldn't be portable > is because when I saw the CMake files I thought I'd have to build it to > bind C functions from the engine to Python. However, if I can perform the > p2p messaging just using the proton.py then that would work. My scenario is > the following: I have three Python modules running. One is a web service > that takes incoming requests and places the request data as a message on an > incoming queue, then another Python service listens on the incoming queue > and processes the data in the messages. After it finishes processing the > data it passes the results as another message onto an outgoing queue which > is then grabbed by the last Python service and sent back. Previously I was > using the Java Qpid broker because I need persistence enabled so that if > the Qpid broker or one of these Python services were to fail during a queue > transaction, the services, when restarted, would be able to pickup the > durable message and continue the data flow. While it works great with the > Qpid broker, the main issue is that the Qpid broker is just too heavy. I > need a fast lightweight version that still offers the basic persistence (I > was using Derby store) and ideally written in Python since all of my code > is in Python. I don't have any specific performance requirements other than > saying the faster the better. Right now all of the queueing is done locally > between these services, but I would like to have the ability to extend it > easily to work over networked machines which I know Proton can do. Do you > think it's overkill to use something like Qpid or Proton in my scenario? > You're correct that you will need the C library in order to use the python binding, however that C library has been designed to be as portable as possible. There has been work on a windows port going on in the background on various branches, and we expect this to land very soon now and produce a (windows) portable 0.4 release shortly. We are also testing on ARM based platforms as well, so we expect to have the C library available pretty much anywhere python is available, and indeed this is pretty key because implementing all the low level protocol machinery in pure python would probably not qualify as lightweight. ;-) FWIW, I don't think using proton or the java broker is overkill for your scenario, particularly given your persistence requirement. --Rafael
