[zeromq-dev] MongoDB driver with pyzmq
Brian Granger
ellisonbg at gmail.com
Sat Jan 22 22:08:43 CET 2011
Dan,
As Min mentioned, this is something we have thought about before.
But, to do this right, you would need to modify the MongoDB code
itself to talk zeromq, rather than http. Just bridging
zeromq->http->mongodb is much less interesting (but still of some
value).
If you are intersted in going the next step to modifying MongoDB
directly, I would definitely contact the MongoDB devs.
Cheers,
Brian
On Wed, Jan 12, 2011 at 1:53 PM, Dan Yamins <dyamins at gmail.com> wrote:
> 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
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>
--
Brian E. Granger, Ph.D.
Assistant Professor of Physics
Cal Poly State University, San Luis Obispo
bgranger at calpoly.edu
ellisonbg at gmail.com
More information about the zeromq-dev
mailing list