Hi,
<div><br></div><div>What is the recommended course of action for dealing with unwanted messages in consumers? If a consumer sends basic.cancel there's a possibility that there will be one or more "undelivered" messages (depending on the prefetch-count parameters), is it best to basic.reject these before or after sending basic.cancel?</div>
<div><br></div><div>A connected issue here is that sending basic.cancel alters the sequence of messages on the target queue, the undelivered message gets requeued at the end of the queue. AFAICS this is to be expected given how the basic.consume mechanism works, but is there anything I can do to prevent this re-ordering? I suppose that using basic.get instead would probably do the trick, but is there some combination of basic.reject and/or basic.recover that can also prevent this re-ordering?</div>
<div><br></div><div><br></div><div>Thanks,</div><div>--Robin</div><meta http-equiv="content-type" content="text/html; charset=utf-8">