[zeromq-dev] Extending the Paranoid Pirate Pattern - a problem and a candidate solution
Martin Sustrik
sustrik at 250bpm.com
Fri Jun 10 16:39:29 CEST 2011
Hi Lucas,
> The pattern works perfectly under normal operation. However, it breaks
> down badly if I kill the workers mid-batch and restart them again after
> the client has begun retrying. The workers reconnect and begin to
> receive defunct jobs from the older client socket(s) which the client
> has abandoned. The workers spend time processing these defunct jobs
> before getting to the new, valid jobs, and so can never catch up to live
> jobs which the client is waiting on.
AFAIU, what you need is req/rep sockets to drop requests from clients
that no longer exist, right?
See also here: https://zeromq.jira.com/browse/LIBZMQ-190
Martin
More information about the zeromq-dev
mailing list