Err, figured it out. This is great!
On Sat, Oct 3, 2015 at 5:30 AM, Keith Brown <[email protected]> wrote: > Ah. Thanks for the tip! > > Is there an example for this on the guide or elsewhere? > > On Fri, Oct 2, 2015 at 11:42 PM, Doron Somech <[email protected]> wrote: >> Don't do it async, just add more consumers. I would try to avoid order if >> you can, it is always complicated to maintain order in distributed systems. >> Anyway you can attach a sequnce to each message on the producer and just >> order the messages on the result collection. >> >> On Oct 2, 2015 9:17 PM, "Keith Brown" <[email protected]> wrote: >>> >>> I have setup the push-pull with Python >>> >>> (https://learning-0mq-with-pyzmq.readthedocs.org/en/latest/pyzmq/patterns/pushpull.html) >>> and it works but I have few questions. >>> >>> At the moment, the consumer handles it in a synchronous manner. I >>> would like to have it do it asynchronously. I can't find a good >>> example to handle multiple requests, or should I be looking at a >>> different pattern? >>> >>> If I do it asynchronously, how can I maintain order for the >>> resultcollector? I will also have many producers, so do I create a >>> new context (zmq.PUSH) for each task I want to push to the consumer? >>> >>> My goal is to have the producer submit several thousand tasks to the >>> consumer (there will be 20+ servers farm) which will be load balanced >>> and I merge the results for the task. >>> >>> Any help would be great. >>> _______________________________________________ >>> zeromq-dev mailing list >>> [email protected] >>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev >> >> >> _______________________________________________ >> zeromq-dev mailing list >> [email protected] >> http://lists.zeromq.org/mailman/listinfo/zeromq-dev >> _______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
