Quantcast
Viewing all articles
Browse latest Browse all 5648

Message order delivery and redelivery

Hi guys!

I have queue for delivery of messages in order with one producer and one
event-driven consumer. I also have a redelivery policy attach to this queue
(with nonBlockingRedelivery=false) and I have a question with this scenario:
1. queue receives a message M1
2. queue sends message M1 to consumer
3. queue receives a message M2
4. queue sends message M2 to consumer but fails (consumer is down)
5. queue receives a message M3

which message is going to be first delivered? M2 or M3? is there a way to
give config AMQ to first send redelivered messages and then normal messages?

thanks in advance!
Regards
Guzmán

Viewing all articles
Browse latest Browse all 5648

Trending Articles