2 Replies Latest reply on Feb 14, 2012 4:35 AM by nedenom

    Redelivery order when using delay

    nedenom

      Hi,

       

      What is the expected order (if any) of redelivered messages when using a redelivery delay?

       

      Eg, rollback called on all of MSG1, MSG2, MSG3. Will the messages be redelivered in that same order, opposite order or just randomly?

       

      Background is that we have multiple consumers and want to use a delay on redelivery (eg. 2 seconds), while still guarantee the order (within the same group). So if MSG1 rolls back and goes to redelivery, we're thinking to do rollback on MSG2 and MSG3 as well, but then we need to rely on the order of redeliveries.

        • 1. Re: Redelivery order when using delay
          clebert.suconic

          If you set a redelivery delay.. the message will be sent at a later point.. as it was being sent again. so you will lose order on this case.

          • 2. Re: Redelivery order when using delay
            nedenom

            I am aware that in general I will lose order when using redelivery with delay. What I am trying to find out is whether we can expect any consistent order among the actual messages scheduled for redelivery themselves. Eg. if two consecutive messages are rolled back, will they be redelivered in that same order, or can possibly the last message rolled back be redelivered first?