[zeromq-dev] Clean shutdown of malamute client zactor in python binding?

Colin Ingarfield colin at ingarfield.com
Thu Feb 4 14:49:48 CET 2016


Maybe Tornado would work for what you're trying to do:
http://www.tornadoweb.org/en/stable/

It has an asynchronous web server that can be integrated with 0MQ.

On 2/4/16 7:41 AM, Aaron Sokoloski wrote:
> On 4 February 2016 at 05:45, Arnaud Loonstra <arnaud at sphaero.org
> <mailto:arnaud at sphaero.org>> wrote:
>
>     As long as it is in Python it will be sequential anyway. In a real
>     concurrent setup you probably want n:1 topology in between the
>     webservers and the malamute instance and pass messages, right?
>
>
> Well, yes, but this is a bit of an uncommon type of web server. 
> Internal use only, so not many clients, but pretty heavy weight
> processing.  I'm trying to avoid having lots of copies of the malamute
> client, because it needs to cache some pretty big state.  So instead
> the process will have a single client, and webserver threads will
> query the cache using inproc sockets or something like that.
>
> By the way, I think python isn't 100% sequential -- execution of
> python code is, due to the GIL, but c library code can actually
> execute in parallel.
>
> I might not have the same problem if using something like gevent or
> eventlet, but making czmq work with one of them is much more work than
> I can afford to get into right now.
>
>
>
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20160204/83addd87/attachment.htm>


More information about the zeromq-dev mailing list