[zeromq-dev] A query about implementing aborts in request reply broker
aalok sood
aalok at ideadevice.com
Mon Jul 16 12:17:41 CEST 2012
Thanks for your suggestion Ian.
I have a similar model in place, but the issue is how do I find out how
many responses are going to come in on my pull socket.
In essence, can I somehow find out how many backend workers are connected
to my broker.
Regards
Aalok
On Sun, Jul 15, 2012 at 9:10 PM, Ian Barber <ian.barber at gmail.com> wrote:
> On Sat, Jul 14, 2012 at 7:52 PM, aalok sood <aalok at ideadevice.com> wrote:
>
>> I have a request reply broker and it does the job really well.
>>
>> Now if I want to tell my workers to abort a bunch of these requests,
>> based on some request parameter.
>>
>> For this I can use a pub-sub, but how do I collect the results?
>>
>
> I would use a pub-sub and a pull or similar socket - so requests to cancel
> are published, and you get a confirm message when they've been cancelled
> sent back over the pull socket. That said, given you req-rep at the moment,
> I'm guessing your work distributor is a dealer or router socket, so you
> could collect the results directly through that.
>
> Ian
>
>
>
> _______________________________________________
> 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/20120716/6a91e94a/attachment.htm>
More information about the zeromq-dev
mailing list