[zeromq-dev] MongoDB driver with pyzmq
Dan Yamins
dyamins at gmail.com
Wed Jan 12 22:53:29 CET 2011
Hi all:
I've written an asynchronous MongoDB driver to work with Tornado event
loops, using regular nonblocking sockets. Basically what I've done is
tak the pymongo driver, detach the two ends of the "send_and_receive_msg"
method, and replace it with two separate "send" and "receive" methods, one
of which gets hooked up to the callback on a tornado ioloop.
Currently the use of regular non-blocking sockets causes some problems and
I'd like to make it better by using zmq. My hope was to:
1) replace the regular tornado IO loop with the pyzmq one
2) replace the regular sockets with zmq streams (i think).
Is this reasonable? Are there issues I don't understand? (I've never used
zmq at all before, and know very little about message structure in
general).
Thanks!
Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110112/4b987498/attachment.htm>
More information about the zeromq-dev
mailing list