c# - Rabbitmq move message to different queue if processing fails -
i working rabbitmq .net , message acknowledgements. if consumer able process message can send ack in form of
channel.basicack(ea.deliverytag, false);
which take off queue. move message "error-queue" if have issues deserialization
var message = jsonconvert.deserializeobject<object>(json);
i have tried using "x-dead-letter-exchange" depends on "x-message-ttl" time setting. want move messages error-queue if processing fails. how achieve funcationality? couldn't find online.
if consumer rejects message using basic.reject
or basic.nack
requeue
flag set false
, rabbitmq republish message dead-letter exchange. documented in article dead-letter exchanges.
here functions reject or nack messages in rabbitmq .net 3.6.10 client:
Comments
Post a Comment