java - Can RabbitMQ consumer configure to consume only a defined number of attempts for the same message -


does rabbitmq capable in way, can define consumer has limit of consuming same message. i.e consumer doing basic reject enqueue=true. , infinitely keep on listening same message. not talking ttl on queue side. control/config on consumer tell want consume 5 times , send queue instance. can achieved ?

so yes believe can done. need cache delivery tags of messages received , keep track of reject count. once reject count particular message great 5 , publish message queue. need ack rabbitmq message recieved , create new message (with new delivery tag) , publish it.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -